Sha256: 3dce6dcb90c0f03207fab868c770ff7574758b3dce67853ed1016a663a35fa01
Contents?: true
Size: 248 Bytes
Versions: 3
Compression:
Stored size: 248 Bytes
Contents
#include <unistd.h> #include <fcntl.h> #include "open.h" #include "blocking.h" int open_pipe(int *fd) { int i; if (pipe(fd) == -1) return -1; for (i = 0;i < 2;++i) { fcntl(fd[i],F_SETFD,1); blocking_disable(fd[i]); } return 0; }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby_nacl-0.1.2 | ext/ruby_nacl/NaCl/curvecp/open_pipe.c |
ruby_nacl-0.1.1 | ext/ruby_nacl/NaCl/curvecp/open_pipe.c |
ruby_nacl-0.1.0 | ext/ruby_nacl/NaCl/curvecp/open_pipe.c |