[comp.os.minix] fcntl.h, unistd.h & utime.h

tholm@uvicctr.UUCP (Terrence W. Holm) (07/13/88)

EFTH Minix report #27  - July 1988 -  fcntl.h, unistd.h & utime.h

Some of the "man" pages in EFTH report #25 referred to the
header files /usr/include/fcntl.h, /usr/include/unistd.h
and /usr/include/utime.h. You will find them below.


echo x - fcntl.h
gres '^X' '' > fcntl.h << '/'
X/*  fcntl.h  */
X
X/*  for fcntl(3)  */
X
X#define     F_DUPFD	0
X#define     F_GETFD	1		/*  n/a  */
X#define     F_SETFD	2		/*  n/a  */
X#define     F_GETFL	3		/*  n/a  */
X#define     F_SETFL	4		/*  n/a  */
X
X/*  for open(2)  */
X
X#define     O_RDONLY	0
X#define     O_WRONLY	1
X#define     O_RDWR	2
/
echo x - unistd.h
gres '^X' '' > unistd.h << '/'
X/*  unistd.h  */
X
X/*  for access(2)  */
X
X#define     R_OK     	4
X#define     W_OK     	2
X#define     X_OK     	1
X#define     F_OK     	0
X
X/*  for lockf()  */
X
X#define     F_ULOCK	0
X#define     F_LOCK	1
X#define     F_TLOCK	2
X#define     F_TEST	3
X
X/*  for lseek(2)  */
X
X#define     SEEK_SET	0
X#define     SEEK_CUR	1
X#define     SEEK_END	2
X
X#define     IN_PATH	"/etc/include"
/
echo x - utime.h
gres '^X' '' > utime.h << '/'
X/*  utime.h  */
X
X/*  for utime(2)  */
X
Xstruct utimbuf {
X	time_t	actime;
X	time_t	modtime;
X};
/
--------------------------------------------------------------------
               Edwin L. Froese
                  uw-beaver!ubc-cs!mprg!handel!froese

               Terrence W. Holm
                  uw-beaver!ubc-cs!uvicctr!sirius!tholm