File:  [DVB] / dietlibc / lib / tcgetpgrp.c
Revision 1.5: download - view: text, annotated - select for diffs
Tue Mar 15 08:51:22 2005 UTC (19 years, 2 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
  Lots of fixes and patches from Markus Oberhumer.
    libstdc++ compatibility
    ilp64 compatibility
    make diet libc compile with -Werror on 13 platforms
  ppc64 now compiles again

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

pid_t tcgetpgrp(int fildes)
{
  int32_t foo = -1;
  if (ioctl(fildes, TIOCGPGRP, &foo)==-1)
    return -1;
  else
    return foo;
}

LinuxTV legacy CVS <linuxtv.org/cvs>