File:  [DVB] / dietlibc / lib / tcgetsid.c
Revision 1.1: download - view: text, annotated - select for diffs
Tue Aug 3 22:28:46 2004 UTC (19 years, 10 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
add two math prototypes and tcgetsid

#include <termios.h>
#include <sys/ioctl.h>

pid_t tcgetsid(int fildes) {
  pid_t pid;
  return ioctl(fildes, TIOCGSID, &pid)==-1?-1:pid;
}


LinuxTV legacy CVS <linuxtv.org/cvs>