| /src/external/bsd/ntp/dist/libntp/ |
| socket.c | 81 SOCKET newfd; local 104 newfd = fcntl(fd, F_DUPFD, socket_boundary); 106 if (newfd != -1) { 109 return newfd;
|
| socket.c | 81 SOCKET newfd; local 104 newfd = fcntl(fd, F_DUPFD, socket_boundary); 106 if (newfd != -1) { 109 return newfd;
|
| /src/lib/libossaudio/ |
| oss4_mixer.c | 63 int newfd = -1, tmperrno; local 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...] |
| oss4_mixer.c | 63 int newfd = -1, tmperrno; local 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 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...] |
| chfs_write.c | 421 struct chfs_dirent *newfd = NULL; local 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/external/cddl/osnet/lib/libzfs/ |
| fsshare.c | 153 FILE *newfd, *oldfd; local 156 newfd = oldfd = NULL; 176 newfd = fdopen(fd, "r+"); 177 assert(newfd != NULL); 200 fprintf(newfd, "%s", FILE_HEADER); 202 fprintf(newfd, "%s\n", line); 207 if (ferror(newfd) != 0) { 208 error = ferror(newfd); 212 fprintf(newfd, "%s\t%s\n", mountpoint, 234 if (newfd != NULL) [all...] |
| fsshare.c | 153 FILE *newfd, *oldfd; local 156 newfd = oldfd = NULL; 176 newfd = fdopen(fd, "r+"); 177 assert(newfd != NULL); 200 fprintf(newfd, "%s", FILE_HEADER); 202 fprintf(newfd, "%s\n", line); 207 if (ferror(newfd) != 0) { 208 error = ferror(newfd); 212 fprintf(newfd, "%s\t%s\n", mountpoint, 234 if (newfd != NULL) [all...] |
| /src/external/mit/libuv/dist/src/unix/ |
| tty.c | 139 int newfd; local 155 newfd = -1; 194 newfd = r; 196 r = uv__dup2_cloexec(newfd, fd); 198 /* EINVAL means newfd == fd which could conceivably happen if another 202 uv__close(newfd); 206 fd = newfd; 223 if (newfd != -1) 224 uv__close(newfd);
|
| tty.c | 139 int newfd; local 155 newfd = -1; 194 newfd = r; 196 r = uv__dup2_cloexec(newfd, fd); 198 /* EINVAL means newfd == fd which could conceivably happen if another 202 uv__close(newfd); 206 fd = newfd; 223 if (newfd != -1) 224 uv__close(newfd);
|
| /src/bin/dd/ |
| dd.c | 344 int newfd; local 355 newfd = io->ops->op_fcntl(fd, F_DUPFD, 3); 356 if (newfd < 0) { 362 io->fd = newfd;
|
| dd.c | 344 int newfd; local 355 newfd = io->ops->op_fcntl(fd, F_DUPFD, 3); 356 if (newfd < 0) { 362 io->fd = newfd;
|
| /src/sys/kern/ |
| sys_descrip.c | 111 int error, newfd, oldfd; local 119 error = fd_dup(fp, 0, &newfd, false, false); 121 *retval = newfd;
|
| sys_descrip.c | 111 int error, newfd, oldfd; local 119 error = fd_dup(fp, 0, &newfd, false, false); 121 *retval = newfd;
|
| /src/usr.sbin/puffs/mount_psshfs/ |
| psshfs.c | 377 int nretry, which, newfd, dummy; local 400 if ((newfd = pssh_connect(pu, which)) == -1) 403 if (puffs_framev_addfd(pu, newfd, 410 close(newfd);
|
| psshfs.c | 377 int nretry, which, newfd, dummy; local 400 if ((newfd = pssh_connect(pu, which)) == -1) 403 if (puffs_framev_addfd(pu, newfd, 410 close(newfd);
|
| /src/external/bsd/tmux/dist/ |
| server.c | 372 int newfd; local 379 newfd = accept(fd, (struct sockaddr *) &sa, &slen); 380 if (newfd == -1) { 392 close(newfd); 395 c = server_client_create(newfd);
|
| server.c | 372 int newfd; local 379 newfd = accept(fd, (struct sockaddr *) &sa, &slen); 380 if (newfd == -1) { 392 close(newfd); 395 c = server_client_create(newfd);
|
| /src/external/gpl2/lvm2/dist/daemons/clvmd/ |
| 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...] |
| 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...] |
| /src/distrib/utils/ssh/ |
| 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);
|
| 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);
|
| /src/sbin/mount_portal/ |
| puffs_portal.c | 572 int newfd; local 585 newfd = 1; 587 newfd = 0; 613 if (newfd) {
|
| puffs_portal.c | 572 int newfd; local 585 newfd = 1; 587 newfd = 0; 613 if (newfd) {
|
| /src/sys/lib/libsa/ |
| nfs.c | 216 struct nfs_iodesc *newfd) 323 setfh(newfd, replv2->fh); 324 (void)memcpy(&newfd->u_fa.v2, &replv2->fa, 325 sizeof(newfd->u_fa.v2)); 336 setfh(newfd, replv3->fh); 345 (void)memcpy(&newfd->u_fa.v3, &replv3->fa, 346 sizeof(newfd->u_fa.v3)); 603 struct nfs_iodesc *newfd, *currfd; local 631 newfd = 0; 664 newfd = alloc(sizeof(*newfd)) [all...] |