Searched refs:curfd (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/boot/lib/libstand/
H A Dsplitfs.c42 int curfd; /* Current file descriptor */ member in struct:split_file
87 sf->curfd = open(sf->filesv[sf->curfile], O_RDONLY);
88 if (sf->curfd >= 0)
90 if ((sf->curfd == -1) && (errno != ENOENT))
187 fd = sf->curfd;
202 nread = read(sf->curfd, buf, size - totread);
218 if (close(sf->curfd) != 0)
291 new_pos = lseek(sf->curfd, seek_by, SEEK_CUR);
310 if ((result = fstat(sf->curfd, sb)) == 0)
/illumos-gate/usr/src/cmd/du/
H A Ddu.c93 static u_longlong_t descend(char *curname, int curfd, int *retcode,
275 * If curname is NULL, curfd is used.
278 descend(char *curname, int curfd, int *retcode, dev_t device) argument
300 curfd = AT_FDCWD;
309 i = fstatat(curfd, curname, &stb, 0);
310 j = fstatat(curfd, curname, &stb1, AT_SYMLINK_NOFOLLOW);
320 i = fstatat(curfd, curname, &stb, AT_SYMLINK_NOFOLLOW);
423 dirp = fdopendir(curfd);
445 if ((curname ? (chdir(curname) < 0) : (fchdir(curfd) < 0))) {

Completed in 61 milliseconds