POSIX: add tcgetsid()

Change-Id: If58141b4e56b7fe444460b6808e33abc5ea71f37
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3374
Reviewed-by: Axel Dörfler <[email protected]>
This commit is contained in:
Jérôme Duval
2020-11-04 06:18:17 +00:00
parent 102bf4b799
commit b48159dce2
3 changed files with 24 additions and 0 deletions
+2
View File
@@ -187,6 +187,7 @@ struct termios {
#define TIOCCBRK (TCGETA + 21) /* both are a frontend to TCSBRK */
#define TIOCMBIS (TCGETA + 22) /* set bits in line state */
#define TIOCMBIC (TCGETA + 23) /* clear bits in line state */
#define TIOCGSID (TCGETA + 24) /* get session leader process group ID */
/* Event codes. Returned from TCWAITEVENT */
#define EV_RING 0x0001
@@ -233,6 +234,7 @@ extern int tcsendbreak(int fd, int duration);
extern int tcdrain(int fd);
extern int tcflow(int fd, int action);
extern int tcflush(int fd, int queueSelector);
extern pid_t tcgetsid(int fd);
#ifdef __cplusplus
}