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