ptg10805159
Appendix A Function Prototypes 889
int tcgetattr(intfd,struct termios *termptr);
<termios.h> p. 683
Returns: 0 if OK,−1 on error
pid_t tcgetpgrp(intfd);
<unistd.h> p. 298
Returns: process group ID of foreground process group if OK,
−1 on error
pid_t tcgetsid(intfd);
<termios.h> p. 299
Returns: session leader’s process group ID if OK,−1 on error
int tcsendbreak(intfd,intduration);
<termios.h> p. 693
Returns: 0 if OK,−1 on error
int tcsetattr(intfd,intopt,const struct termios *termptr);
<termios.h> p. 683
opt:TCSANOW, TCSADRAIN, TCSAFLUSH
Returns: 0 if OK,−1 on error
int tcsetpgrp(intfd,pid_tpgrpid);
<unistd.h> p. 298
Returns: 0 if OK,−1 on error
long telldir(DIR *dp);
<dirent.h> p. 130
Returns: current location in directory associated withdp
time_t time(time_t *calptr);
<time.h> p. 189
Returns: value of time if OK,−1 on error
clock_t times(struct tms *buf);
<sys/times.h> p. 280
Returns: elapsed wall clock time in clock ticks if OK,
−1 on error
FILE *tmpfile(void);
<stdio.h> p. 167
Returns: file pointer if OK,NULLon error
char *tmpnam(char *ptr);
<stdio.h> p. 167
Returns: pointer to unique pathname,NULLon error