projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add pthread_setaffinity_np and pthread_getaffinity_np functions
[musl]
/
src
/
legacy
/
isastream.c
1
#include <stropts.h>
2
#include <fcntl.h>
3
4
int isastream(int fd)
5
{
6
return fcntl(fd, F_GETFD) < 0 ? -1 : 0;
7
}