Searched refs:newfd (Results 1 - 5 of 5) sorted by relevance
/haiku/src/tools/fs_shell/ |
H A D | fd.cpp | 300 * close(newfd); 301 * fcntl(oldfd, F_DUPFD, newfd); 307 dup2_fd(int oldfd, int newfd, bool kernel) argument 312 TRACE(("dup2_fd: ofd = %d, nfd = %d\n", oldfd, newfd)); 315 if (oldfd < 0 || newfd < 0) 325 || (uint32_t)newfd >= context->table_size 334 if (oldfd != newfd) { 336 evicted = context->fds[newfd]; 339 context->fds[newfd] = context->fds[oldfd]; 345 fd_set_close_on_exec(context, newfd, fals [all...] |
/haiku/src/system/kernel/fs/ |
H A D | fd.cpp | 368 close(newfd); 369 fcntl(oldfd, F_DUPFD, newfd); 374 dup2_fd(int oldfd, int newfd, bool kernel) argument 379 TRACE(("dup2_fd: ofd = %d, nfd = %d\n", oldfd, newfd)); 382 if (oldfd < 0 || newfd < 0) 392 || (uint32)newfd >= context->table_size 402 if (oldfd != newfd) { 404 TFD(Dup2FD(context, oldfd, newfd)); 406 evicted = context->fds[newfd]; 407 select_info* selectInfos = context->select_infos[newfd]; [all...] |
/haiku/src/system/libroot/posix/ |
H A D | spawn.cpp | 460 int newfd = dup(action->fd); local 461 if (newfd == -1) 464 fcntl(newfd, F_SETFD, FD_CLOEXEC); 465 *errfd = newfd;
|
/haiku/src/libs/bsd/ |
H A D | fts.c | 1192 int ret, oerrno, newfd; local 1195 newfd = fd; 1198 if (fd < 0 && (newfd = open(path, O_RDONLY | O_DIRECTORY | 1201 if (fstat(newfd, &sb)) { 1210 ret = fchdir(newfd); 1214 (void)close(newfd);
|
/haiku/src/apps/poorman/libhttpd/ |
H A D | libhttpd.c | 3434 int newfd = dup2( hc->conn_fd, STDERR_FILENO + 1 ); local 3435 if ( newfd >= 0 ) 3436 hc->conn_fd = newfd;
|
Completed in 54 milliseconds