Back to index

glibc  2.9
tcgetpgrp.c File Reference
#include <sys/ioctl.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


pid_t tcgetpgrp (int fd)

Function Documentation

pid_t tcgetpgrp ( int  fd)

Definition at line 26 of file tcgetpgrp.c.

  int pgrp;

  if (__ioctl (fd, TIOCGPGRP, &pgrp) < 0)
    return (pid_t) -1;
  return (pid_t) pgrp;