Home
last modified time | relevance | path

Searched refs:rdirp (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/backup/restore/
H A Ddirs.c589 rst_readdir(RST_DIR *rdirp) in rst_readdir() argument
594 if (rdirp->dd_loc == 0) { in rst_readdir()
595 rdirp->dd_size = read(rdirp->dd_fd, rdirp->dd_buf, in rst_readdir()
597 if (rdirp->dd_size <= 0) { in rst_readdir()
603 if (rdirp->dd_loc >= rdirp->dd_size) { in rst_readdir()
604 rdirp->dd_loc = 0; in rst_readdir()
608 dp = (struct direct *)(rdirp->dd_buf + rdirp->dd_loc); in rst_readdir()
610 (long)dp->d_reclen > (DIRBLKSIZ + 1 - rdirp->dd_loc)) { in rst_readdir()
616 rdirp->dd_loc += dp->d_reclen; in rst_readdir()
/illumos-gate/usr/src/cmd/fs.d/pcfs/mkfs/
H A Dmkfs.c3198 uchar_t *fatp, *rdirp; in write_fat() local
3242 rdirp = build_rootdir(wbpb, ffn, fffd, ffsize, ffsc, &rdirsize); in write_fat()
3252 if (write(fd, rdirp, rdirsize) != rdirsize) { in write_fat()
3257 free(rdirp); in write_fat()
3276 if (write(fd, rdirp, rdirsize) != rdirsize) { in write_fat()
3281 free(rdirp); in write_fat()