home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
zip
/
mint
/
mntlib16.lzh
/
MNTLIB16
/
FCNTL.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-03
|
406b
|
29 lines
/*
* fcntl() emulation for MiNT; written by Eric R. Smith and placed
* in the public domain
*/
#include <errno.h>
#include <mintbind.h>
#include <fcntl.h>
extern int __mint; /* MiNT version */
int fcntl(f, cmd, arg)
int f, cmd;
void *arg;
{
long r;
if (__mint) {
r = Fcntl(f, arg, cmd);
}
else
r = -EINVAL;
if (r < 0) {
errno = -r;
r = -1;
}
return r;
}