blob: 8d5d4614a1aa84961cb128e02f01dd50b46b3315 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <termios.h>
#include <sys/ioctl.h>
#include <unistd.h>
int tcgetpgrp(int fildes)
{
int foo;
if (ioctl(fildes, TIOCGPGRP, &foo)==-1)
return -1;
else
return foo;
}
|