Advanced Programming in the UNIX® Environment

(lily) #1
ptg10805159

Appendix A Function Prototypes 851


void _exit(intstatus);
<unistd.h> p. 198
This function never returns

void exit(intstatus);
<stdlib.h> p. 198
This function never returns

int faccessat(intfd,const char *path,intmode,intflag);
<unistd.h> p. 102
mode:R_OK, W_OK, X_OK, F_OK
flag:AT_EACCESS
Returns: 0 if OK,−1 on error

int fchdir(intfd);
<unistd.h> p. 135
Returns: 0 if OK,−1 on error

int fchmod(intfd,mode_tmode);
<sys/stat.h> p. 106
mode:S_IS[UG]ID, S_ISVTX,
S_I[RWX](USR|GRP|OTH)
Returns: 0 if OK,−1 on error

int fchmodat(intfd,const char *path,mode_tmode,intflag);
<sys/stat.h> p. 106
mode:S_IS[UG]ID, S_ISVTX,
S_I[RWX](USR|GRP|OTH)
flag:AT_SYMLINK_NOFOLLOW
Returns: 0 if OK,−1 on error

int fchown(intfd,uid_towner,gid_tgroup);
<unistd.h> p. 109
Returns: 0 if OK,−1 on error

int fchownat(intfd,const char *path,uid_towner,
gid_tgroup,intflag);
<unistd.h> p. 109
flag:AT_SYMLINK_NOFOLLOW
Returns: 0 if OK,−1 on error

int fclose(FILE *fp);
<stdio.h> p. 150
Returns: 0 if OK,EOFon error
Free download pdf