ptg10805159Appendix A Function Prototypes 863
int lio_listio(intmode,
struct aiocb *restrict const list[restrict],
int nent,struct sigevent *restrictsigev);
<aio.h> p. 515
mode:LIO_NOWAIT, LIO_WAIT
Returns: 0 if OK,−1 on errorint listen(intsockfd,intbacklog);
<sys/socket.h> p. 608
Returns: 0 if OK,−1 on errorstruct
tm *localtime(const time_t *calptr);
<time.h> p. 192
Returns: pointer to broken-down time,NULLon errorvoid longjmp(jmp_bufenv,intval);
<setjmp.h> p. 215
This function never returnsoff_t lseek(intfd,off_toffset,intwhence);
<unistd.h> p. 67
whence:SEEK_SET, SEEK_CUR, SEEK_END
Returns: new file offset if OK,−1 on errorint lstat(const char *restrictpath,
struct stat *restrictbuf);
<sys/stat.h> p. 93
Returns: 0 if OK,−1 on errorvoid *malloc(size_tsize);
<stdlib.h> p. 207
Returns: non-null pointer if OK,NULLon errorint mkdir(const char *path,mode_tmode);
<sys/stat.h> p. 129
mode:S_IS[UG]ID, S_ISVTX,
S_I[RWX](USR|GRP|OTH)
Returns: 0 if OK,−1 on errorint mkdirat(intfd,const char *path,mode_tmode);
<sys/stat.h> p. 129
mode:S_IS[UG]ID, S_ISVTX,
S_I[RWX](USR|GRP|OTH)
Returns: 0 if OK,−1 on error