X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/b7266188b87f3620ec3f9f717e57194a7dd989fe..d1ecb069dfe24481e4a83f44cb5217a2b06746d7:/bsd/sys/fcntl.h diff --git a/bsd/sys/fcntl.h b/bsd/sys/fcntl.h index 520d6ce9a..e9302b184 100644 --- a/bsd/sys/fcntl.h +++ b/bsd/sys/fcntl.h @@ -248,6 +248,9 @@ typedef __darwin_pid_t pid_t; #define F_ADDFILESIGS 61 /* add signature from same file (used by dyld for shared libs) */ +#define F_GETPROTECTIONCLASS 62 /* Get the protection class of a file from the EA, returns int */ +#define F_SETPROTECTIONCLASS 63 /* Set the protection class of a file for the EA, requires int */ + // FS-specific fcntl()'s numbers begin at 0x00010000 and go up #define FCNTL_FS_SPECIFIC_BASE 0x00010000 @@ -539,6 +542,17 @@ int open(const char *, int, ...) __DARWIN_ALIAS_C(open); int creat(const char *, mode_t) __DARWIN_ALIAS_C(creat); int fcntl(int, int, ...) __DARWIN_ALIAS_C(fcntl); #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) + +#ifdef PRIVATE +#ifndef _FILEPORT_T +#define _FILEPORT_T +typedef __darwin_mach_port_t fileport_t; +#define FILEPORT_NULL ((fileport_t)0) +#endif /* _FILEPORT_T */ + +int fileport_makeport(int, fileport_t*); +int fileport_makefd(fileport_t); +#endif /* PRIVATE */ int openx_np(const char *, int, filesec_t); int flock(int, int); filesec_t filesec_init(void);