Various namespace cleanups, including exposing fchmod() and fchmodat()
in the POSIX namespace, and hiding eaccess() and setproctitle(). Also move mknodat() from unistd.h to sys/stat.h where it belongs. The *at() syscalls are only in CURRENT, so this shouldn't cause problems.
This commit is contained in:
parent
f4ab27b927
commit
cc4603df21
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189817
@ -328,7 +328,6 @@ int chown(const char *, uid_t, gid_t);
|
|||||||
int close(int);
|
int close(int);
|
||||||
int dup(int);
|
int dup(int);
|
||||||
int dup2(int, int);
|
int dup2(int, int);
|
||||||
int eaccess(const char *, int);
|
|
||||||
int execl(const char *, const char *, ...);
|
int execl(const char *, const char *, ...);
|
||||||
int execle(const char *, const char *, ...);
|
int execle(const char *, const char *, ...);
|
||||||
int execlp(const char *, const char *, ...);
|
int execlp(const char *, const char *, ...);
|
||||||
@ -360,7 +359,6 @@ ssize_t read(int, void *, size_t);
|
|||||||
int rmdir(const char *);
|
int rmdir(const char *);
|
||||||
int setgid(gid_t);
|
int setgid(gid_t);
|
||||||
int setpgid(pid_t, pid_t);
|
int setpgid(pid_t, pid_t);
|
||||||
void setproctitle(const char *_fmt, ...) __printf0like(1, 2);
|
|
||||||
pid_t setsid(void);
|
pid_t setsid(void);
|
||||||
int setuid(uid_t);
|
int setuid(uid_t);
|
||||||
unsigned int sleep(unsigned int);
|
unsigned int sleep(unsigned int);
|
||||||
@ -431,7 +429,6 @@ int truncate(const char *, off_t);
|
|||||||
|
|
||||||
#if __POSIX_VISIBLE >= 200809 || __BSD_VISIBLE
|
#if __POSIX_VISIBLE >= 200809 || __BSD_VISIBLE
|
||||||
int faccessat(int, const char *, int, int);
|
int faccessat(int, const char *, int, int);
|
||||||
int fchmodat(int, const char *, mode_t, 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);
|
||||||
@ -470,7 +467,7 @@ void sync(void);
|
|||||||
|
|
||||||
#endif /* __XSI_VISIBLE */
|
#endif /* __XSI_VISIBLE */
|
||||||
|
|
||||||
#if __XSI_VISIBLE <= 500 || __BSD_VISIBLE
|
#if (__XSI_VISIBLE && __XSI_VISIBLE <= 500) || __BSD_VISIBLE
|
||||||
int brk(const void *);
|
int brk(const void *);
|
||||||
int chroot(const char *);
|
int chroot(const char *);
|
||||||
int getdtablesize(void);
|
int getdtablesize(void);
|
||||||
@ -479,7 +476,7 @@ char *getpass(const char *);
|
|||||||
void *sbrk(intptr_t);
|
void *sbrk(intptr_t);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __XSI_VISIBLE <= 600 || __BSD_VISIBLE
|
#if (__XSI_VISIBLE && __XSI_VISIBLE <= 600) || __BSD_VISIBLE
|
||||||
char *getwd(char *); /* obsoleted by getcwd() */
|
char *getwd(char *); /* obsoleted by getcwd() */
|
||||||
useconds_t
|
useconds_t
|
||||||
ualarm(useconds_t, useconds_t);
|
ualarm(useconds_t, useconds_t);
|
||||||
@ -497,6 +494,7 @@ const char *
|
|||||||
int crypt_set_format(const char *);
|
int crypt_set_format(const char *);
|
||||||
int des_cipher(const char *, char *, long, int);
|
int des_cipher(const char *, char *, long, int);
|
||||||
int des_setkey(const char *key);
|
int des_setkey(const char *key);
|
||||||
|
int eaccess(const char *, int);
|
||||||
void endusershell(void);
|
void endusershell(void);
|
||||||
int exect(const char *, char * const *, char * const *);
|
int exect(const char *, char * const *, char * const *);
|
||||||
int execvP(const char *, const char *, char * const *);
|
int execvP(const char *, const char *, char * const *);
|
||||||
@ -563,6 +561,7 @@ int setkey(const char *);
|
|||||||
#endif
|
#endif
|
||||||
int setlogin(const char *);
|
int setlogin(const char *);
|
||||||
void *setmode(const char *);
|
void *setmode(const char *);
|
||||||
|
void setproctitle(const char *_fmt, ...) __printf0like(1, 2);
|
||||||
int setresgid(gid_t, gid_t, gid_t);
|
int setresgid(gid_t, gid_t, gid_t);
|
||||||
int setresuid(uid_t, uid_t, uid_t);
|
int setresuid(uid_t, uid_t, uid_t);
|
||||||
int setrgid(gid_t);
|
int setrgid(gid_t);
|
||||||
|
@ -312,8 +312,13 @@ int chflags(const char *, unsigned long);
|
|||||||
int chmod(const char *, mode_t);
|
int chmod(const char *, mode_t);
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
int fchflags(int, unsigned long);
|
int fchflags(int, unsigned long);
|
||||||
|
#endif
|
||||||
|
#if __POSIX_VISIBLE >= 200112
|
||||||
int fchmod(int, mode_t);
|
int fchmod(int, mode_t);
|
||||||
#endif
|
#endif
|
||||||
|
#if __POSIX_VISIBLE >= 200809
|
||||||
|
int fchmodat(int, const char *, mode_t, int);
|
||||||
|
#endif
|
||||||
int fstat(int, struct stat *);
|
int fstat(int, struct stat *);
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
int lchflags(const char *, int);
|
int lchflags(const char *, int);
|
||||||
@ -334,6 +339,8 @@ mode_t umask(mode_t);
|
|||||||
int fstatat(int, const char *, struct stat *, int);
|
int fstatat(int, const char *, struct stat *, int);
|
||||||
int mkdirat(int, const char *, mode_t);
|
int mkdirat(int, const char *, mode_t);
|
||||||
int mkfifoat(int, const char *, mode_t);
|
int mkfifoat(int, const char *, mode_t);
|
||||||
|
#endif
|
||||||
|
#if __BSD_VISIBLE || __XSI_VISIBLE >= 700
|
||||||
int mknodat(int, const char *, mode_t, dev_t);
|
int mknodat(int, const char *, mode_t, dev_t);
|
||||||
#endif
|
#endif
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
Loading…
Reference in New Issue
Block a user