scsh-0.6/scsh/nextbs.c

18 lines
308 B
C
Raw Normal View History

2003-05-01 06:21:33 -04:00
/* Losing reimplimentation of Posix calls for NextSTEP. */
#include <stdio.h>
#include <sys/types.h>
#include <sgtty.h>
int tcsetpgrp1(int fd, int pid)
{
int i;
return ioctl(0, TIOCSPGRP, &i);
}
int tcgetpgrp1(int fd)
{
int i, j;
return (ioctl(0, TIOCGPGRP, &i) == -1) ? -1 : i;
}