5,6 → 5,7 |
#endif |
#define _SYS__DEFAULT_FCNTL_H_ |
#include <_ansi.h> |
#include <sys/cdefs.h> |
#define _FOPEN (-1) /* from sys/file.h, kernel use only */ |
#define _FREAD 0x0001 /* read enabled */ |
#define _FWRITE 0x0002 /* write enabled */ |
134,7 → 135,7 |
#define F_UNLKSYS 4 /* remove remote locks for a given system */ |
#endif /* !_POSIX_SOURCE */ |
|
#ifdef __CYGWIN__ |
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809 || defined(__CYGWIN__) |
/* Special descriptor value to denote the cwd in calls to openat(2) etc. */ |
#define AT_FDCWD -2 |
|
145,6 → 146,14 |
#define AT_REMOVEDIR 8 |
#endif |
|
#if __BSD_VISIBLE |
/* lock operations for flock(2) */ |
#define LOCK_SH 0x01 /* shared file lock */ |
#define LOCK_EX 0x02 /* exclusive file lock */ |
#define LOCK_NB 0x04 /* don't block when locking */ |
#define LOCK_UN 0x08 /* unlock file */ |
#endif |
|
/*#include <sys/stdtypes.h>*/ |
|
#ifndef __CYGWIN__ |
173,17 → 182,21 |
}; |
#endif /* !_POSIX_SOURCE */ |
|
|
#include <sys/types.h> |
#include <sys/stat.h> /* sigh. for the mode bits for open/creat */ |
|
extern int open _PARAMS ((const char *, int, ...)); |
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809 || defined(__CYGWIN__) |
extern int openat _PARAMS ((int, const char *, int, ...)); |
#endif |
extern int creat _PARAMS ((const char *, mode_t)); |
extern int fcntl _PARAMS ((int, int, ...)); |
#if __BSD_VISIBLE |
extern int flock _PARAMS ((int, int)); |
#endif |
#ifdef __CYGWIN__ |
#include <sys/time.h> |
extern int futimesat _PARAMS ((int, const char *, const struct timeval *)); |
extern int openat _PARAMS ((int, const char *, int, ...)); |
#endif |
|
/* Provide _<systemcall> prototypes for functions provided by some versions |