Searched refs:pipefd (Results 1 - 8 of 8) sorted by relevance
/lxc/src/tests/ |
H A D | attach.c | 89 int pipefd[2]; local 95 ret = pipe(pipefd); 100 attach_options.stdout_fd = pipefd[1]; 109 ret = read(pipefd[0], result, sizeof(result)-1); 126 close(pipefd[0]); 127 close(pipefd[1]); 135 int pipefd[2]; local 144 ret = pipe(pipefd); 149 attach_options.stdout_fd = pipefd[1]; 157 ret = read(pipefd[ 200 int pipefd[2]; local [all...] |
H A D | aa.c | 68 int pipefd[2]; local 72 ret = pipe(pipefd); 77 attach_options.stdout_fd = pipefd[1]; 86 ret = read(pipefd[0], result, sizeof(result)-1); 99 close(pipefd[0]); 100 close(pipefd[1]);
|
/lxc/src/lxc/ |
H A D | monitor.c | 311 int pipefd[2]; local 337 if (pipe(pipefd) < 0) { 352 close(pipefd[1]); 359 if (read(pipefd[0], &c, 1)) 362 close(pipefd[0]); 373 lxc_check_inherited(NULL, true, pipefd[1]); 379 close(pipefd[0]); 381 ret = snprintf(pipefd_str, LXC_NUMSTRLEN64, "%d", pipefd[1]); 387 DEBUG("Using pipe file descriptor %d for monitord.", pipefd[1]);
|
H A D | criu.c | 66 int pipefd; member in struct:criu_opts 587 if (dup2(opts->pipefd, STDOUT_FILENO) < 0) { 592 if (dup2(opts->pipefd, STDERR_FILENO) < 0) { 597 close(opts->pipefd); 865 os.pipefd = pipes[1]; 1096 os.pipefd = criuout[1]; 1184 int pipefd[2]; local 1195 if (pipe(pipefd)) { 1202 close(pipefd[0]); 1203 close(pipefd[ [all...] |
H A D | lxc_monitord.c | 347 int ret, pipefd; local 372 if (lxc_safe_int(argv[2], &pipefd) < 0) 412 if (write(pipefd, "S", 1)) 414 close(pipefd);
|
H A D | lxccontainer.c | 1781 int i, count = 0, pipefd[2]; local 1785 if(pipe(pipefd) < 0) { 1793 close(pipefd[0]); 1794 close(pipefd[1]); 1803 close(pipefd[0]); 1818 nbytes = write(pipefd[1], tempIfAddr->ifa_name, IFNAMSIZ); 1832 close(pipefd[1]); 1837 close(pipefd[1]); 1839 while (read(pipefd[0], &interface, IFNAMSIZ) == IFNAMSIZ) { 1856 close(pipefd[ 1870 int i, count = 0, pipefd[2]; local [all...] |
H A D | conf.c | 3115 int bytes, pipefd[2]; local 3126 if (pipe(pipefd) < 0) { 3134 close(pipefd[0]); 3135 close(pipefd[1]); 3144 close(pipefd[0]); /* Close the read-end of the pipe. */ 3147 ret = dup2(pipefd[1], STDOUT_FILENO); 3148 close(pipefd[1]); /* Close the write-end of the pipe. */ 3174 close(pipefd[1]); 3176 bytes = read(pipefd[0], &buffer, MAX_BUFFER_SIZE); 3182 close(pipefd[ [all...] |
/lxc/src/lxc/tools/ |
H A D | lxc_ls.c | 112 int pipefd[2]; member in struct:wrapargs 496 check = socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, wargs.pipefd); 517 close(wargs.pipefd[1]); 521 if (ls_deserialize(wargs.pipefd[0], m, size) == -1) 529 shutdown(wargs.pipefd[0], SHUT_RDWR); 530 close(wargs.pipefd[0]); 970 close(wargs->pipefd[0]); 979 if (lxc_write_nointr(wargs->pipefd[1], &len, sizeof(len)) <= 0) 984 if (ls_serialize(wargs->pipefd[1], n) == -1) 990 shutdown(wargs->pipefd[ [all...] |
Completed in 390 milliseconds