/titanic_51/usr/src/cmd/svr4pkg/libinst/ |
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 in orig_path_ptr() 347 * new space and provides a new copy of the original basedir path which 377 /* ask for the basedir */ 389 basedir, NUL in ask_basedir() 576 mkbasedir(int flag,char * basedir) mkbasedir() argument [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_51/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/ |
H A D | zfs_acl_chmod_inherit_001_pos.ksh | 37 # 2. Create basedir and a set of subdirectores and files within it. 38 # 3. Separately chmod basedir with different inherite options. 48 # chmod --> basedir -| 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/ndir [all...] |
H A D | zfs_acl_chmod_inherit_002_neg.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 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 153 # Verify ACE's 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 | 37 # 2. Create basedir and a set of subdirectores and files within it. 38 # 3. Separately chmod basedir with different inherite options, 45 # chmod --> basedir -| 63 # Cleanup basedir, compared file and dir. 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 [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, 54 # Cleanup tarfile & basedir. 62 if [[ -d $basedir ]]; then 63 log_must $RM -rf $basedir 93 basedir=$TESTDIR/basedir; ofile=$basedir/ofile; odir=$basedir/odir 94 nfile=$basedir/nfil [all...] |
H A D | zfs_acl_chmod_inherit_004_pos.ksh | 40 # 2. Create basedir and a set of subdirectores and files within it. 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_51/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, "/") ! in main() 286 cleanup_devfs_attributes(char * basedir,char * driver_name) 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 in main() [all...] |
/titanic_51/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 151 * if a basedir has a value, prepend it to the filename in parse_proto_line() 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 290 * if a basedir has a value, prepend it to the filename in parse_proto_link() 292 if (basedir[0]) in parse_proto_link() 293 (void) strcat(strcat(strcpy(e->name, basedir), "/"), file); in parse_proto_link() 355 * I will set the arch and basedir variables based on these fields. 358 read_pkginfo(const char *protodir, short *arch, char *basedir) in read_pkginfo() argument 453 first_pass_prototype(const char * protofile,const char * protodir,elem_list * list,short arch,const char * basedir,const char * pkgname) first_pass_prototype() argument 560 second_pass_prototype(const char * protofile,const char * protodir,elem_list * list,short arch,const char * basedir,const char * pkgname) second_pass_prototype() argument 639 char basedir[MAXPATHLEN]; process_package_dir() local [all...] |
/titanic_51/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, in argument [all...] |
/titanic_51/usr/src/lib/libpkg/common/ |
H A D | mappath.c | 155 basepath(char *path, char *basedir, char *ir) in basepath() argument 159 /* For a relative path, prepend the basedir */ in basepath() 168 if (basedir && *basedir) { in basepath() 169 if (ir && *ir && *basedir != '/') in basepath() 171 while (*basedir) in basepath() 172 *path++ = *basedir++; in basepath()
|
/titanic_51/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_51/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_51/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_51/usr/src/cmd/ast/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_51/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_51/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()
|