ptg10805159
Appendix A Function Prototypes 879
int renameat(intoldfd,const char *oldname,intnewfd,
const char *newname);
<stdio.h> p. 119
Returns: 0 if OK,−1 on error
void rewind(FILE *fp);
<stdio.h> p. 158
void rewinddir(DIR *dp);
<dirent.h> p. 130
int rmdir(const char *path);
<unistd.h> p. 130
Returns: 0 if OK,−1 on error
int scanf(const char *restrictformat,...);
<stdio.h> p. 162
Returns: number of input items assigned,EOFif input error or
end of file beforeany conversion
void seekdir(DIR *dp,long loc);
<dirent.h> p. 130
int select(intmaxfdp1,fd_set *restrictreadfds,
fd_set *restrictwritefds,fd_set *restrictexceptfds,
struct timeval *restricttvptr);
<sys/select.h> p. 502
Returns: count of ready descriptors, 0 on timeout,−1 on error
int sem_close(sem_t *sem);
<semaphore.h> p. 580
Returns: 0 if OK,−1 on error
int semctl(intsemid,intsemnum,intcmd,...
/* union semunarg*/ );
<sys/sem.h> p. 567
cmd:IPC_STAT, IPC_SET, IPC_RMID, GETPID,
GETNCNT, GETZCNT, GETVAL, SETVAL,
GETALL, SETALL
Returns: (depends on command),−1 on error
int sem_destroy(sem_t *sem);
<semaphore.h> p. 582
Returns: 0 if OK,−1 on error