home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
emacs-19.28-src.tgz
/
tar.out
/
fsf
/
emacs
/
unixlib
/
src
/
_exit.c
next >
Wrap
C/C++ Source or Header
|
1996-09-28
|
399b
|
31 lines
#include "amiga.h"
#include "files.h"
#include "fifofd.h"
#include "signals.h"
#include "timers.h"
#include <fcntl.h>
void _close_all(void)
{
int fd, lfd = _last_fd();
for (fd = 0; fd < lfd; fd++) close(fd);
}
#undef _exit
void __exit(int rc)
{
_close_all();
_cleanup_fifo();
_cleanup_signals();
_free_timer(_odd_timer);
XCEXIT(rc);
}
void _exit(int rc)
{
return __exit(rc);
}