/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | fixpath.c | 49 static char *basedir = NULL; /* basedir (cmb w/ inst rt if req) */ variable 389 basedir, NULL, gettext(MSG_HELP), in ask_basedir() 449 (basedir = getenv("BASEDIR"))) != 0) { in set_basedirs() 451 getenv("PKG"), basedir, orig_basedir); in set_basedirs() 474 basedir = getenv("BASEDIR"); in set_basedirs() 475 if (basedir && *basedir) in set_basedirs() 476 orig_basedir = expand_path(basedir); in set_basedirs() 485 basedir = pkgparam(pkginst, "BASEDIR"); in set_basedirs() 486 if (basedir && *basedir) in set_basedirs() 487 orig_basedir = expand_path(basedir); in set_basedirs() [all …]
|
H A D | cvtpath.c | 31 extern char *root, *basedir; /* WHERE? */ 37 if (root || (basedir && (*path != '/'))) { in cvtpath() 38 if (root && ((basedir == NULL) || (path[0] == '/') || in cvtpath() 39 (basedir[0] != '/'))) { in cvtpath() 46 if (basedir && (*path != '/')) { in cvtpath() 48 basedir + (*basedir == '/' ? 1 : 0)); in cvtpath()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/ |
H A D | zfs_acl_chmod_inherit_001_pos.ksh | 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/ndir1; ndir2=$ndir1/ndir2; ndir3=$ndir2/ndir3 93 nfile1=$basedir/nfile1; nfile2=$ndir1/nfile2; nfile3=$ndir2/nfile3 96 allnodes="$basedir $ndir1 $ndir2 $ndir3 $nfile1 $nfile2 $nfile3" 115 inherit_nodes="$inherit_nodes $basedir" 154 log_must usr_exec mkdir $basedir [all …]
|
H A D | zfs_acl_chmod_inherit_002_neg.ksh | 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 195 ls -vd $basedir 205 ls -vd $basedir 215 ls -vd $basedir 234 ls -vd $basedir 279 log_note "$user: chmod $acl $basedir" 280 log_must usr_exec mkdir $basedir [all …]
|
H A D | zfs_acl_chmod_inherit_004_pos.ksh | 50 [[ -d $basedir ]] && log_must rm -rf $basedir 62 typeset basedir="$TESTDIR/basedir" 63 typeset nfile1="$basedir/nfile1" nfile2="$basedir/nfile2" 86 log_must usr_exec mkdir $basedir 91 log_must usr_exec chmod A$i=${aces[i]} $basedir
|
H A D | zfs_acl_chmod_inherit_002_pos.ksh | 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 266 ls -vd $basedir 332 log_note "$user: chmod $acl $basedir" 333 log_must usr_exec mkdir $basedir 344 log_must usr_exec chmod A+$acl $basedir 351 log_must usr_exec rm -rf $ofile $odir $basedir
|
H A D | zfs_acl_chmod_inherit_003_pos.ksh | 66 [[ -d $basedir ]] && log_must rm -rf $basedir 83 basedir=$TESTDIR/basedir; ofile=$TESTDIR/ofile; odir=$TESTDIR/odir 86 ndir1=$basedir/ndir1; ndir2=$ndir1/ndir2; ndir3=$ndir2/ndir3 87 nfile1=$basedir/nfile1; nfile2=$ndir1/nfile2; nfile3=$ndir2/nfile3 193 ls -Vd $basedir 212 ls -Vd $basedir 259 log_must usr_exec mkdir $basedir 266 log_must usr_exec chmod A+$acl $basedir 272 log_must usr_exec rm -rf $ofile $odir $basedir
|
H A D | zfs_acl_chmod_owner_001_pos.ksh | 55 [[ -d $basedir ]] && rm -rf $basedir 283 tar cpf $TESTDIR/$ARCHIVEFILE basedir 316 typeset basedir="$TESTDIR/basedir" 317 typeset file="$basedir/file" 318 typeset dir="$basedir/dir" 334 setup_test_files $basedir 'root' 'root' 337 rm -rf $basedir 339 setup_test_files $basedir $ZFS_ACL_STAFF1 $ZFS_ACL_STAFF_GROUP 344 rm -rf $basedir
|
H A D | zfs_acl_chmod_aclmode_001_pos.ksh | 56 [[ -d $basedir ]] && log_must rm -rf $basedir 86 basedir=$TESTDIR/basedir; ofile=$basedir/ofile; odir=$basedir/odir 87 nfile=$basedir/nfile; ndir=$basedir/ndir 467 log_must usr_exec mkdir $basedir 496 log_must tar cpf@ $TARFILE ${basedir#$TESTDIR/} 511 log_must usr_exec rm -rf $basedir $TARFILE
|
H A D | zfs_acl_chmod_xattr_001_pos.ksh | 55 cleanup_test_files $TESTDIR/basedir 101 log_must cleanup_test_files $TESTDIR/basedir 159 log_must tar cpf@ $TESTDIR/$ARCHIVEFILE basedir 223 setup_test_files $TESTDIR/basedir ${users[i]} ${users[((i+1))]}
|
H A D | zfs_acl_chmod_xattr_002_pos.ksh | 53 cleanup_test_files $TESTDIR/basedir 94 log_must cleanup_test_files $TESTDIR/basedir 154 log_must tar cpf@ $TESTDIR/$ARCHIVEFILE basedir 218 setup_test_files $TESTDIR/basedir ${users[i]} ${users[((i+1))]}
|
H A D | zfs_acl_chmod_delete_001_pos.ksh | 70 cleanup_test_files $TESTDIR/basedir 215 log_must tar cpf $TESTDIR/$ARCHIVEFILE basedir 279 setup_test_files $TESTDIR/basedir ${users[i]} ${users[((i+1))]}
|
/illumos-gate/usr/src/cmd/modload/ |
H A D | rem_drv.c | 59 char *basedir = NULL, *driver_name = NULL; in main() local 84 basedir = calloc(strlen(optarg) + 1, 1); in main() 85 if (basedir == NULL) { in main() 89 (void) strcat(basedir, optarg); in main() 130 if ((build_filenames(basedir)) == ERROR) { in main() 199 (basedir == NULL || (strcmp(basedir, "/") == 0))) { in main() 219 if ((basedir == NULL || (strcmp(basedir, "/") == 0))) { in main() 226 } else if (strcmp(basedir, "/") != 0) { in main() 227 cleanup_devfs_attributes(basedir, driver_name); in main() 286 cleanup_devfs_attributes(char *basedir, char *driver_name) in cleanup_devfs_attributes() argument [all …]
|
H A D | update_drv.c | 97 char *basedir = NULL; in main() local 126 basedir = optarg; in main() 199 if ((build_filenames(basedir)) == ERROR) { in main() 222 (basedir == NULL || (strcmp(basedir, "/") == 0)) && in main() 265 (basedir == NULL || (strcmp(basedir, "/") == 0))) { in main() 395 (basedir == NULL || (strcmp(basedir, "/") == 0))) { in main() 415 (basedir == NULL || (strcmp(basedir, "/") == 0))) { in main()
|
H A D | add_drv.c | 110 char *basedir = NULL; in main() local 160 basedir = optarg; in main() 161 if (strcmp(basedir, "/") == 0 && in main() 164 basedir = NULL; in main() 244 if ((build_filenames(basedir)) == ERROR) { in main() 456 if (devfs_update_minor_perm(basedir, in main() 472 if (create_reconfig(basedir) == ERROR) in main() 579 char *basedir, in devfs_update_minor_perm() argument 584 if (basedir == NULL || (strcmp(basedir, "/") == 0)) { in devfs_update_minor_perm()
|
/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, in parse_proto_line() argument 153 if (basedir[0]) in parse_proto_line() 154 (void) strcat(strcat(strcpy(e->name, basedir), "/"), file); in parse_proto_line() 257 parse_proto_link(const char *basedir, char *line, elem_list *list, short arch, in parse_proto_link() argument 292 if (basedir[0]) in parse_proto_link() 293 (void) strcat(strcat(strcpy(e->name, basedir), "/"), file); in parse_proto_link() 358 read_pkginfo(const char *protodir, short *arch, char *basedir) in read_pkginfo() argument 370 basedir[0] = '\0'; in read_pkginfo() 417 (void) strcpy(basedir, &buf[0]); in read_pkginfo() 453 elem_list *list, short arch, const char *basedir, const char *pkgname) in first_pass_prototype() argument [all …]
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | mappath.c | 155 basepath(char *path, char *basedir, char *ir) in basepath() argument 168 if (basedir && *basedir) { in basepath() 169 if (ir && *ir && *basedir != '/') in basepath() 171 while (*basedir) in basepath() 172 *path++ = *basedir++; in basepath()
|
/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/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/lib/libxcurses/src/libc/gen/ |
H A D | base.c | 64 basedir(char *arg, int type) in basedir() function 114 return(basedir(arg, DIRNAME)); in dirname() 123 return(basedir(arg, BASENAME)); in basename()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/ |
H A D | disk_discovery.c | 30 static char *device_get_disk_name_from_dir(char *basedir, char *path); 214 device_get_disk_name_from_dir(char *basedir, char *path) in device_get_disk_name_from_dir() argument 228 dir = opendir(basedir); in device_get_disk_name_from_dir() 235 "%s/%s", basedir, dirent->d_name); in device_get_disk_name_from_dir()
|
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | main.c | 1650 if ((err = set_basedirs(isreloc(instdir), adm.basedir, pkginst, in main() 2252 if (adm.basedir && *(adm.basedir) && in ck_instbase() 2253 strchr("/$", *(adm.basedir))) { in ck_instbase() 2262 adm.basedir) != 0) { in ck_instbase() 2264 value, adm.basedir); in ck_instbase() 2268 } else if (ADM(basedir, "ask")) in ck_instbase() 2274 adm.basedir = "update"; in ck_instbase() 2434 if (adm.basedir && *(adm.basedir) && in merg_pkginfos() 2435 strchr("/$", *(adm.basedir))) { in merg_pkginfos() 2443 if (strcmp(oldValue, adm.basedir) != 0) { in merg_pkginfos() [all …]
|