#endif
#include <stddef.h>
+#include <sys/cdefs.h>
#include <sys/null.h>
#define EXIT_FAILURE 1 /* standard error return using exit() */
_PROTOTYPE( long atol, (const char *_nptr) );
_PROTOTYPE( void *calloc, (size_t _nmemb, size_t _size) );
_PROTOTYPE( div_t div, (int _numer, int _denom) );
-_PROTOTYPE( void exit, (int _status) );
+_PROTOTYPE( __dead void exit, (int _status) );
_PROTOTYPE( void free, (void *_ptr) );
_PROTOTYPE( char *getenv, (const char *_name) );
_PROTOTYPE( long labs, (long _j) );
void (*__functab[NEXITS])(void);
int __funccnt = 0;
-extern void _exit(int);
+extern __dead void _exit(int);
/* only flush output buffers when necessary */
int (*_clean)(void) = NULL;
(*__functab[i])();
}
-void
+__dead void
exit(int status)
{
_calls();