repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
rename memalign source file back to its proper name
[musl.git]
/
src
/
termios
/
tcgetsid.c
blob
1053fd64724790adce5644375a7a1cec6e97df96
1
#include <termios.h>
2
#include <sys/ioctl.h>
3
4
pid_t
tcgetsid
(
int
fd
)
5
{
6
int
sid
;
7
if
(
ioctl
(
fd
,
TIOCGSID
, &
sid
) <
0
)
8
return
-
1
;
9
return
sid
;
10
}