Subject: Re: exit() undefined in bootloader build
To: None <port-i386@netbsd.org, tech-kern@netbsd.org>
From: None <itojun@iijlab.net>
List: tech-kern
Date: 06/01/2002 15:06:07
> where can we find prototype decl for exit() in bootloader build
> environment? (libsa)
does it look correct?
itojun
Index: lib/libsa/stand.h
===================================================================
RCS file: /cvsroot/syssrc/sys/lib/libsa/stand.h,v
retrieving revision 1.43
diff -u -r1.43 stand.h
--- lib/libsa/stand.h 2001/09/02 07:04:16 1.43
+++ lib/libsa/stand.h 2002/06/01 06:05:29
@@ -228,6 +228,7 @@
void gets __P((char *));
int getfile __P((char *prompt, int mode));
char *strerror __P((int));
+__dead void exit __P((int)) __attribute__((noreturn));
__dead void panic __P((const char *, ...)) __attribute__((noreturn));
__dead void _rtt __P((void)) __attribute__((noreturn));
void bcopy __P((const void *, void *, size_t));
Index: arch/i386/stand/biosboot/main.c
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/i386/stand/biosboot/main.c,v
retrieving revision 1.28
diff -u -r1.28 main.c
--- arch/i386/stand/biosboot/main.c 2001/07/05 00:58:45 1.28
+++ arch/i386/stand/biosboot/main.c 2002/06/01 06:05:31
@@ -329,7 +329,7 @@
reboot();
/* Note: we shouldn't get to this point! */
panic("Could not reboot!");
- exit();
+ exit(0);
}
void
Index: arch/i386/stand/lib/panic.c
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/i386/stand/lib/panic.c,v
retrieving revision 1.4
diff -u -r1.4 panic.c
--- arch/i386/stand/lib/panic.c 2001/09/20 22:11:30 1.4
+++ arch/i386/stand/lib/panic.c 2002/06/01 06:05:31
@@ -50,5 +50,5 @@
printf("\n");
va_end(ap);
- exit();
+ exit(0);
}