/freebsd-10-stable/lib/libc/gen/ |
H A D | dup3.c | 39 __dup3(int oldfd, int newfd, int flags) argument 43 if (oldfd == newfd) { 55 return (_fcntl(oldfd, how, newfd));
|
H A D | fts-compat.c | 1180 int ret, oerrno, newfd; local 1183 newfd = fd; 1186 if (fd < 0 && (newfd = _open(path, O_RDONLY | O_CLOEXEC, 0)) < 0) 1188 if (_fstat(newfd, &sb)) { 1197 ret = fchdir(newfd); 1201 (void)_close(newfd);
|
H A D | fts.c | 1126 int ret, oerrno, newfd; local 1129 newfd = fd; 1132 if (fd < 0 && (newfd = _open(path, O_RDONLY | O_DIRECTORY | 1135 if (_fstat(newfd, &sb)) { 1144 ret = fchdir(newfd); 1148 (void)_close(newfd);
|
/freebsd-10-stable/cddl/compat/opensolaris/misc/ |
H A D | fsshare.c | 155 FILE *newfd, *oldfd; local 158 newfd = oldfd = NULL; 178 newfd = fdopen(fd, "r+"); 179 assert(newfd != NULL); 202 fprintf(newfd, "%s", FILE_HEADER); 204 fprintf(newfd, "%s\n", line); 209 if (ferror(newfd) != 0) { 210 error = ferror(newfd); 214 fprintf(newfd, "%s\t%s\n", mountpoint, 226 fflush(newfd); [all...] |
/freebsd-10-stable/contrib/ntp/libntp/ |
H A D | socket.c | 79 SOCKET newfd; local 102 newfd = fcntl(fd, F_DUPFD, socket_boundary); 104 if (newfd != -1) { 107 return newfd;
|
/freebsd-10-stable/lib/libstand/ |
H A D | nfs.c | 290 nfs_lookupfh(struct nfs_iodesc *d, const char *name, struct nfs_iodesc *newfd) argument 343 bcopy( repl->fh, &newfd->fh, sizeof(newfd->fh)); 344 bcopy(&repl->fa, &newfd->fa, sizeof(newfd->fa)); 465 struct nfs_iodesc *newfd; local 521 currfd = malloc(sizeof(*newfd)); 529 newfd = 0; 554 newfd = malloc(sizeof(*newfd)); 893 nfs_lookupfh(struct nfs_iodesc *d, const char *name, struct nfs_iodesc *newfd) argument 1107 struct nfs_iodesc *newfd; local [all...] |
/freebsd-10-stable/usr.bin/bsdiff/bspatch/ |
H A D | bspatch.c | 100 int newfd, oldfd; local 139 if ((newfd = openat(dirfd, newfile, 160 cap_rights_limit(newfd, &rights_wr) < 0 || 289 if (write(newfd, new, newsize) != newsize || close(newfd) == -1)
|
/freebsd-10-stable/contrib/ofed/libsdp/src/ |
H A D | port.c | 131 typedef int (*dup2_func_t) (int oldfd, int newfd); 1620 int newfd, new_shadow_fd = -1; local 1637 newfd = _socket_funcs.dup(fd); 1639 if (newfd == fd) 1642 if (!is_valid_fd(newfd)) { 1643 __sdp_log(9, "Error dup: new fd <%d> out of range.\n", newfd); 1646 libsdp_fd_attributes[newfd] = libsdp_fd_attributes[fd]; 1647 libsdp_fd_attributes[newfd].shadow_fd = -1; 1658 libsdp_fd_attributes[newfd].shadow_fd = new_shadow_fd; 1664 program_invocation_short_name, fd, shadow_fd, newfd, 1673 dup2(int fd, int newfd) argument [all...] |
/freebsd-10-stable/usr.sbin/lpr/common_source/ |
H A D | ctlinfo.c | 430 int chk3rd, has_uc, newfd, nogood, res; local 483 newfd = open(tfname2, O_WRONLY|O_CREAT|O_TRUNC, 0660); 484 if (newfd == -1) { 490 newcf = fdopen(newfd, "w"); 492 close(newfd);
|
/freebsd-10-stable/contrib/atf/atf-c/detail/ |
H A D | process.c | 310 safe_dup(const int oldfd, const int newfd) argument 314 if (oldfd != newfd) { 315 if (dup2(oldfd, newfd) == -1) {
|
/freebsd-10-stable/contrib/unbound/util/ |
H A D | netevent.h | 498 * @param newfd: new fd, or -1 to leave fd be. 501 void comm_point_start_listening(struct comm_point* c, int newfd, int sec);
|
H A D | netevent.c | 1999 comm_point_start_listening(struct comm_point* c, int newfd, int sec) argument 2002 c->fd==-1?newfd:c->fd); 2028 if(newfd != -1) { 2036 c->fd = newfd;
|
/freebsd-10-stable/usr.bin/xinstall/ |
H A D | xinstall.c | 1125 int newfd; local 1163 newfd = open(path, O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR); 1164 if (newfd < 0 && saved_errno != 0) 1166 return newfd;
|
/freebsd-10-stable/gnu/usr.bin/rcs/lib/ |
H A D | rcsutil.c | 920 int newfd; local 922 newfd = 927 return movefd(newfd, fd);
|
/freebsd-10-stable/sys/compat/linux/ |
H A D | linux_file.c | 1608 intptr_t newfd; local 1610 if (args->oldfd == args->newfd) 1619 newfd = args->newfd; 1620 return (kern_fcntl(td, args->oldfd, cmd, newfd));
|
/freebsd-10-stable/contrib/unbound/daemon/ |
H A D | remote.c | 510 int newfd; local 517 newfd = comm_point_perform_accept(c, &addr, &addrlen); 518 if(newfd == -1) 525 close(newfd); 527 closesocket(newfd); 539 n->c = comm_point_create_raw(rc->worker->base, newfd, 0, 562 if(!SSL_set_fd(n->ssl, newfd)) {
|
/freebsd-10-stable/sys/sys/ |
H A D | syscallsubr.h | 198 int kern_renameat(struct thread *td, int oldfd, char *old, int newfd,
|
/freebsd-10-stable/sys/kern/ |
H A D | vfs_syscalls.c | 3600 int newfd; member in struct:renameat_args 3608 return (kern_renameat(td, uap->oldfd, uap->old, uap->newfd, uap->new, 3620 kern_renameat(struct thread *td, int oldfd, char *old, int newfd, char *new, argument 3651 SAVESTART | AUDITVNODE2, pathseg, new, newfd, 3695 if (newfd != AT_FDCWD) { 3698 * from 'newfd'.
|
H A D | systrace_args.c | 3024 iarg[2] = p->newfd; /* int */
|
/freebsd-10-stable/sys/amd64/linux32/ |
H A D | linux32_systrace_args.c | 2246 iarg[1] = p->newfd; /* l_int */
|
H A D | linux32_proto.h | 1094 char newfd_l_[PADL_(l_int)]; l_int newfd; char newfd_r_[PADR_(l_int)]; member in struct:linux_dup3_args
|
/freebsd-10-stable/sys/i386/linux/ |
H A D | linux_systrace_args.c | 2322 iarg[1] = p->newfd; /* l_int */
|
/freebsd-10-stable/sys/amd64/linux/ |
H A D | linux_systrace_args.c | 2145 iarg[1] = p->newfd; /* l_int */
|
H A D | linux_proto.h | 1038 char newfd_l_[PADL_(l_int)]; l_int newfd; char newfd_r_[PADR_(l_int)]; member in struct:linux_dup3_args
|
/freebsd-10-stable/sys/compat/freebsd32/ |
H A D | freebsd32_systrace_args.c | 2895 iarg[2] = p->newfd; /* int */
|