/osnet-11/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...] |
/osnet-11/usr/src/lib/libc/port/sys/ |
H A D | rename.c | 33 renameat(int oldfd, const char *oldname, int newfd, const char *newname) argument 35 return (syscall(SYS_renameat, oldfd, oldname, newfd, newname));
|
/osnet-11/usr/src/lib/libdhcpsvc/modules/binfiles/ |
H A D | dhcptab.c | 342 int fd, newfd; local 384 newfd = open(newpath, O_WRONLY|O_CREAT|O_EXCL, 0644); 385 if (newfd == -1) { 390 retval = copy_range(fd, 0, newfd, 0, st.st_size); 400 if (write_rec(newfd, rec, st.st_size) == -1) { 412 (void) close(newfd); 420 (void) close(newfd); 430 int fd, newfd; local 503 newfd = open(newpath, O_WRONLY|O_CREAT|O_EXCL, 0644); 504 if (newfd 550 int fd, newfd; local [all...] |
/osnet-11/usr/src/lib/libdhcpsvc/modules/files/ |
H A D | dhcptab.c | 320 int newfd; local 340 newfd = open(newpath, O_CREAT|O_EXCL|O_WRONLY, 0644); 341 if (newfd == -1) { 431 retval = copy_range(fileno(fp), 0, newfd, 0, recoff); 435 retval = copy_range(fileno(fp), recnext, newfd, recoff, 449 if (fstat(newfd, &st) == -1) { 454 retval = write_rec(newfd, newp, st.st_size); 466 (void) close(newfd); 474 (void) close(newfd);
|
H A D | dhcp_network.c | 460 int fd, newfd; local 480 newfd = open(newpath, O_CREAT|O_TRUNC|O_WRONLY, 0644); 481 if (newfd == -1) { 569 retval = copy_range(fd, 0, newfd, 0, recoff); 573 retval = copy_range(fd, recnext, newfd, recoff, st.st_size - recnext); 586 retval = write_rec(newfd, newp, recoff + st.st_size - recnext); 598 (void) close(newfd); 606 (void) close(newfd);
|
/osnet-11/usr/src/lib/libdhcpsvc/modules/files0/ |
H A D | dhcptab.c | 285 int newfd; local 305 newfd = open(newpath, O_CREAT|O_EXCL|O_WRONLY, 0644); 306 if (newfd == -1) { 372 retval = copy_range(fileno(fp), 0, newfd, 0, recoff); 376 retval = copy_range(fileno(fp), recnext, newfd, recoff, 385 retval = write_rec(newfd, newp, recoff + st.st_size - recnext); 397 (void) close(newfd); 405 (void) close(newfd);
|
H A D | dhcp_network.c | 390 int newfd; local 409 newfd = open(newpath, O_CREAT|O_TRUNC|O_WRONLY, 0644); 410 if (newfd == -1) { 476 retval = copy_range(fileno(fp), 0, newfd, 0, recoff); 480 retval = copy_range(fileno(fp), recnext, newfd, recoff, 489 retval = write_rec(newfd, newp, recoff + st.st_size - recnext); 501 (void) close(newfd); 509 (void) close(newfd);
|
/osnet-11/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) {
|
/osnet-11/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
|
/osnet-11/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;
|
/osnet-11/usr/src/lib/libshell/common/edit/ |
H A D | history.c | 1187 register int newfd,oldfd; local 1195 if((newfd=open(hp->histname,O_BINARY|O_APPEND|O_CREAT|O_RDWR,S_IRUSR|S_IWUSR)) >= 0) 1197 if(fcntl(newfd, F_DUPFD, oldfd) !=oldfd) 1200 close(newfd);
|
/osnet-11/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...] |
/osnet-11/usr/src/lib/auditd_plugins/binfile/ |
H A D | binfile.c | 552 int newfd = 0; local 565 newfd = open(newname, 567 if (newfd < 0) { 618 error = write_file_token(newfd, oldname, ctrl); 621 (void) close(newfd); 634 current_dir->dl_fd = newfd;
|
/osnet-11/usr/src/lib/libshell/common/sh/ |
H A D | io.c | 1697 register int fd, savefd, newfd; local 1698 for(newfd=fd=0; fd < shp->topfd; fd++) 1701 filemap[newfd++] = filemap[fd]; 1709 shp->topfd = newfd; 2179 int newfd = integralof(data); local 2182 if(newfd<0) 2185 (*fdnotify)(sffileno(sp),flag==SF_CLOSING?-1:newfd); 2241 else if(flag==SF_CLOSING || (flag==SF_SETFD && newfd<=2)) 2533 int newfd, arg; local 2538 newfd [all...] |
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ |
H A D | util.c | 2179 dup2(int oldfd, int newfd) argument 2182 if (oldfd == newfd) 2184 PerlLIO_close(newfd); 2185 return fcntl(oldfd, F_DUPFD, newfd); 2192 if (oldfd == newfd) 2194 PerlLIO_close(newfd); 2196 while ((fd = PerlLIO_dup(oldfd)) != newfd && fd >= 0) {
|