projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make pthread_create return EAGAIN on resource failure, as required by POSIX
[oweals/musl.git]
/
src
/
termios
/
tcgetsid.c
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
}