ptg10805159
Appendix A Function Prototypes 877
int putchar_unlocked(intc);
<stdio.h> p. 444
Returns:cif OK,EOFon error
int putc_unlocked(intc,FILE *fp);
<stdio.h> p. 444
Returns:cif OK,EOFon error
int putenv(char *str);
<stdlib.h> p. 212
Returns: 0 if OK, nonzero on error
int puts(const char *str);
<stdio.h> p. 153
Returns: non-negative value if OK,EOFon error
ssize_t pwrite(intfd,const void *buf,size_tnbytes,off_toffset);
<unistd.h> p. 78
Returns: number of bytes written if OK,−1 on error
int raise(intsigno);
<signal.h> p. 337
Returns: 0 if OK, nonzero on error
ssize_t read(intfd,void *buf,size_tnbytes);
<unistd.h> p. 71
Returns: number of bytes read if OK, 0 if end of file,
−1 on error
struct
dirent *readdir(DIR *dp);
<dirent.h> p. 130
Returns: pointer if OK,NULLat end of directory or error
ssize_t readlink(const char *restrictpath,char *restrictbuf,
size_tbufsize);
<unistd.h> p. 123
Returns: number of bytes read if OK,−1 on error
ssize_t readlinkat(intfd,const char* restrictpath,
char *restrictbuf,size_tbufsize);
<unistd.h> p. 123
Returns: number of bytes read if OK,−1 on error
ssize_t readv(intfd,const struct iovec *iov,intiovcnt);
<sys/uio.h> p. 521
Returns: number of bytes read if OK, 0 if end of file,
−1 on error