Searched refs:newfd (Results 1 - 25 of 27) sorted by relevance

12

/freebsd-10-stable/lib/libc/gen/
H A Ddup3.c39 __dup3(int oldfd, int newfd, int flags) argument
43 if (oldfd == newfd) {
55 return (_fcntl(oldfd, how, newfd));
H A Dfts-compat.c1180 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 Dfts.c1126 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 Dfsshare.c155 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 Dsocket.c79 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 Dnfs.c290 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 Dbspatch.c100 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 Dport.c131 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 Dctlinfo.c430 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 Dprocess.c310 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 Dnetevent.h498 * @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 Dnetevent.c1999 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 Dxinstall.c1125 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 Drcsutil.c920 int newfd; local
922 newfd =
927 return movefd(newfd, fd);
/freebsd-10-stable/sys/compat/linux/
H A Dlinux_file.c1608 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 Dremote.c510 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 Dsyscallsubr.h198 int kern_renameat(struct thread *td, int oldfd, char *old, int newfd,
/freebsd-10-stable/sys/kern/
H A Dvfs_syscalls.c3600 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 Dsystrace_args.c3024 iarg[2] = p->newfd; /* int */
/freebsd-10-stable/sys/amd64/linux32/
H A Dlinux32_systrace_args.c2246 iarg[1] = p->newfd; /* l_int */
H A Dlinux32_proto.h1094 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 Dlinux_systrace_args.c2322 iarg[1] = p->newfd; /* l_int */
/freebsd-10-stable/sys/amd64/linux/
H A Dlinux_systrace_args.c2145 iarg[1] = p->newfd; /* l_int */
H A Dlinux_proto.h1038 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 Dfreebsd32_systrace_args.c2895 iarg[2] = p->newfd; /* int */

Completed in 472 milliseconds

12