| /freebsd-14.2/lib/libcasper/libcasper/ |
| H A D | zygote.c | 108 int error, procfd; in zygote_main() local 144 procfd = -1; in zygote_main() 153 pid = pdfork(&procfd, 0); in zygote_main() 177 if (procfd >= 0) in zygote_main() 178 close(procfd); in zygote_main() 181 nvlist_move_descriptor(nvlout, "procfd", procfd); in zygote_main()
|
| H A D | libcasper_service.c | 145 int procfd; in service_execute() local 157 procfd = nvlist_take_descriptor(nvl, "procfd"); in service_execute() 160 service_start(service, chanfd, procfd); in service_execute() 172 int chanfd, procfd, error; in casper_command() local 187 if (zygote_clone_service_execute(&chanfd, &procfd) == -1) in casper_command() 192 nvlist_move_descriptor(nvl, "procfd", procfd); in casper_command()
|
| H A D | libcasper_impl.h | 54 void service_start(struct service *service, int sock, int procfd);
|
| H A D | service.c | 419 service_start(struct service *service, int sock, int procfd) in service_start() argument 428 service_clean(&sock, &procfd, service->s_flags); in service_start()
|
| /freebsd-14.2/contrib/capsicum-test/ |
| H A D | waittest.c | 21 int procfd; in main() local 22 int rc = pdfork(&procfd, 0); in main() 31 fprintf(stderr, "pdfork()ed child pid=%ld procfd=%d\n", (long)rc, procfd); in main()
|
| H A D | procdesc.cc | 502 int procfd = open(buffer, O_RDONLY); in TEST_F() local 503 EXPECT_OK(procfd); in TEST_F() 505 EXPECT_OK(read(procfd, buffer, sizeof(buffer))); in TEST_F() 512 close(procfd); in TEST_F()
|
| H A D | linux.cc | 1236 int procfd = open(buffer, O_RDONLY); in TEST() local 1237 EXPECT_OK(procfd) << " failed to open " << buffer; in TEST() 1238 if (procfd < 0) return; in TEST() 1239 int proccap = dup(procfd); in TEST() 1249 close(procfd); in TEST()
|
| /freebsd-14.2/usr.bin/dc/ |
| H A D | dc.c | 61 procfd(int fd, char *fname) { in procfd() function 103 procfd(fd, optarg); in main() 141 procfd(fd, argv[0]); in main()
|
| /freebsd-14.2/contrib/atf/atf-c/detail/ |
| H A D | process.c | 330 child_connect(const stream_prepare_t *sp, int procfd) in child_connect() argument 337 err = safe_dup(sp->m_pipefds[1], procfd); in child_connect() 347 err = safe_dup(sp->m_sb->m_fd, procfd); in child_connect() 355 err = safe_dup(aux, procfd); in child_connect()
|
| /freebsd-14.2/tools/tools/syscall_timing/ |
| H A D | syscall_timing.c | 482 int fd[2], procfd; in test_pipeping() local 487 pid = pdfork(&procfd, 0); in test_pipeping() 509 close(procfd); in test_pipeping() 621 int error, j, procfd; in test_semaping() local 633 pid = pdfork(&procfd, 0); in test_semaping() 659 close(procfd); in test_semaping()
|