/netbsd-6-1-5-RELEASE/external/ibm-public/postfix/dist/src/util/ |
H A D | unix_recv_fd.c | 61 int newfd; 73 char control[CMSG_SPACE(sizeof(newfd))]; 80 msg.msg_controllen = CMSG_LEN(sizeof(newfd)); /* Fix 200506 */ 82 msg.msg_controllen = CMSG_SPACE(sizeof(newfd)); /* normal */ 85 msg.msg_accrights = (char *) &newfd; 86 msg.msg_accrightslen = sizeof(newfd); 109 && cmptr->cmsg_len == CMSG_LEN(sizeof(newfd))) { 120 if (msg.msg_accrightslen == sizeof(newfd)) 121 return (newfd);
|
/netbsd-6-1-5-RELEASE/external/cddl/osnet/lib/libzfs/ |
H A D | fsshare.c | 151 FILE *newfd, *oldfd; local 154 newfd = oldfd = NULL; 174 newfd = fdopen(fd, "r+"); 175 assert(newfd != NULL); 198 fprintf(newfd, "%s", FILE_HEADER); 200 fprintf(newfd, "%s\n", line); 205 if (ferror(newfd) != 0) { 206 error = ferror(newfd); 210 fprintf(newfd, "%s\t%s\n", mountpoint, 232 if (newfd ! [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/i386/stand/libsa/ |
H A D | nfs.c | 172 nfs_lookupfh(struct nfs_iodesc *d, const char *name, int len, struct nfs_iodesc *newfd) argument 224 memcpy(&newfd->fh, repl->fh, sizeof(newfd->fh)); 225 memcpy(&newfd->fa, &repl->fa, sizeof(newfd->fa)); 344 struct nfs_iodesc *newfd; local 381 newfd = 0; 402 newfd = alloc(sizeof(*newfd)); 403 newfd [all...] |
/netbsd-6-1-5-RELEASE/sys/lib/libsa/ |
H A D | nfs.c | 186 struct nfs_iodesc *newfd) 238 (void)memcpy(&newfd->fh, repl->fh, sizeof(newfd->fh)); 239 (void)memcpy(&newfd->fa, &repl->fa, sizeof(newfd->fa)); 388 struct nfs_iodesc *newfd, *currfd; local 409 newfd = 0; 431 newfd = alloc(sizeof(*newfd)); 432 newfd 185 nfs_lookupfh(struct nfs_iodesc *d, const char *name, int len, struct nfs_iodesc *newfd) argument [all...] |
/netbsd-6-1-5-RELEASE/external/gpl2/lvm2/dist/daemons/clvmd/ |
H A D | clvmd.c | 283 struct local_client *newfd; local 457 newfd = malloc(sizeof(struct local_client)); 458 if (!newfd) 461 newfd->fd = local_sock; 462 newfd->removeme = 0; 463 newfd->type = LOCAL_RENDEZVOUS; 464 newfd->callback = local_rendezvous_callback; 465 newfd->next = local_client_head.next; 466 local_client_head.next = newfd; 523 struct local_client *newfd; local 750 struct local_client *newfd = NULL; local 994 struct local_client *newfd; local 1032 struct local_client *newfd; local [all...] |
H A D | tcp-comms.c | 195 int newfd; local 203 newfd = accept(listen_fd, (struct sockaddr *)&addr, &addrlen); 205 DEBUGLOG("cluster_fd_callback, newfd=%d (errno=%d)\n", newfd, errno); 206 if (!newfd) 222 close(newfd); 228 status = alloc_client(newfd, (char *)&addr.sin6_addr, new_client); 232 close(newfd); 237 DEBUGLOG("cluster_fd_callback, returning %d, %p\n", newfd, *new_client); 238 return newfd; [all...] |
/netbsd-6-1-5-RELEASE/bin/sh/ |
H A D | redir.c | 380 int newfd; local 383 newfd = dup2(from, to); 385 newfd = fcntl(from, F_DUPFD, to); 386 if (newfd < 0) { 392 return newfd;
|
/netbsd-6-1-5-RELEASE/sys/ufs/chfs/ |
H A D | chfs_write.c | 413 struct chfs_dirent *newfd = NULL; local 418 newfd = chfs_alloc_dirent(namelen + 1); 420 newfd->vno = ip->ino; 421 newfd->type = type; 422 newfd->nsize = namelen; 423 memcpy(newfd->name, name, namelen); 424 newfd->name[newfd->nsize] = 0; 425 // newfd->next = NULL; 439 parent, ip, newfd, i [all...] |
/netbsd-6-1-5-RELEASE/distrib/utils/ssh/ |
H A D | ssh.c | 566 int newfd; local 569 if ((newfd = open(file, otype, def_omode)) < 0) { 573 if (newfd != setfd) { 574 dup2(newfd, setfd); 575 close(newfd);
|
/netbsd-6-1-5-RELEASE/lib/librumpuser/ |
H A D | rumpuser_sp.c | 568 int newfd, flags; local 572 newfd = accept(fd, (struct sockaddr *)&ss, &sl); 573 if (newfd == -1) 577 close(newfd); /* EBUSY */ 581 flags = fcntl(newfd, F_GETFL, 0); 582 if (fcntl(newfd, F_SETFL, flags | O_NONBLOCK) == -1) { 583 close(newfd); 587 if (connhook(newfd) != 0) { 588 close(newfd); 593 if (send(newfd, banne [all...] |
/netbsd-6-1-5-RELEASE/sys/rump/fs/lib/libsyspuffs/ |
H A D | puffs_rumpglue.c | 166 rump_syspuffs_glueinit(int fd, int *newfd) argument 187 *newfd = curlwp->l_dupfd;
|
/netbsd-6-1-5-RELEASE/external/bsd/tmux/dist/ |
H A D | server.c | 335 int newfd; local 340 newfd = accept(fd, (struct sockaddr *) &sa, &slen); 341 if (newfd == -1) { 347 close(newfd); 350 server_client_create(newfd);
|
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/demos/tunala/ |
H A D | tunala.c | 80 * which case *newfd is populated. */ 81 static int selector_get_listener(tunala_selector_t *selector, int fd, int *newfd); 291 int newfd; local 547 &newfd) == 1)) { 549 if(!tunala_world_new_item(&world, newfd, proxy_ip, 911 * which case *newfd is populated. */ 912 static int selector_get_listener(tunala_selector_t *selector, int fd, int *newfd) argument 918 if((*newfd = ip_accept_connection(fd)) == -1) 954 int newfd; local 968 if((newfd [all...] |
/netbsd-6-1-5-RELEASE/bin/dd/ |
H A D | dd.c | 308 int newfd; local 319 newfd = io->ops->op_fcntl(fd, F_DUPFD, 3); 320 if (newfd < 0) { 326 io->fd = newfd;
|
/netbsd-6-1-5-RELEASE/usr.sbin/puffs/mount_psshfs/ |
H A D | psshfs.c | 375 int nretry, which, newfd, dummy; local 398 if ((newfd = pssh_connect(pu, which)) == -1) 401 if (puffs_framev_addfd(pu, newfd, 408 close(newfd);
|
/netbsd-6-1-5-RELEASE/lib/librumpclient/ |
H A D | rumpclient.c | 945 int newfd; local 965 newfd = dupgood(clispc.spc_fd, 1); 966 if (newfd == -1) 975 EV_SET(&kev[1], newfd, 979 host_close(newfd); 983 clispc.spc_fd = newfd; 986 newfd = dupgood(kq, 1); 987 if (newfd == -1) 989 kq = newfd;
|
/netbsd-6-1-5-RELEASE/external/bsd/atf/dist/atf-c/detail/ |
H A D | process.c | 314 safe_dup(const int oldfd, const int newfd) argument 318 if (oldfd != newfd) { 319 if (dup2(oldfd, newfd) == -1) {
|
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/unit/atf-src/atf-c/detail/ |
H A D | process.c | 316 safe_dup(const int oldfd, const int newfd) argument 320 if (oldfd != newfd) { 321 if (dup2(oldfd, newfd) == -1) {
|
/netbsd-6-1-5-RELEASE/gnu/usr.bin/rcs/lib/ |
H A D | rcsutil.c | 935 int newfd; local 937 newfd = 942 return movefd(newfd, fd);
|
/netbsd-6-1-5-RELEASE/sys/kern/ |
H A D | kern_exec.c | 1847 int error, newfd; local 1891 fae->fae_mode, &newfd); 1894 if (newfd != fae->fae_fildes) { 1895 error = dodup(l, newfd, 1897 if (fd_getfile(newfd) != NULL) 1898 fd_close(newfd);
|
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/ntpd/ |
H A D | ntp_io.c | 414 SOCKET newfd; local 439 newfd = fcntl(fd, F_DUPFD, socket_boundary); 441 if (newfd != -1) { 444 return newfd;
|