Changeset View
Changeset View
Standalone View
Standalone View
include/unistd.h
| Show First 20 Lines • Show All 322 Lines • ▼ Show 20 Lines | |||||
| #define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS 14 | #define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS 14 | ||||
| #endif | #endif | ||||
| __BEGIN_DECLS | __BEGIN_DECLS | ||||
| /* 1003.1-1990 */ | /* 1003.1-1990 */ | ||||
| void _exit(int) __dead2; | void _exit(int) __dead2; | ||||
| int access(const char *, int); | int access(const char *, int); | ||||
| unsigned int alarm(unsigned int); | unsigned int alarm(unsigned int); | ||||
| int chdir(const char *); | int chdir(const char *); | ||||
imp: So we have section per newer POSIX standard below... | |||||
| int chown(const char *, uid_t, gid_t); | int chown(const char *, uid_t, gid_t); | ||||
| int close(int); | int close(int); | ||||
| void closefrom(int); | void closefrom(int); | ||||
| int dup(int); | int dup(int); | ||||
| int dup2(int, int); | int dup2(int, int); | ||||
| int execl(const char *, const char *, ...) __null_sentinel; | int execl(const char *, const char *, ...) __null_sentinel; | ||||
| int execle(const char *, const char *, ...); | int execle(const char *, const char *, ...); | ||||
| int execlp(const char *, const char *, ...) __null_sentinel; | int execlp(const char *, const char *, ...) __null_sentinel; | ||||
| ▲ Show 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | |||||
| #if __POSIX_VISIBLE >= 200809 | #if __POSIX_VISIBLE >= 200809 | ||||
| int faccessat(int, const char *, int, int); | int faccessat(int, const char *, int, int); | ||||
| int fchownat(int, const char *, uid_t, gid_t, int); | int fchownat(int, const char *, uid_t, gid_t, int); | ||||
| int fexecve(int, char *const [], char *const []); | int fexecve(int, char *const [], char *const []); | ||||
| int linkat(int, const char *, int, const char *, int); | int linkat(int, const char *, int, const char *, int); | ||||
| ssize_t readlinkat(int, const char * __restrict, char * __restrict, size_t); | ssize_t readlinkat(int, const char * __restrict, char * __restrict, size_t); | ||||
| int symlinkat(const char *, int, const char *); | int symlinkat(const char *, int, const char *); | ||||
| int unlinkat(int, const char *, int); | int unlinkat(int, const char *, int); | ||||
| #endif /* __POSIX_VISIBLE >= 200809 */ | #endif /* __POSIX_VISIBLE >= 200809 */ | ||||
Done Inline ActionsI think we need a new section for POSIX 2024 here and _Fork should go here. imp: I think we need a new section for POSIX 2024 here and _Fork should go here. | |||||
| /* | /* | ||||
| * symlink() was originally in POSIX.1a, which was withdrawn after | * symlink() was originally in POSIX.1a, which was withdrawn after | ||||
| * being overtaken by events (1003.1-2001). It was in XPG4.2, and of | * being overtaken by events (1003.1-2001). It was in XPG4.2, and of | ||||
| * course has been in BSD since 4.2. | * course has been in BSD since 4.2. | ||||
| */ | */ | ||||
| #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 402 | #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 402 | ||||
| int symlink(const char * __restrict, const char * __restrict); | int symlink(const char * __restrict, const char * __restrict); | ||||
| #endif | #endif | ||||
| #if __POSIX_VISIBLE >= 202405 | |||||
| pid_t _Fork(void); | |||||
| #endif | |||||
| /* X/Open System Interfaces */ | /* X/Open System Interfaces */ | ||||
| #if __XSI_VISIBLE | #if __XSI_VISIBLE | ||||
| char *crypt(const char *, const char *); | char *crypt(const char *, const char *); | ||||
| long gethostid(void); | long gethostid(void); | ||||
| int lockf(int, int, off_t); | int lockf(int, int, off_t); | ||||
| int nice(int); | int nice(int); | ||||
| int setregid(gid_t, gid_t); | int setregid(gid_t, gid_t); | ||||
| int setreuid(uid_t, uid_t); | int setreuid(uid_t, uid_t); | ||||
| ▲ Show 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | |||||
| int swapon(const char *); | int swapon(const char *); | ||||
| int swapoff(const char *, u_int); | int swapoff(const char *, u_int); | ||||
| int syscall(int, ...); | int syscall(int, ...); | ||||
| off_t __syscall(quad_t, ...); | off_t __syscall(quad_t, ...); | ||||
| int undelete(const char *); | int undelete(const char *); | ||||
| int unwhiteout(const char *); | int unwhiteout(const char *); | ||||
| void *valloc(size_t); /* obsoleted by malloc() */ | void *valloc(size_t); /* obsoleted by malloc() */ | ||||
| int funlinkat(int, const char *, int, int); | int funlinkat(int, const char *, int, int); | ||||
| pid_t _Fork(void); | |||||
| #ifndef _OPTRESET_DECLARED | #ifndef _OPTRESET_DECLARED | ||||
| #define _OPTRESET_DECLARED | #define _OPTRESET_DECLARED | ||||
| extern int optreset; /* getopt(3) external variable */ | extern int optreset; /* getopt(3) external variable */ | ||||
| #endif | #endif | ||||
| #endif /* __BSD_VISIBLE */ | #endif /* __BSD_VISIBLE */ | ||||
| __END_DECLS | __END_DECLS | ||||
| #endif /* !_UNISTD_H_ */ | #endif /* !_UNISTD_H_ */ | ||||
So we have section per newer POSIX standard below...