summaryrefslogtreecommitdiff
path: root/src/termios/tcgetsid.c
blob: 54836010ce463c9570a2d8e9bf78282a9c5e7909 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#if 0

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

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

/*
XOPEN(400)
POSIX(200809)
*/


#endif