/src/lib/libossaudio/ |
oss4_mixer.c | 63 int newfd = -1, tmperrno; local in function:_oss4_mixer_ioctl 109 if ((newfd = open(tmpai->devnode, O_WRONLY)) < 0) { 110 if ((newfd = open(tmpai->devnode, O_RDONLY)) < 0) { 111 return newfd; 115 retval = ioctl(newfd, AUDIO_GETDEV, &dev); 118 close(newfd); 122 if (_oss_get_caps(newfd, &tmpai->caps) < 0) { 124 close(newfd); 132 _oss_dsp_ioctl(newfd, SNDCTL_DSP_GETFMTS, &tmpai->iformats); 151 ioctl(newfd, AUDIO_QUERYFORMAT, &fmtq) != -1; ++fmtq.index) [all...] |
/src/sys/ufs/chfs/ |
chfs_write.c | 421 struct chfs_dirent *newfd = NULL; local in function:chfs_do_link 424 newfd = chfs_alloc_dirent(namelen + 1); 426 newfd->vno = ip->ino; 427 newfd->type = type; 428 newfd->nsize = namelen; 429 memcpy(newfd->name, name, namelen); 430 newfd->name[newfd->nsize] = 0; 448 parent, ip, newfd, ip->ino, ALLOC_NORMAL); 454 TAILQ_INSERT_TAIL(&parent->dents, newfd, fds) [all...] |
/src/bin/dd/ |
dd.c | 344 int newfd; local in function:redup_clean_fd 355 newfd = io->ops->op_fcntl(fd, F_DUPFD, 3); 356 if (newfd < 0) { 362 io->fd = newfd;
|
/src/usr.sbin/puffs/mount_psshfs/ |
psshfs.c | 377 int nretry, which, newfd, dummy; local in function:psshfs_notify 400 if ((newfd = pssh_connect(pu, which)) == -1) 403 if (puffs_framev_addfd(pu, newfd, 410 close(newfd);
|
/src/sys/kern/ |
sys_descrip.c | 108 int error, newfd, oldfd; local in function:sys_dup 116 error = fd_dup(fp, 0, &newfd, false, false); 118 *retval = newfd;
|
kern_exec.c | 2157 int error = 0, newfd; local in function:handle_posix_spawn_file_actions 2173 fae->fae_mode, &newfd); 2176 if (newfd != fae->fae_fildes) { 2177 error = dodup(l, newfd, 2179 if (fd_getfile(newfd) != NULL) 2180 fd_close(newfd);
|
/src/distrib/utils/ssh/ |
ssh.c | 566 int newfd; local in function:child_newfd 569 if ((newfd = open(file, otype, def_omode)) < 0) { 573 if (newfd != setfd) { 574 dup2(newfd, setfd); 575 close(newfd);
|
/src/sbin/mount_portal/ |
puffs_portal.c | 572 int newfd; local in function:portal_node_getattr 585 newfd = 1; 587 newfd = 0; 613 if (newfd) {
|
/src/lib/librumpclient/ |
rumpclient.c | 1093 int newfd; local in function:rumpclient__closenotify 1109 newfd = dupgood(clispc.spc_fd, 1); 1110 if (newfd == -1) 1124 EV_SET(&kev[1], newfd, 1128 host_close(newfd); 1133 clispc.spc_fd = newfd; 1136 newfd = dupgood(holyfd, 1); 1137 if (newfd == -1) 1139 holyfd = newfd;
|
/src/sys/lib/libsa/ |
nfs.c | 216 struct nfs_iodesc *newfd) 320 setfh(newfd, replv2->fh); 321 (void)memcpy(&newfd->u_fa.v2, &replv2->fa, 322 sizeof(newfd->u_fa.v2)); 330 setfh(newfd, replv3->fh); 333 (void)memcpy(&newfd->u_fa.v3, &replv3->fa, 334 sizeof(newfd->u_fa.v3)); 591 struct nfs_iodesc *newfd, *currfd; local in function:nfs_open 619 newfd = 0; 652 newfd = alloc(sizeof(*newfd)) [all...] |
/src/bin/sh/ |
redir.c | 639 int newfd; local in function:copyfd 643 newfd = dup3(from, to, O_CLOEXEC); 645 newfd = dup2(from, to); 646 if (newfd >= 0) 647 fcntl(newfd, F_SETFD, 648 (fcntl_int)(fcntl(newfd, F_GETFD) | FD_CLOEXEC)); 651 newfd = dup2(from, to); 653 if (move && newfd == to && from != to) 656 if (newfd != to) { 657 if (newfd < 0 [all...] |
/src/lib/librumpuser/ |
rumpuser_sp.c | 614 int newfd, flags; local in function:serv_handleconn 618 newfd = accept(fd, (struct sockaddr *)&ss, &sl); 619 if (newfd == -1) 623 close(newfd); /* EBUSY */ 627 flags = fcntl(newfd, F_GETFL, 0); 628 if (fcntl(newfd, F_SETFL, flags | O_NONBLOCK) == -1) { 629 close(newfd); 633 if (connhook(newfd) != 0) { 634 close(newfd); 639 if (send(newfd, banner, strlen(banner), MSG_NOSIGNAL [all...] |
/src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/ |
tsan_interceptors.cc | 1563 int newfd = REAL(dup)(oldfd); local in function:TSAN_INTERCEPTOR 1564 if (oldfd >= 0 && newfd >= 0 && newfd != oldfd) 1565 FdDup(thr, pc, oldfd, newfd, true); 1566 return newfd; 1569 TSAN_INTERCEPTOR(int, dup2, int oldfd, int newfd) { 1570 SCOPED_TSAN_INTERCEPTOR(dup2, oldfd, newfd); 1571 int newfd2 = REAL(dup2)(oldfd, newfd); 1578 TSAN_INTERCEPTOR(int, dup3, int oldfd, int newfd, int flags) { 1579 SCOPED_TSAN_INTERCEPTOR(dup3, oldfd, newfd, flags) [all...] |