Home
last modified time | relevance | path

Searched refs:dirbuf (Results 1 – 15 of 15) sorted by relevance

/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dpass1.c157 if (dirbuf) { in pass1()
158 free(dirbuf); in pass1()
159 dirbuf = NULL; in pass1()
197 if (dirbuf) { in opndir()
198 free(dirbuf); in opndir()
199 dirbuf = NULL; in opndir()
317 if (dirbuf) { in getdir()
318 free(dirbuf); in getdir()
319 dirbuf = NULL; in getdir()
375 dir_fidp = dirbuf; in getdir()
[all …]
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dspawn.c288 void *dirbuf = NULL; in posix_spawn() local
300 if ((dirbuf = lmalloc(DIRBUF)) == NULL) in posix_spawn()
308 if (dirbuf) in posix_spawn()
309 lfree(dirbuf, DIRBUF); in posix_spawn()
317 if (dirbuf) in posix_spawn()
318 lfree(dirbuf, DIRBUF); in posix_spawn()
382 void *dirbuf = NULL; in posix_spawnp() local
422 if (dirbuf) in posix_spawnp()
423 lfree(dirbuf, DIRBUF); in posix_spawnp()
431 if (dirbuf) in posix_spawnp()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_xfs.c63 #define dirbuf ((char *)FSYS_BUF) macro
303 0, 100, dirbuf); in xfs_dabread()
346 #define h ((xfs_dir2_leaf_hdr_t *)dirbuf) in next_dentry()
378 #define dau ((xfs_dir2_data_union_t *)dirbuf) in next_dentry()
385 xfs_read (dirbuf, 4); in next_dentry()
395 xfs_read ((char *)dirbuf + 4, 5); in next_dentry()
400 xfs_read (dirbuf, toread); in next_dentry()
401 name = (char *)dirbuf; in next_dentry()
427 xfs_read (dirbuf, sizeof(*tail)); in first_dentry()
432 #define h ((xfs_dir2_leaf_hdr_t *)dirbuf) in first_dentry()
[all …]
/illumos-gate/usr/src/cmd/ypcmd/
H A Dmakedbm.c119 char dirbuf[MAXPATHLEN]; local
368 strcpy(dirbuf, outalias);
369 strcat(dirbuf, ".tmp");
370 if ((fdb = dbm_open(dirbuf, O_RDWR | O_CREAT, 0644)) == NULL) {
371 fprintf(stderr, "makedbm: can't open %s\n", dirbuf);
374 strcpy(dirbuf, outalias);
376 strcat(dirbuf, dbm_dir);
459 if (rename(tmpdirbuf, dirbuf) < 0) {
/illumos-gate/usr/src/lib/libnsl/yp/
H A Ddbm.c355 readsize = read(dirf, dirbuf, DBLKSIZ); in getbit()
359 (void) memset(&dirbuf+readsize, 0, DBLKSIZ-readsize); in getbit()
363 if (dirbuf[i] & (1<<n)) in getbit()
384 dirbuf[i] |= 1<<n; in setbit()
386 if (write(dirf, dirbuf, DBLKSIZ) < 0) in setbit()
/illumos-gate/usr/src/ucblib/libdbm/
H A Ddbm.c371 readsize = read(dirf, dirbuf, DBLKSIZ); in getbit()
374 bzero(dirbuf+readsize, DBLKSIZ-readsize); in getbit()
378 if (dirbuf[i] & (1<<n)) in getbit()
399 dirbuf[i] |= 1<<n; in setbit()
401 if (write(dirf, dirbuf, DBLKSIZ) < 0) in setbit()
H A Dmapfile-vers49 dirbuf { ASSERT = { TYPE = OBJECT; SIZE = 4096; }; };
/illumos-gate/usr/src/uts/common/fs/fd/
H A Dfdops.c109 struct fddirect dirbuf; in fdread() local
147 dirbuf.d_name[i] = '\0'; in fdread()
150 dirbuf.d_ino = fdtoi(n); in fdread()
151 numtos((ulong_t)n, dirbuf.d_name); in fdread()
152 error = uiomove((caddr_t)&dirbuf + modoff, in fdread()
/illumos-gate/usr/src/cmd/backup/restore/
H A Ddirs.c432 static char dirbuf[DIRBLKSIZ]; variable
448 ((struct direct *)(dirbuf + prev))->d_reclen = in putent()
450 (void) fwrite(dirbuf, 1, DIRBLKSIZ, df); in putent()
455 bcopy((char *)dp, dirbuf + dirloc, (size_t)dp->d_reclen); in putent()
468 ((struct direct *)(dirbuf + prev))->d_reclen = DIRBLKSIZ - prev; in flushent()
469 (void) fwrite(dirbuf, (size_t)dirloc, 1, df); in flushent()
/illumos-gate/usr/src/head/rpcsvc/
H A Ddbm.h57 char dirbuf[DBLKSIZ]; variable
/illumos-gate/usr/src/cmd/du/
H A Ddu.c292 char dirbuf[PATH_MAX + 1]; in descend() local
440 if (getcwd(dirbuf, PATH_MAX) == NULL) { in descend()
510 ret = chdir(dirbuf); in descend()
/illumos-gate/usr/src/ucbhead/
H A Ddbm.h60 char dirbuf[DBLKSIZ]; variable
/illumos-gate/usr/src/cmd/cron/
H A Dat.c573 char dirbuf[PATH_MAX + 1]; in copy() local
682 dirbuf[0] = '\0'; in copy()
689 if (getcwd(dirbuf, sizeof (dirbuf)) == NULL) { in copy()
697 escapestr(dirbuf); in copy()
/illumos-gate/usr/src/lib/fm/libfmd_log/common/
H A Dfmd_log.c283 char dirbuf[PATH_MAX], path[PATH_MAX], *dirpath; in fmd_log_load_xrdir() local
289 (void) strlcpy(dirbuf, lp->log_path, sizeof (dirbuf)); in fmd_log_load_xrdir()
290 dirpath = dirname(dirbuf); in fmd_log_load_xrdir()
/illumos-gate/usr/src/lib/libnsl/common/
H A Dmapfile-vers603 dirbuf {