~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
transparent background for about disorder.. image
[disorder]
/
lib
/
syscalls.c
diff --git
a/lib/syscalls.c
b/lib/syscalls.c
index
a84e2eb
..
f05b644
100644
(file)
--- a/
lib/syscalls.c
+++ b/
lib/syscalls.c
@@
-66,6
+66,13
@@
void nonblock(int fd) {
fcntl(fd, F_GETFL)) | O_NONBLOCK));
}
fcntl(fd, F_GETFL)) | O_NONBLOCK));
}
+void blocking(int fd) {
+ mustnotbeminus1("fcntl F_SETFL",
+ fcntl(fd, F_SETFL,
+ mustnotbeminus1("fcntl F_GETFL",
+ fcntl(fd, F_GETFL)) & ~O_NONBLOCK));
+}
+
void cloexec(int fd) {
mustnotbeminus1("fcntl F_SETFD",
fcntl(fd, F_SETFD,
void cloexec(int fd) {
mustnotbeminus1("fcntl F_SETFD",
fcntl(fd, F_SETFD,