/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | cvtpath.c | 31 extern char *root, *basedir; /* WHERE? */ 37 if (root || (basedir && (*path != '/'))) { 38 if (root && ((basedir == NULL) || (path[0] == '/') || 39 (basedir[0] != '/'))) { 46 if (basedir && (*path != '/')) { 48 basedir + (*basedir == '/' ? 1 : 0));
|
H A D | fixpath.c | 48 static char *orig_basedir = NULL; /* The unadjusted basedir */ 49 static char *basedir = NULL; /* basedir (cmb w/ inst rt if req) */ variable 70 static int base_sepr = 1; /* separator length btwn basedir & path */ 83 #define ERR_ADMIN_INVAL "Invalid basedir entry in admin file." 299 * be a subset of the original argument unless basedir = '/' in 324 * If the basedir path was built legally, then moving 347 * new space and provides a new copy of the original basedir path which 377 /* ask for the basedir */ 389 basedir, NUL 576 mkbasedir(int flag, char *basedir) argument 605 basedir); local 621 progerr(gettext(ERR_MKBASE), basedir); local [all...] |
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/ |
H A D | zfs_acl_chmod_inherit_001_pos.ksh | 41 # 2. Create basedir and a set of subdirectores and files within it. 42 # 3. Separately chmod basedir with different inherite options. 52 # chmod --> basedir -| 71 if [[ -d $basedir ]]; then 72 log_must rm -rf $basedir 85 basedir=$TESTDIR/basedir; basefile=$TESTDIR/basefile 88 odir1=$basedir/odir1; odir2=$odir1/odir2; odir3=$odir2/odir3 89 ofile1=$basedir/ofile1; ofile2=$odir1/ofile2; ofile3=$odir2/ofile3 92 ndir1=$basedir/ndir [all...] |
H A D | zfs_acl_chmod_inherit_004_pos.ksh | 41 # 3. Create basedir and a set of files, one with 644 and one with 755 mode. 49 [[ -d $basedir ]] && log_must rm -rf $basedir 61 typeset basedir="$TESTDIR/basedir" 62 typeset nfile1="$basedir/nfile1" nfile2="$basedir/nfile2" 85 log_must usr_exec mkdir $basedir 90 log_must usr_exec chmod A$i=${aces[i]} $basedir
|
H A D | zfs_acl_chmod_inherit_002_neg.ksh | 41 # 2. Create basedir and a set of subdirectores and files inside of it. 43 # different inherit options to basedir: 49 # chmod --> basedir -| 66 [[ -d $basedir ]] && log_must rm -rf $basedir 84 basedir=$TESTDIR/basedir; ofile=$TESTDIR/ofile; odir=$TESTDIR/odir 87 ndir1=$basedir/ndir1; ndir2=$ndir1/ndir2; ndir3=$ndir2/ndir3 88 nfile1=$basedir/nfile1; nfile2=$ndir1/nfile2; nfile3=$ndir2/nfile3 137 # Verify ACEs for all the dirs/files under basedir [all...] |
H A D | zfs_acl_chmod_inherit_002_pos.ksh | 41 # 2. Create basedir and a set of subdirectores and files within it. 42 # 3. Separately chmod basedir with different inherite options, 49 # chmod --> basedir -| 67 # Cleanup basedir, compared file and dir. 73 for dir in $odir $basedir ; do 94 basedir=$TESTDIR/basedir; ofile=$TESTDIR/ofile; odir=$TESTDIR/odir 97 ndir1=$basedir/ndir1; ndir2=$ndir1/ndir2; ndir3=$ndir2/ndir3 98 nfile1=$basedir/nfile1; nfile2=$ndir1/nfile2; nfile3=$ndir2/nfile3 241 ls -vd $basedir [all...] |
H A D | zfs_acl_chmod_inherit_003_pos.ksh | 40 # 2. Create basedir and a set of subdirectores and files within it. 41 # 3. Separately chmod basedir with different inherite options, 48 # chmod --> basedir -| 65 [[ -d $basedir ]] && log_must rm -rf $basedir 82 basedir=$TESTDIR/basedir; ofile=$TESTDIR/ofile; odir=$TESTDIR/odir 85 ndir1=$basedir/ndir1; ndir2=$ndir1/ndir2; ndir3=$ndir2/ndir3 86 nfile1=$basedir/nfile1; nfile2=$ndir1/nfile2; nfile3=$ndir2/nfile3 192 ls -Vd $basedir [all...] |
H A D | zfs_acl_chmod_owner_001_pos.ksh | 54 [[ -d $basedir ]] && rm -rf $basedir 276 tar cpf $TESTDIR/$ARCHIVEFILE basedir 308 typeset basedir="$TESTDIR/basedir" 309 typeset file="$basedir/file" 310 typeset dir="$basedir/dir" 313 setup_test_files $basedir 'root' 'root' 316 rm -rf $basedir 318 setup_test_files $basedir [all...] |
H A D | zfs_acl_chmod_aclmode_001_pos.ksh | 42 # 2. Create basedir and a set of subdirectores and files within it. 43 # 3. Separately chmod basedir with different aclmode options, 56 [[ -d $basedir ]] && log_must rm -rf $basedir 86 basedir=$TESTDIR/basedir; ofile=$basedir/ofile; odir=$basedir/odir 87 nfile=$basedir/nfile; ndir=$basedir/ndi [all...] |
H A D | zfs_acl_chmod_xattr_001_pos.ksh | 54 cleanup_test_files $TESTDIR/basedir 100 log_must cleanup_test_files $TESTDIR/basedir 158 log_must tar cpf@ $TESTDIR/$ARCHIVEFILE basedir 222 setup_test_files $TESTDIR/basedir ${users[i]} ${users[((i+1))]}
|
H A D | zfs_acl_chmod_xattr_002_pos.ksh | 52 cleanup_test_files $TESTDIR/basedir 93 log_must cleanup_test_files $TESTDIR/basedir 153 log_must tar cpf@ $TESTDIR/$ARCHIVEFILE basedir 217 setup_test_files $TESTDIR/basedir ${users[i]} ${users[((i+1))]}
|
/illumos-gate/usr/src/head/ |
H A D | pkginfo.h | 47 char *basedir; member in struct:pkginfo
|
/illumos-gate/usr/src/cmd/modload/ |
H A D | rem_drv.c | 59 char *basedir = NULL, *driver_name = NULL; local 84 basedir = calloc(strlen(optarg) + 1, 1); 85 if (basedir == NULL) { 89 (void) strcat(basedir, optarg); 130 if ((build_filenames(basedir)) == ERROR) { 199 (basedir == NULL || (strcmp(basedir, "/") == 0))) { 219 if ((basedir == NULL || (strcmp(basedir, "/") == 0))) { 226 } else if (strcmp(basedir, "/") ! 286 cleanup_devfs_attributes(char *basedir, char *driver_name) argument [all...] |
H A D | update_drv.c | 97 char *basedir = NULL; local 126 basedir = optarg; 199 if ((build_filenames(basedir)) == ERROR) { 222 (basedir == NULL || (strcmp(basedir, "/") == 0)) && 265 (basedir == NULL || (strcmp(basedir, "/") == 0))) { 395 (basedir == NULL || (strcmp(basedir, "/") == 0))) { 415 (basedir [all...] |
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | mappath.c | 155 basepath(char *path, char *basedir, char *ir) argument 159 /* For a relative path, prepend the basedir */ 168 if (basedir && *basedir) { 169 if (ir && *ir && *basedir != '/') 171 while (*basedir) 172 *path++ = *basedir++;
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/ |
H A D | zpool_import_001_pos.ksh | 98 typeset basedir 121 basedir=${mtpts[i]} 123 basedir=$ALTER_ROOT/${mtpts[i]} 125 [[ ! -e $basedir/$TESTFILE0 ]] && \ 126 log_fail "$basedir/$TESTFILE0 missing after import." 128 checksum2=$(sum $basedir/$TESTFILE0 | awk '{print $1}')
|
H A D | zpool_import_002_pos.ksh | 97 typeset basedir 122 basedir=${mtpts[i]} 124 basedir=$ALTER_ROOT/${mtpts[i]} 126 [[ ! -e $basedir/$TESTFILE0 ]] && \ 127 log_fail "$basedir/$TESTFILE0 missing after import." 129 checksum2=$(sum $basedir/$TESTFILE0 | awk '{print $1}')
|
H A D | zpool_import_missing_001_pos.ksh | 109 typeset basedir backup 182 basedir=$TESTDIR1 184 basedir=$ALTER_ROOT/$TESTDIR1 186 [[ ! -e $basedir/$TESTFILE0 ]] && \ 187 log_fail "$basedir/$TESTFILE0 missing after import." 189 checksum2=$(sum $basedir/$TESTFILE0 | awk '{print $1}')
|
H A D | zpool_import_rename_001_pos.ksh | 108 typeset basedir 136 basedir=${mtpts[i]} 138 basedir=$ALTER_ROOT/${mtpts[i]} 140 [[ ! -e $basedir/$TESTFILE0 ]] && \ 141 log_fail "$basedir/$TESTFILE0 missing after import." 143 checksum2=$(sum $basedir/$TESTFILE0 | awk '{print $1}')
|
/illumos-gate/usr/src/tools/pmodes/ |
H A D | pmodes.c | 169 char basedir[MAXPATHLEN] = "/"; local 207 (void) strcpy(basedir, buf+8); 208 basedir[strlen(basedir)-1] = '\0'; 234 basedir_len = strlen(basedir); 236 basedir[basedir_len++] = '/'; 240 update_map(*argv, basedir, basedir_len); 242 update_map(name, basedir, basedir_len); 260 update_map(name, basedir, basedir_len); 478 update_map(char *name, char *basedir, in argument [all...] |
/illumos-gate/usr/src/lib/libxcurses/src/libc/gen/ |
H A D | base.c | 66 basedir(char *arg, int type) function 116 return(basedir(arg, DIRNAME)); 125 return(basedir(arg, BASENAME));
|
/illumos-gate/usr/src/tools/scripts/ |
H A D | validate_flg.pl | 31 use vars qw/$f_flg *name *dir @execlist $basedir @opt_e @exclude/; 167 $basedir = "usr"; 169 $basedir = shift @ARGV; 177 File::Find::find({wanted => \&wanted, no_chdir => 1}, $basedir);
|
/illumos-gate/usr/src/tools/protocmp/ |
H A D | protodir.c | 84 parse_proto_line(const char *basedir, char *line, elem_list *list, short arch, argument 151 * if a basedir has a value, prepend it to the filename 153 if (basedir[0]) 154 (void) strcat(strcat(strcpy(e->name, basedir), "/"), file); 257 parse_proto_link(const char *basedir, char *line, elem_list *list, short arch, argument 290 * if a basedir has a value, prepend it to the filename 292 if (basedir[0]) 293 (void) strcat(strcat(strcpy(e->name, basedir), "/"), file); 355 * I will set the arch and basedir variables based on these fields. 358 read_pkginfo(const char *protodir, short *arch, char *basedir) argument 452 first_pass_prototype(const char *protofile, const char *protodir, elem_list *list, short arch, const char *basedir, const char *pkgname) argument 559 second_pass_prototype(const char *protofile, const char *protodir, elem_list *list, short arch, const char *basedir, const char *pkgname) argument 639 char basedir[MAXPATHLEN]; local [all...] |
/illumos-gate/usr/src/lib/libshell/common/scripts/ |
H A D | filetree1.sh | 55 typeset basedir="$2" 65 find "${basedir}"/* -prune 2>/dev/null | while read i ; do 147 typeset basedir="$2" 149 do_directory tree "${basedir}"
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/ |
H A D | disk_discovery.c | 32 static char *device_get_disk_name_from_dir(char *basedir, char *path); 216 device_get_disk_name_from_dir(char *basedir, char *path) argument 230 dir = opendir(basedir); 237 "%s/%s", basedir, dirent->d_name);
|