|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: unistd.h,v 1.48 2003/06/26 18:35:13 avsm Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: unistd.h,v 1.49 2003/06/26 19:34:17 avsm Exp $ */ |
|
|
/* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */ |
|
|
/* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */ |
|
|
|
|
|
|
|
|
/*- |
|
|
/*- |
|
@ -58,8 +58,7 @@ unsigned int alarm(unsigned int); |
|
|
int chdir(const char *); |
|
|
int chdir(const char *); |
|
|
int chown(const char *, uid_t, gid_t); |
|
|
int chown(const char *, uid_t, gid_t); |
|
|
int close(int); |
|
|
int close(int); |
|
|
size_t confstr(int, char *, size_t) |
|
|
|
|
|
__attribute__((__bounded__(__string__,2,3))); |
|
|
|
|
|
|
|
|
size_t confstr(int, char *, size_t); |
|
|
char *cuserid(char *); |
|
|
char *cuserid(char *); |
|
|
int dup(int); |
|
|
int dup(int); |
|
|
int dup2(int, int); |
|
|
int dup2(int, int); |
|
@ -74,17 +73,13 @@ int execve(const char *, char * const *, char * const *); |
|
|
int execvp(const char *, char * const *); |
|
|
int execvp(const char *, char * const *); |
|
|
pid_t fork(void); |
|
|
pid_t fork(void); |
|
|
long fpathconf(int, int); |
|
|
long fpathconf(int, int); |
|
|
char *getcwd(char *, size_t) |
|
|
|
|
|
__attribute__((__bounded__(__string__,1,2))) |
|
|
|
|
|
__attribute__((__bounded__(__minbytes__,1,1024))); |
|
|
|
|
|
|
|
|
char *getcwd(char *, size_t); |
|
|
gid_t getegid(void); |
|
|
gid_t getegid(void); |
|
|
uid_t geteuid(void); |
|
|
uid_t geteuid(void); |
|
|
gid_t getgid(void); |
|
|
gid_t getgid(void); |
|
|
int getgroups(int, gid_t *); |
|
|
int getgroups(int, gid_t *); |
|
|
char *getlogin(void); |
|
|
char *getlogin(void); |
|
|
int getlogin_r(char *, size_t) |
|
|
|
|
|
__attribute__((__bounded__(__string__,1,2))) |
|
|
|
|
|
__attribute__((__bounded__(__minbytes__,1,32))); |
|
|
|
|
|
|
|
|
int getlogin_r(char *, size_t); |
|
|
pid_t getpgrp(void); |
|
|
pid_t getpgrp(void); |
|
|
pid_t getpid(void); |
|
|
pid_t getpid(void); |
|
|
pid_t getpgid(pid_t); |
|
|
pid_t getpgid(pid_t); |
|
@ -97,8 +92,7 @@ off_t lseek(int, off_t, int); |
|
|
long pathconf(const char *, int); |
|
|
long pathconf(const char *, int); |
|
|
int pause(void); |
|
|
int pause(void); |
|
|
int pipe(int *); |
|
|
int pipe(int *); |
|
|
ssize_t read(int, void *, size_t) |
|
|
|
|
|
__attribute__((__bounded__(__buffer__,2,3))); |
|
|
|
|
|
|
|
|
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); |
|
@ -109,11 +103,9 @@ long sysconf(int); |
|
|
pid_t tcgetpgrp(int); |
|
|
pid_t tcgetpgrp(int); |
|
|
int tcsetpgrp(int, pid_t); |
|
|
int tcsetpgrp(int, pid_t); |
|
|
char *ttyname(int); |
|
|
char *ttyname(int); |
|
|
int ttyname_r(int, char *, size_t) |
|
|
|
|
|
__attribute__((__bounded__(__string__,2,3))); |
|
|
|
|
|
|
|
|
int ttyname_r(int, char *, size_t); |
|
|
int unlink(const char *); |
|
|
int unlink(const char *); |
|
|
ssize_t write(int, const void *, size_t) |
|
|
|
|
|
__attribute__((__bounded__(__buffer__,2,3))); |
|
|
|
|
|
|
|
|
ssize_t write(int, const void *, size_t); |
|
|
|
|
|
|
|
|
#ifndef _POSIX_SOURCE |
|
|
#ifndef _POSIX_SOURCE |
|
|
|
|
|
|
|
@ -143,21 +135,18 @@ int fchown(int, uid_t, gid_t); |
|
|
char *fflagstostr(u_int32_t); |
|
|
char *fflagstostr(u_int32_t); |
|
|
int fsync(int); |
|
|
int fsync(int); |
|
|
int ftruncate(int, off_t); |
|
|
int ftruncate(int, off_t); |
|
|
int getdomainname(char *, size_t) |
|
|
|
|
|
__attribute__ ((__bounded__(__string__,1,2))); |
|
|
|
|
|
|
|
|
int getdomainname(char *, size_t); |
|
|
int getdtablesize(void); |
|
|
int getdtablesize(void); |
|
|
int getgrouplist(const char *, gid_t, gid_t *, int *); |
|
|
int getgrouplist(const char *, gid_t, gid_t *, int *); |
|
|
long gethostid(void); |
|
|
long gethostid(void); |
|
|
int gethostname(char *, size_t) |
|
|
|
|
|
__attribute__ ((__bounded__(__string__,1,2))); |
|
|
|
|
|
|
|
|
int gethostname(char *, size_t); |
|
|
mode_t getmode(const void *, mode_t); |
|
|
mode_t getmode(const void *, mode_t); |
|
|
int getpagesize(void); |
|
|
int getpagesize(void); |
|
|
int getresgid(gid_t *, gid_t *, gid_t *); |
|
|
int getresgid(gid_t *, gid_t *, gid_t *); |
|
|
int getresuid(uid_t *, uid_t *, uid_t *); |
|
|
int getresuid(uid_t *, uid_t *, uid_t *); |
|
|
char *getpass(const char *); |
|
|
char *getpass(const char *); |
|
|
char *getusershell(void); |
|
|
char *getusershell(void); |
|
|
char *getwd(char *) |
|
|
|
|
|
__attribute__ ((__bounded__(__minbytes__,1,1024))); |
|
|
|
|
|
|
|
|
char *getwd(char *); /* obsoleted by getcwd() */ |
|
|
int initgroups(const char *, gid_t); |
|
|
int initgroups(const char *, gid_t); |
|
|
int iruserok(u_int32_t, int, const char *, const char *); |
|
|
int iruserok(u_int32_t, int, const char *, const char *); |
|
|
int iruserok_sa(const void *, int, int, const char *, const char *); |
|
|
int iruserok_sa(const void *, int, int, const char *, const char *); |
|
@ -170,8 +159,7 @@ int nfssvc(int, void *); |
|
|
int nice(int); |
|
|
int nice(int); |
|
|
void psignal(unsigned int, const char *); |
|
|
void psignal(unsigned int, const char *); |
|
|
extern __const char *__const sys_siglist[]; |
|
|
extern __const char *__const sys_siglist[]; |
|
|
int profil(char *, size_t, unsigned long, unsigned int) |
|
|
|
|
|
__attribute__ ((__bounded__(__string__,1,2))); |
|
|
|
|
|
|
|
|
int profil(char *, size_t, unsigned long, unsigned int); |
|
|
int rcmd(char **, int, const char *, |
|
|
int rcmd(char **, int, const char *, |
|
|
const char *, const char *, int *); |
|
|
const char *, const char *, int *); |
|
|
int rcmd_af(char **, int, const char *, |
|
|
int rcmd_af(char **, int, const char *, |
|
@ -180,8 +168,7 @@ int rcmdsh(char **, int, const char *, |
|
|
const char *, const char *, char *); |
|
|
const char *, const char *, char *); |
|
|
char *re_comp(const char *); |
|
|
char *re_comp(const char *); |
|
|
int re_exec(const char *); |
|
|
int re_exec(const char *); |
|
|
int readlink(const char *, char *, size_t) |
|
|
|
|
|
__attribute__ ((__bounded__(__string__,2,3))); |
|
|
|
|
|
|
|
|
int readlink(const char *, char *, size_t); |
|
|
int reboot(int); |
|
|
int reboot(int); |
|
|
int revoke(const char *); |
|
|
int revoke(const char *); |
|
|
int rfork(int opts); |
|
|
int rfork(int opts); |
|
|