/illumos-gate/usr/src/lib/libast/common/sfio/ |
H A D | sfsetfd.c | 30 static int _sfdup(int fd, int newfd) argument 32 static int _sfdup(fd,newfd) 34 int newfd; 40 while((dupfd = sysfcntlf(fd,F_DUPFD,newfd)) < 0 && errno == EINTR) 45 if((dupfd = sysdupf(fd)) < 0 || dupfd >= newfd) 49 newfd = _sfdup(fd,newfd); 54 return newfd; 59 int sfsetfd(Sfio_t* f, int newfd) argument 61 int sfsetfd(f,newfd) [all...] |
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | rename.c | 34 renameat(int oldfd, const char *oldname, int newfd, const char *newname) argument 36 return (syscall(SYS_renameat, oldfd, oldname, newfd, newname));
|
/illumos-gate/usr/src/cmd/audio/include/ |
H A D | AudioUnixfile_inline.h | 47 int newfd) // new file descriptor 49 fd = newfd; 46 setfd( int newfd) argument
|
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | nfs.c | 275 nfs_lookupfh(struct nfs_iodesc *d, const char *name, struct nfs_iodesc *newfd) argument 328 bcopy( repl->fh, &newfd->fh, sizeof(newfd->fh)); 329 bcopy(&repl->fa, &newfd->fa, sizeof(newfd->fa)); 450 struct nfs_iodesc *newfd; local 506 currfd = malloc(sizeof(*newfd)); 514 newfd = NULL; 539 newfd = malloc(sizeof(*newfd)); 878 nfs_lookupfh(struct nfs_iodesc *d, const char *name, struct nfs_iodesc *newfd) argument 1092 struct nfs_iodesc *newfd; local [all...] |
/illumos-gate/usr/src/cmd/sgs/ar/common/ |
H A D | file.c | 480 int newfd; local 486 newfd = 0; 527 if ((newfd = 536 if ((elf = elf_begin(newfd, 541 (void) close(newfd); 542 newfd = 0; 547 if (newfd) { 548 (void) close(newfd); 549 newfd = 0; 577 if (newfd) { [all...] |
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_pipesvc.c | 179 int err, listen_fd, newfd, snlen; local 213 newfd = accept(listen_fd, (struct sockaddr *)&sa, &snlen); 214 if (newfd < 0) { 230 np = np_new(pl, newfd); 233 (void) close(newfd);
|
H A D | smbd_share_doorsvc.c | 61 int newfd; local 88 if ((newfd = creat(door_name, 0644)) < 0) { 97 (void) close(newfd);
|
/illumos-gate/usr/src/cmd/picl/plugins/common/piclevent/ |
H A D | piclevent.c | 196 int newfd; local 197 if ((newfd = creat(PICLEVENT_DOOR, 0444)) < 0) { 202 (void) close(newfd);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/ |
H A D | mpd_main.c | 86 static unsigned int process_cmd(int newfd, union mi_commands *mpi); 2270 int newfd; local 2283 newfd = accept(sock, (struct sockaddr *)&peer, &peerlen); 2284 if (newfd < 0) { 2298 (void) close(newfd); 2309 (void) close(newfd); 2317 (void) close(newfd); 2332 (void) close(newfd); 2338 (void) close(newfd); 2346 len = read(newfd, 2396 process_cmd(int newfd, union mi_commands *mpi) argument [all...] |
/illumos-gate/usr/src/cmd/cvcd/sparc/sun4u/starfire/ |
H A D | cvcd.c | 584 int newfd; local 613 newfd = t_open(TCP_DEV, O_RDWR|O_NDELAY, NULL); 614 if (newfd == -1) { 620 if (t_accept(fd, newfd, tcall) < 0) { 623 t_close(newfd); 652 if (ioctl(newfd, TI_GETPEERNAME, &netbuf) < 0) { 655 t_close(newfd); 677 t_close(newfd); 681 pfd[0].fd = newfd;
|
/illumos-gate/usr/src/cmd/modload/ |
H A D | plcysubr.c | 258 int newfd; local 300 newfd = fileno(new); 304 (void) fchown(newfd, buf.st_uid, buf.st_gid); 305 (void) fchmod(newfd, buf.st_mode); 307 (void) fchown(newfd, 0, 3); /* root:sys */ 308 (void) fchmod(newfd, 0644); 412 (void) fsync(newfd);
|
H A D | drvsubr.c | 357 int newfd; local 415 if ((newfd = open(newfile, O_WRONLY | O_CREAT | O_EXCL, 0644)) < 0) { 427 if ((newfp = fdopen(newfd, "w")) == NULL) { 431 (void) close(newfd); 1411 int newfd; local 1433 if ((newfd = open(newfile, O_WRONLY | O_CREAT | O_EXCL, 0644)) < 0) { 1445 if ((newfp = fdopen(newfd, "w")) == NULL) { 1449 (void) close(newfd);
|
/illumos-gate/usr/src/lib/auditd_plugins/binfile/ |
H A D | binfile.c | 513 int newfd = 0; local 527 newfd = open(newname, 529 if (newfd < 0) { 583 error = write_file_token(newfd, oldname); 586 (void) close(newfd); 599 current_dir->dl_fd = newfd;
|
/illumos-gate/usr/src/stand/lib/sock/ |
H A D | sock_test.c | 711 int listen_fd, newfd; local 756 if ((newfd = st_local_accept(listen_fd, (struct sockaddr *)&addr, 768 (void) st_local_socket_close(newfd); 771 while ((ret = st_local_recv(newfd, buf, buf_len, 0)) > 0) { 774 if ((snd_cnt = st_local_send(newfd, buf, ret, 0)) < ret) { 781 (void) st_local_socket_close(newfd);
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | keystore.c | 1149 int newfd; local 1167 if ((newfd = open(newpath, O_RDWR|O_NONBLOCK, 0)) != -1) { 1168 if (fstat(newfd, &buf) != -1) { 1175 if (!wait_restore(newfd, keystore_file, 1180 (void) close(newfd); 1189 (void) close(newfd); 1197 (void) close(newfd); 1207 wait_restore(int newfd, char *keystore_file, argument 1215 if (file_lock(newfd, F_WRLCK, 1) == -1) { 1222 if (fstat(newfd, [all...] |
/illumos-gate/usr/src/lib/abi/apptrace/common/ |
H A D | apptrace.c | 237 int fd, newfd, targetfd, lowerlimit; local 280 if ((newfd = fcntl(fd, F_DUPFD, targetfd)) != -1) 284 if (newfd == -1) { 293 if (fcntl(newfd, F_SETFD, FD_CLOEXEC) == -1) { 301 if ((fp = fdopen(newfd, "wF")) != NULL) {
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_frontend.c | 1184 int newfd; local 1188 if ((newfd = creat(TSOL_NAME_SERVICE_DOOR, 0444)) < 0) { 1199 (void) close(newfd); 1212 int newfd; local 1216 if ((newfd = creat(NAME_SERVICE_DOOR, 0444)) < 0) { 1225 (void) close(newfd);
|
/illumos-gate/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_bitmap.c | 1015 nsc_fd_t *newfd = NULL; local 1053 newfd = nsc_open(newbitmap, NSC_RDCHR_ID|NSC_FILE|NSC_RDWR, 0, 0, 0); 1054 if (newfd == NULL) { 1055 newfd = nsc_open(newbitmap, 1057 if (newfd == NULL) { 1066 sts = nsc_reserve(newfd, 0); 1072 sts = nsc_partsize(newfd, &vol_size); 1073 nsc_release(newfd); 1091 krdc->bitmapfd = newfd; /* swap under lock */ 1110 /* Forget newfd no [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/ |
H A D | main.c | 2216 int newfd; local 2223 newfd = accept(sock, (struct sockaddr *)&peer, &peerlen); 2224 if (newfd < 0) { 2229 retval = ipadm_ndpd_read(newfd, &ndpd_msg, sizeof (ndpd_msg)); 2233 retval = ndpd_process_cmd(newfd, &ndpd_msg); 2238 (void) close(newfd); 2245 ndpd_process_cmd(int newfd, ipadm_ndpd_msg_t *msg) argument 2251 (void) ndpd_send_error(newfd, EPERM); 2278 (void) ndpd_send_error(newfd, err);
|
/illumos-gate/usr/src/cmd/sendmail/aux/ |
H A D | mail.local.c | 534 int newfd; local 704 if ((newfd = dup(bfd)) >= 0) { 706 bfd = newfd; 708 if ((newfd = dup(hfd)) >= 0) { 710 hfd = newfd;
|
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | dcs.c | 196 int newfd; local 376 newfd = rdr_connect_srv(dcs_rcv.fd); 378 if ((newfd == RDR_ERROR) || (newfd == RDR_NET_ERR)) { 385 if (ses_start(newfd) == -1) { 387 (void) rdr_close(newfd);
|
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_deleted.c | 294 int oldfd, const char *oldname, int newfd, const char *newname) 297 oldfd, oldname, newfd, newname)); 293 s10_renameat(sysret_t *rval, int oldfd, const char *oldname, int newfd, const char *newname) argument
|
/illumos-gate/usr/src/lib/libshell/common/edit/ |
H A D | history.c | 1159 register int newfd,oldfd; local 1167 if((newfd=open(hp->histname,O_BINARY|O_APPEND|O_CREAT|O_RDWR,S_IRUSR|S_IWUSR)) >= 0) 1169 if(fcntl(newfd, F_DUPFD, oldfd) !=oldfd) 1172 close(newfd);
|
/illumos-gate/usr/src/cmd/picl/picld/ |
H A D | picld.c | 1045 int newfd; local 1049 newfd = creat(PICLD_DOOR, 0444); 1052 if (newfd < 0) 1054 (void) close(newfd);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/ |
H A D | wpa_supplicant.c | 604 int newfd; local 605 if ((newfd = creat(doorname, 0666)) < 0) { 612 (void) close(newfd);
|