SBSPSS/tools/psyq/include/SYS/FILE.H
2000-08-29 16:26:01 +00:00

34 lines
658 B
C

/*
* File:file.h
*/
/*
* $PSLibId: Run-time Library Release 4.7$
*/
#ifndef _SYS_FILE_H
#define _SYS_FILE_H
#include <sys/fcntl.h>
/* Flag for open() */
#define O_RDONLY FREAD
#define O_WRONLY FWRITE
#define O_RDWR FREAD|FWRITE
#define O_CREAT FCREAT /* open with file create */
#define O_NOBUF FNBUF /* no device buffer and console interrupt */
#define O_NBLOCK FNBLOCK /* non blocking mode */
#define O_NOWAIT FASYNC /* asyncronous i/o */
#ifndef SEEK_SET
#define SEEK_SET 0
#endif
#ifndef SEEK_CUR
#define SEEK_CUR 1
#endif
#ifndef SEEK_END
#define SEEK_END 2
#endif
#endif /* _SYS_FILE_H */