Home
last modified time | relevance | path

Searched refs:oldfd (Results 1 – 8 of 8) sorted by relevance

/titanic_44/usr/src/lib/libast/common/sfio/
H A Dsfsetfd.c66 reg int oldfd; local
85 oldfd = f->file;
86 if(oldfd >= 0)
88 { if((newfd = _sfdup(oldfd,newfd)) < 0)
92 CLOSE(oldfd);
H A D_sfopen.c46 int fd, oldfd, oflags, sflags; local
131 oldfd = f ? f->file : -1;
132 if((f = sfnew(f,NIL(char*),(size_t)SF_UNBOUND,fd,sflags)) && oldfd >= 0)
133 (void)sfsetfd(f,oldfd);
/titanic_44/usr/src/lib/libc/port/sys/
H A Drename.c34 renameat(int oldfd, const char *oldname, int newfd, const char *newname) in renameat() argument
36 return (syscall(SYS_renameat, oldfd, oldname, newfd, newname)); in renameat()
/titanic_44/usr/src/lib/libshell/common/edit/
H A Dhistory.c1159 register int newfd,oldfd; in hist_exceptf() local
1166 close(oldfd=sffileno(fp)); in hist_exceptf()
1169 if(fcntl(newfd, F_DUPFD, oldfd) !=oldfd) in hist_exceptf()
1171 fcntl(oldfd,F_SETFD,FD_CLOEXEC); in hist_exceptf()
1173 if(lseek(oldfd,(off_t)0,SEEK_END) < hp->histcnt) in hist_exceptf()
1176 lseek(oldfd,(off_t)2,SEEK_SET); in hist_exceptf()
/titanic_44/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_deleted.c294 int oldfd, const char *oldname, int newfd, const char *newname) in s10_renameat() argument
297 oldfd, oldname, newfd, newname)); in s10_renameat()
/titanic_44/usr/src/uts/common/avs/ns/rdc/
H A Drdc_bitmap.c1014 nsc_fd_t *oldfd; in rdc_move_bitmap() local
1051 oldfd = krdc->bitmapfd; in rdc_move_bitmap()
1095 krdc->bitmapfd = oldfd; /* replace under lock */ in rdc_move_bitmap()
1156 sts = nsc_held(oldfd) ? 0 : nsc_reserve(oldfd, 0); in rdc_move_bitmap()
1165 sts = rdc_ns_io(oldfd, rdc_wrflag, 0, in rdc_move_bitmap()
1182 nsc_pathname(oldfd)); in rdc_move_bitmap()
1187 if (nsc_close(oldfd) != 0) { in rdc_move_bitmap()
/titanic_44/usr/src/cmd/fs.d/nfs/lib/
H A Dnfs_tbind.c880 static int oldfd = -1; in do_poll_clts_action() local
906 if (oldfd != fd) { in do_poll_clts_action()
907 oldfd = fd; in do_poll_clts_action()
/titanic_44/usr/src/cmd/avs/rdc/
H A Dsndrd.c1325 static int oldfd = -1; in do_poll_clts_action() local
1351 if (oldfd != fd) { in do_poll_clts_action()
1352 oldfd = fd; in do_poll_clts_action()