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
/
close.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-09-28
|
334b
|
27 lines
#include "amiga.h"
#include "files.h"
#include <fcntl.h>
#undef close
int __close(int fd)
{
struct fileinfo *fi;
chkabort();
if (fi = _find_fd(fd))
{
int err = fi->close(fi->userinfo, fi->flags & O_NO_CLOSE);
_free_fd(fd);
return err;
}
return -1;
}
int close(int fd)
{
return __close(fd);
}