#include <termios.h>

termios.h

1 function

functiontcgetsid

pid_t tcgetsid(int)
man page · December 20, 2003
tcgetsid(3) — get the process group ID for the session leader for the controlling terminal