Sign in
fuchsia
/
fuchsia
/
refs/heads/releases/canary
/
.
/
zircon
/
third_party
/
ulib
/
musl
/
src
/
termios
/
tcgetsid.c
blob: ce7cdd0655421225e831c548fce61b43cb7d10a8 [
file
] [
log
] [
blame
]
#include
<sys/ioctl.h>
#include
<termios.h>
pid_t
tcgetsid
(
int
fd
)
{
int
sid
;
if
(
ioctl
(
fd
,
TIOCGSID
,
&
sid
)
<
0
)
return
-
1
;
return
sid
;
}