ptg10805159
864 Function Prototypes Appendix A
char *mkdtemp(char *template);
<stdlib.h> p. 169
Returns: pointer to directory name if OK,NULLon error
int mkfifo(const char *path,mode_tmode);
<sys/stat.h> p. 553
mode:S_IS[UG]ID, S_ISVTX,
S_I[RWX](USR|GRP|OTH)
Returns: 0 if OK,−1 on error
int mkfifoat(intfd,const char *path,mode_tmode);
<sys/stat.h> p. 553
mode:S_IS[UG]ID, S_ISVTX,
S_I[RWX](USR|GRP|OTH)
Returns: 0 if OK,−1 on error
int mkstemp(char *template);
<stdlib.h> p. 169
Returns: file descriptor if OK,−1 on error
time_t mktime(struct tm *tmptr);
<time.h> p. 192
Returns: calendar time if OK,−1 on error
void *mmap(void *addr,size_tlen,intprot,intflag,intfd,
off_toff);
<sys/mman.h> p. 525
prot:PROT_READ, PROT_WRITE, PROT_EXEC,
PROT_NONE
flag:MAP_FIXED, MAP_SHARED, MAP_PRIVATE
Returns: starting address of mapped region if OK,
MAP_FAILEDon error
int mprotect(void *addr,size_tlen,intprot);
<sys/mman.h> p. 527
Returns: 0 if OK,−1 on error
int msgctl(intmsqid,intcmd,struct msqid_ds *buf);
<sys/msg.h> p. 562
cmd:IPC_STAT, IPC_SET, IPC_RMID
Returns: 0 if OK,−1 on error
int msgget(key_tkey,intflag);
<sys/msg.h> p. 562
flag:IPC_CREAT, IPC_EXCL
Returns: message queue ID if OK,−1 on error