Searched defs:tofd (Results 1 - 5 of 5) sorted by relevance

/illumos-gate/usr/src/lib/lvm/libsvm/common/
H A Dstart_svm.c239 int fromfd, tofd; local
252 if ((tofd = open(to, O_CREAT | O_WRONLY | O_TRUNC,
261 (void) fchmod(tofd, fromstat.st_mode & MODEBITS);
271 if (write(tofd, buf, rbytes) != rbytes) {
278 (void) close(tofd);
/illumos-gate/usr/src/cmd/backup/restore/
H A Drestore.c995 int fromfd, fromdir, tofd, todir, tfd; local
999 fromfd = tofd = fromdir = todir = tfd = -1;
1029 if ((tofd = openat64(tfd, to, O_RDONLY|O_NONBLOCK)) == -1 ||
1030 (todir = openat64(tofd, ".", O_RDONLY|O_NONBLOCK|O_XATTR)) == -1) {
1036 (void) close(tofd);
1063 if (tofd != -1)
1064 (void) close(tofd);
H A Dutilities.c103 int fromfd, tofd; local
116 tofd = fromfd;
126 resolve(tp, &tofd, &to);
127 if (renameat(fromfd, from, tofd, to) < 0) {
137 if (tofd != AT_FDCWD) (void) close(tofd);
/illumos-gate/usr/src/cmd/cpio/
H A Dcpio.c9706 renameat(int fromfd, char *old, int tofd, char *new) argument
/illumos-gate/usr/src/cmd/tar/
H A Dtar.c8548 renameat(int fromfd, char *old, int tofd, char *new) argument

Completed in 80 milliseconds