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