/titanic_41/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()
|
/titanic_41/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/ |
H A D | zfs_acl_chmod_inherit_001_pos.ksh | 67 if [[ -d $basedir ]]; then 68 log_must $RM -rf $basedir 81 basedir=$TESTDIR/basedir; basefile=$TESTDIR/basefile 84 odir1=$basedir/odir1; odir2=$odir1/odir2; odir3=$odir2/odir3 85 ofile1=$basedir/ofile1; ofile2=$odir1/ofile2; ofile3=$odir2/ofile3 88 ndir1=$basedir/ndir1; ndir2=$ndir1/ndir2; ndir3=$ndir2/ndir3 89 nfile1=$basedir/nfile1; nfile2=$ndir1/nfile2; nfile3=$ndir2/nfile3 92 allnodes="$basedir $ndir1 $ndir2 $ndir3 $nfile1 $nfile2 $nfile3" 111 inherit_nodes="$inherit_nodes $basedir" 150 log_must usr_exec $MKDIR $basedir [all …]
|
H A D | zfs_acl_chmod_inherit_002_neg.ksh | 73 for dir in $odir $basedir ; do 96 basedir=$TESTDIR/basedir; ofile=$TESTDIR/ofile; odir=$TESTDIR/odir 99 ndir1=$basedir/ndir1; ndir2=$ndir1/ndir2; ndir3=$ndir2/ndir3 100 nfile1=$basedir/nfile1; nfile2=$ndir1/nfile2; nfile3=$ndir2/nfile3 204 $LS -vd $basedir 215 $LS -vd $basedir 226 $LS -vd $basedir 251 $LS -vd $basedir 314 log_note "$user: $CHMOD $acl $basedir" 315 log_must usr_exec $MKDIR $basedir [all …]
|
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 | 69 for dir in $odir $basedir ; do 92 basedir=$TESTDIR/basedir; ofile=$TESTDIR/ofile; odir=$TESTDIR/odir 95 ndir1=$basedir/ndir1; ndir2=$ndir1/ndir2; ndir3=$ndir2/ndir3 96 nfile1=$basedir/nfile1; nfile2=$ndir1/nfile2; nfile3=$ndir2/nfile3 257 $LS -Vd $basedir 276 $LS -Vd $basedir 301 $LS -Vd $basedir 381 log_note "$user: $CHMOD $acl $basedir" 382 log_must usr_exec $MKDIR $basedir 393 log_must usr_exec $CHMOD A+$acl $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 $ZFS_ACL_STAFF1 $ZFS_ACL_STAFF_GROUP 321 $RM -rf $basedir
|
H A D | zfs_acl_chmod_aclmode_001_pos.ksh | 62 if [[ -d $basedir ]]; then 63 log_must $RM -rf $basedir 93 basedir=$TESTDIR/basedir; ofile=$basedir/ofile; odir=$basedir/odir 94 nfile=$basedir/nfile; ndir=$basedir/ndir 502 log_must usr_exec $MKDIR $basedir 534 log_must $TAR cpf@ $TARFILE $basedir 551 log_must usr_exec $RM -rf $basedir $TARFILE
|
H A D | zfs_acl_chmod_inherit_004_pos.ksh | 49 if [[ -d $basedir ]]; then 50 log_must $RM -rf $basedir 75 basedir=$TESTDIR/basedir 144 verify_inherit $basedir
|
H A D | zfs_acl_chmod_xattr_001_pos.ksh | 50 cleanup_test_files $TESTDIR/basedir 96 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_xattr_002_pos.ksh | 48 cleanup_test_files $TESTDIR/basedir 89 log_must cleanup_test_files $TESTDIR/basedir 149 log_must $TAR cpf@ $TESTDIR/$ARCHIVEFILE basedir 213 setup_test_files $TESTDIR/basedir ${users[i]} ${users[((i+1))]}
|
/titanic_41/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()
|
/titanic_41/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 …]
|
/titanic_41/usr/src/tools/pmodes/ |
H A D | pmodes.c | 169 char basedir[MAXPATHLEN] = "/"; in main() local 207 (void) strcpy(basedir, buf+8); in main() 208 basedir[strlen(basedir)-1] = '\0'; in main() 234 basedir_len = strlen(basedir); in main() 236 basedir[basedir_len++] = '/'; in main() 240 update_map(*argv, basedir, basedir_len); in main() 242 update_map(name, basedir, basedir_len); in main() 260 update_map(name, basedir, basedir_len); in main() 478 update_map(char *name, char *basedir, int basedir_len) in update_map() argument 545 basedir, line.path); in update_map() [all …]
|
/titanic_41/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()
|
/titanic_41/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 | 106 typeset basedir 134 basedir=${mtpts[i]} 136 basedir=$ALTER_ROOT/${mtpts[i]} 138 [[ ! -e $basedir/$TESTFILE0 ]] && \ 139 log_fail "$basedir/$TESTFILE0 missing after import." 141 checksum2=$($SUM $basedir/$TESTFILE0 | $AWK '{print $1}')
|
/titanic_41/usr/src/cmd/fs.d/cachefs/cachefspack/ |
H A D | rules.c | 87 do_base_dir(basedir, &list_hd, &gign_hd, in read_rules() 152 basedir = mstrdup(s); in read_rules() 154 printf("basedir = %s\n", basedir); in read_rules() 229 do_base_dir(basedir, &list_hd, &gign_hd, rulefunc); in read_rules() 259 if ((basedir != NULL) && (basedir[0] != '\0')) { in add_cmd_items() 266 if (chdir(basedir) != 0) { in add_cmd_items() 268 basedir, strerror(errno)); in add_cmd_items()
|
/titanic_41/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);
|
/titanic_41/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}"
|
/titanic_41/usr/src/lib/libxcurses/src/libc/gen/ |
H A D | base.c | 66 basedir(char *arg, int type) in basedir() function 116 return(basedir(arg, DIRNAME)); in dirname() 125 return(basedir(arg, BASENAME)); in basename()
|
/titanic_41/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) in device_get_disk_name_from_dir() argument 230 dir = opendir(basedir); in device_get_disk_name_from_dir() 237 "%s/%s", basedir, dirent->d_name); in device_get_disk_name_from_dir()
|