Category : OS/2 Files
Archive   : EMXDEV8F.ZIP
Filename : FCNTL.H

 
Output of file : FCNTL.H contained in archive : EMXDEV8F.ZIP
/* fcntl.h (emx+gcc) */

#if !defined (_FCNTL_H)
#define _FCNTL_H
#include
#endif /* !defined (_FCNTL_H) */
/* sys/fcntl.h (emx+gcc) */

#if !defined (_SYS_FCNTL_H)
#define _SYS_FCNTL_H

#if defined (__cplusplus)
extern "C" {
#endif

/* Don't forget to update /emx/source/termio.inc when changing this! */

#if !defined (O_RDONLY)
#define O_ACCMODE 0x03 /* mask */
#define O_RDONLY 0x00
#define O_WRONLY 0x01
#define O_RDWR 0x02
#define O_NDELAY 0x04
#define O_APPEND 0x08
#define O_TEXT 0x10

#define O_NONBLOCK O_NDELAY

#define O_BINARY 0x100
#define O_CREAT 0x200
#define O_TRUNC 0x400
#define O_EXCL 0x800

#endif

#if !defined (F_OK)
#define F_OK 0
#define X_OK 1
#define W_OK 2
#define R_OK 4
#endif

#if !defined (F_GETFL)
#define F_GETFL 1
#define F_SETFL 2
#define F_GETFD 3
#define F_SETFD 4
#endif

int fcntl (int handle, int request, int arg);

#if defined (__cplusplus)
}
#endif

#endif /* !defined (_SYS_FCNTL_H) */


  3 Responses to “Category : OS/2 Files
Archive   : EMXDEV8F.ZIP
Filename : FCNTL.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/