ptg10805159
Appendix A Function Prototypes 855
int fsetpos(FILE *fp,const fpos_t *pos);
<stdio.h> p. 158
Returns: 0 if OK, nonzero on error
int fstat(intfd,struct stat *buf);
<sys/stat.h> p. 93
Returns: 0 if OK,−1 on error
int fstatat(intfd,const char *restrictpath,
struct stat *restrictbuf,intflag);
<sys/stat.h> p. 93
flag:AT_SYMLINK_NOFOLLOW
Returns: 0 if OK,−1 on error
int fsync(intfd);
<unistd.h> p. 81
Returns: 0 if OK,−1 on error
long ftell(FILE *fp);
<stdio.h> p. 158
Returns: current file position indicator if OK,−1L on error
off_t ftello(FILE *fp);
<stdio.h> p. 158
Returns: current file position indicator if OK,
(off_t)− 1 on error
key_t ftok(const char *path,intid);
<sys/ipc.h> p. 557
Returns: key if OK,(key_t)− 1 on error
int ftruncate(intfd,off_tlength);
<unistd.h> p. 112
Returns: 0 if OK,−1 on error
int ftrylockfile(FILE *fp);
<stdio.h> p. 443
Returns: 0 if OK, nonzero if lock can’t be acquired
void funlockfile(FILE *fp);
<stdio.h> p. 443
int futimens(intfd,const struct timespectimes[2]);
<sys/stat.h> p. 126
Returns: 0 if OK,−1 on error