mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-28 00:48:54 +00:00
bf9710fd5a
This only affects build_android, if nacl-gcc-prep is run then build/`uname -s` will be created.
16 lines
248 B
C
16 lines
248 B
C
#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;
|
|
}
|