Advanced Programming in the UNIX® Environment

(lily) #1
ptg10805159

890 Function Prototypes Appendix A


int truncate(const char *path,off_tlength);
<unistd.h> p. 112
Returns: 0 if OK,−1 on error

char *ttyname(intfd);
<unistd.h> p. 695
Returns: pointer to pathname of terminal,NULLon error

mode_t umask(mode_tcmask);
<sys/stat.h> p. 104
Returns: previous file mode creation mask

int uname(struct utsname *name);
<sys/utsname.h> p. 187
Returns: non-negative value if OK,−1 on error

int ungetc(intc,FILE *fp);
<stdio.h> p. 151
Returns:cif OK,EOFon error

int unlink(const char *path);
<unistd.h> p. 117
Returns: 0 if OK,−1 on error

int unlinkat(intfd,const char *path,intflag);
<unistd.h> p. 117
flag:AT_REMOVEDIR
Returns: 0 if OK,−1 on error

int unlockpt(intfd);
<stdlib.h> p. 723
Returns: 0 on success,−1 on error

int unsetenv(const char *name);
<stdlib.h> p. 212
Returns: 0 if OK,−1 on error

int utimensat(intfd,const char *path,
const struct timespectimes[2], intflag);
<sys/stat.h> p. 126
flag:AT_SYMLINK_NOFOLLOW
Returns: 0 if OK,−1 on error

int utimes(const char *path,const struct timevaltimes[2]);
<sys/time.h> p. 127
Returns: 0 if OK,−1 on error
Free download pdf