-/* $OpenBSD: cmd.c,v 1.10 1997/04/21 20:03:30 mickey Exp $ */
+/* $OpenBSD: cmd.c,v 1.11 1997/04/21 20:20:25 mickey Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
for (i = to; i-- && !ischar(); )
#ifndef _TEST
- usleep(100000);
+ if ((to = usleep(100000))) {
+ printf ("usleep failed (%d)\n", to);
+ i = 1;
+ break;
+ }
#else
;
#endif
-/* $OpenBSD: biosdev.h,v 1.5 1997/04/18 06:54:42 weingart Exp $ */
+/* $OpenBSD: biosdev.h,v 1.6 1997/04/21 20:20:27 mickey Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
/* biosdisk.S */
u_int16_t biosdinfo __P((int dev));
-int biosdreset __P((void));
+int biosdreset __P((void));
int biosread __P((int dev, int cyl, int hd, int sect, int nsect, void *));
int bioswrite __P((int dev, int cyl, int hd, int sect, int nsect, void *));
u_int biosmem __P((void));
/* biostime.S */
-void usleep __P((u_long));
+int usleep __P((u_long));
#endif
-/* $OpenBSD: biostime.S,v 1.4 1997/04/21 19:52:51 mickey Exp $ */
+/* $OpenBSD: biostime.S,v 1.5 1997/04/21 20:20:28 mickey Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
movb $0x86, %ah
BIOSINT(0x15)
- setnc %al
- movzbl %al, %eax
+ xorb %al, %al
+ jnc 1f
+ movl %ah, %al
+1: movzbl %al, %eax
popl %ecx
ret
-/* $OpenBSD: cmd.c,v 1.10 1997/04/21 20:03:30 mickey Exp $ */
+/* $OpenBSD: cmd.c,v 1.11 1997/04/21 20:20:25 mickey Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
for (i = to; i-- && !ischar(); )
#ifndef _TEST
- usleep(100000);
+ if ((to = usleep(100000))) {
+ printf ("usleep failed (%d)\n", to);
+ i = 1;
+ break;
+ }
#else
;
#endif