Searched refs:dup2 (Results 1 - 4 of 4) sorted by relevance

/darwin-on-arm/xnu/bsd/man/man2/
H A DMakefile39 dup2.2 \
/darwin-on-arm/xnu/bsd/kern/
H A Dkern_exec.c1477 * open, close, and dup2 operations to the open file table for
1547 * with the wrong fd; so now we've got to try to dup2
1554 * The dup2() system call implementation sets
1559 error = dup2(p, &dup2a, ival);
1579 * The dup2() system call implementation sets
1584 error = dup2(p, &dup2a, ival);
H A Dkern_descrip.c489 * dup2
505 dup2(proc_t p, struct dup2_args *uap, int32_t *retval) function
565 panic("dup2: no ref on fileproc %d", new);
577 panic("dup2: overwriting fd_ofiles with new %d", new);
579 panic("dup2: unreserved fileflags with new %d", new);
2135 * Description: Common code for dup, dup2, and fcntl(F_DUPFD).
/darwin-on-arm/xnu/tools/tests/xnu_quick_test/
H A Dtests.c2301 * Test dup, dup2, getdtablesize system calls.
2331 /* test dup, dup2, getdtablesize */
2396 /* we do the above tests twice - once for dup and once for dup2 */
2401 my_err = dup2( my_fd, my_newfd );
2403 printf( "dup2 call failed with error %d - \"%s\" \n", errno, strerror( errno) );

Completed in 90 milliseconds