Advanced Programming in the UNIX® Environment

(lily) #1
ptg10805159

Appendix A Function Prototypes 887


int stat(const char *restrictpath,struct stat *restrictbuf);
<sys/stat.h> p. 93
Returns: 0 if OK,−1 on error

int str2sig(const char *str,int *signop);
<signal.h> p. 380
Returns: 0 if OK,−1 on error
Platforms: Solaris 10

char *strerror(interrnum);
<string.h> p. 15
Returns: pointer to message string

size_t strftime(char *restrictbuf,size_tmaxsize,
const char *restrictformat,
const struct tm *restricttmptr);
<time.h> p. 192
Returns: number of characters stored in array if room,
0otherwise

size_t strftime_l(char *restrictbuf,size_tmaxsize,
const char *restrictformat,
const struct tm *restricttmptr,locale_tlocale);
<time.h> p. 192
Returns: number of characters stored in array if room,
0otherwise

char *strptime(const char *restrictbuf,const char *restrictformat,
struct tm *restricttmptr);
<time.h> p. 195
Returns: pointer to one character past last character parsed,
NULLotherwise

char *strsignal(intsigno);
<string.h> p. 380
Returns: a pointer to a string describing the signal

int symlink(const char *actualpath,const char *sympath);
<unistd.h> p. 123
Returns: 0 if OK,−1 on error

int symlinkat(const char *actualpath,intfd,const char *sympath);
<unistd.h> p. 123
Returns: 0 if OK,−1 on error

void sync(void);
<unistd.h> p. 81
Free download pdf