/titanic_44/usr/src/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.basename.d.out | 8 echo "dirname(\"/foo/bar/baz\") is \"/foo/bar\"; expected \"`dirname "/foo/bar/baz"`"\" 16 echo "dirname(\"/foo/bar///baz/\") is \"/foo/bar\"; expected \"`dirname "/foo/bar///baz/"`"\" 24 echo "dirname(\"/foo/bar/baz/\") is \"/foo/bar\"; expected \"`dirname "/foo/bar/baz/"`"\" 32 echo "dirname(\"/foo/bar/baz//\") is \"/foo/bar\"; expected \"`dirname "/foo/bar/baz//"`"\" 40 echo "dirname(\"/foo/bar/baz/.\") is \"/foo/bar/baz\"; expected \"`dirname "/foo/bar/baz/."`"\" 48 echo "dirname(\"/foo/bar/baz/./\") is \"/foo/bar/baz\"; expected \"`dirname "/foo/bar/baz/./"`"\" 56 echo "dirname(\"/foo/bar/baz/.//\") is \"/foo/bar/baz\"; expected \"`dirname "/foo/bar/baz/.//"`"\" 64 echo "dirname(\"foo/bar/baz/\") is \"foo/bar\"; expected \"`dirname "foo/bar/baz/"`"\" 72 echo "dirname(\"/\") is \"/\"; expected \"`dirname "/"`"\" 80 echo "dirname(\"./\") is \".\"; expected \"`dirname "./"`"\" [all …]
|
/titanic_44/usr/src/grub/grub-0.97/stage2/ |
H A D | filesys.h | 27 int ffs_dir (char *dirname); 37 int ufs_dir (char *dirname); 47 int ufs2_dir (char *dirname); 57 int zfs_open (char *dirname); 67 int fat_dir (char *dirname); 76 int ext2fs_dir (char *dirname); 85 int minix_dir (char *dirname); 94 int reiserfs_dir (char *dirname); 104 int vstafs_dir (char *dirname); 113 int jfs_dir (char *dirname); [all …]
|
H A D | fsys_ufs.c | 66 ufs_dir(char *dirname) in ufs_dir() argument 74 while (*dirname == '/') in ufs_dir() 75 dirname++; in ufs_dir() 77 while (inode && *dirname && !isspace(*dirname)) { in ufs_dir() 82 fname = dirname; in ufs_dir() 83 while (*dirname && !isspace(*dirname) && *dirname != '/') in ufs_dir() 84 dirname++; in ufs_dir() 85 ch = *dirname; in ufs_dir() 86 *dirname = 0; /* ensure null termination */ in ufs_dir() 89 *dirname = ch; in ufs_dir() [all …]
|
H A D | fsys_minix.c | 297 minix_dir (char *dirname) in minix_dir() argument 334 printf ("inode %d, dirname %s\n", current_ino, dirname); in minix_dir() 362 printf ("S_ISLNK (%s)\n", dirname); in minix_dir() 367 while (dirname[len] && !isspace (dirname[len])) in minix_dir() 382 memmove (linkbuf + filemax, dirname, len); in minix_dir() 396 dirname = linkbuf; in minix_dir() 397 if (*dirname == '/') in minix_dir() 414 if (!*dirname || isspace (*dirname)) in minix_dir() 430 while (*dirname == '/') in minix_dir() 431 dirname++; in minix_dir() [all …]
|
H A D | fsys_ffs.c | 183 ffs_dir (char *dirname) in ffs_dir() argument 202 if (!*dirname || isspace (*dirname)) in ffs_dir() 219 while (*dirname == '/') in ffs_dir() 220 dirname++; in ffs_dir() 228 for (rest = dirname; (ch = *rest) && !isspace (ch) && ch != '/'; rest++); in ffs_dir() 271 && (!*dirname || substring (dirname, dp->d_name) <= 0)) in ffs_dir() 280 while (!dp->d_ino || (substring (dirname, dp->d_name) != 0 in ffs_dir() 286 *(dirname = rest) = ch; in ffs_dir()
|
H A D | fsys_vstafs.c | 118 vstafs_dir (char *dirname) in vstafs_dir() argument 138 while (*dirname == '/') dirname++; in vstafs_dir() 139 fn = dirname; in vstafs_dir() 150 && (! *dirname || strcmp (dirname, d->name) <= 0)) in vstafs_dir() 158 if (! grub_strcmp (dirname, d->name)) in vstafs_dir() 168 *(dirname = fn) = ch; in vstafs_dir() 181 while (*dirname && ! isspace (ch)); in vstafs_dir()
|
H A D | fsys_ufs2.c | 207 ufs2_dir (char *dirname) in ufs2_dir() argument 227 if (!*dirname || isspace (*dirname)) in ufs2_dir() 244 while (*dirname == '/') in ufs2_dir() 245 dirname++; in ufs2_dir() 253 for (rest = dirname; (ch = *rest) && !isspace (ch) && ch != '/'; rest++); in ufs2_dir() 292 && (!*dirname || substring (dirname, dp->d_name) <= 0)) in ufs2_dir() 301 while (!dp->d_ino || (substring (dirname, dp->d_name) != 0 in ufs2_dir() 307 *(dirname = rest) = ch; in ufs2_dir()
|
H A D | fsys_iso9660.c | 143 iso9660_dir (char *dirname) in iso9660_dir() argument 160 while (*dirname == '/') /* skip leading slashes */ in iso9660_dir() 161 dirname++; in iso9660_dir() 164 dirname[pathlen] in iso9660_dir() 165 && !isspace(dirname[pathlen]) && dirname[pathlen] != '/' ; in iso9660_dir() 354 && !memcmp(name, dirname, pathlen)) in iso9660_dir() 356 if (dirname[pathlen] == '/' || !print_possibilities) in iso9660_dir() 364 if (dirname[pathlen] == '/') in iso9660_dir() 400 if (dirname[pathlen] == '/' || print_possibilities >= 0) in iso9660_dir() 407 dirname += pathlen; in iso9660_dir() [all …]
|
H A D | fsys_ext2fs.c | 546 ext2fs_dir (char *dirname) in ext2fs_dir() argument 583 printf ("dirname=%s\n", dirname); in ext2fs_dir() 661 while (dirname[len] && !isspace (dirname[len])) in ext2fs_dir() 676 memmove (linkbuf + filemax, dirname, len); in ext2fs_dir() 700 dirname = linkbuf; in ext2fs_dir() 701 if (*dirname == '/') in ext2fs_dir() 718 if (!*dirname || isspace (*dirname)) in ext2fs_dir() 734 while (*dirname == '/') in ext2fs_dir() 735 dirname++; in ext2fs_dir() 745 for (rest = dirname; (ch = *rest) && !isspace (ch) && ch != '/'; in ext2fs_dir() [all …]
|
H A D | fsys_fat.c | 293 fat_dir (char *dirname) in fat_dir() argument 320 if (!*dirname || isspace (*dirname)) in fat_dir() 333 while (*dirname == '/') in fat_dir() 334 dirname++; in fat_dir() 344 for (rest = dirname; (ch = *rest) && !isspace (ch) && ch != '/'; rest++); in fat_dir() 436 if (substring (dirname, filename) == 0) in fat_dir() 463 if (substring (dirname, filename) <= 0) in fat_dir() 473 if (substring (dirname, filename) == 0) in fat_dir() 477 *(dirname = rest) = ch; in fat_dir()
|
H A D | fsys_jfs.c | 273 jfs_dir (char *dirname) in jfs_dir() argument 309 while (n < (JFS_PATH_MAX - 1) && (linkbuf[n++] = *dirname++)); in jfs_dir() 311 dirname = linkbuf; in jfs_dir() 315 if (!*dirname || isspace (*dirname)) { in jfs_dir() 330 for (; *dirname == '/'; dirname++); in jfs_dir() 332 for (rest = dirname; (ch = *rest) && !isspace (ch) && ch != '/'; rest++); in jfs_dir() 358 cmp = (!*dirname) ? -1 : substring (dirname, namebuf); in jfs_dir() 370 *(dirname = rest) = ch; in jfs_dir()
|
/titanic_44/usr/src/ucbcmd/install.d/ |
H A D | install.c | 74 char *dirname; in main() local 134 dirname = argv[0]; in main() 135 if (mkdirp(dirname, 0777) < 0) { in main() 138 fprintf(stderr, gettext("install: mkdir: %s: %s\n"), dirname, strerror(errno)); in main() 142 if (stat(dirname, &stb) < 0) { in main() 143 fprintf(stderr, gettext("install: stat: %s: %s\n"), dirname, strerror(errno)); in main() 147 fprintf(stderr, gettext("install: %s is not a directory\n"), dirname); in main() 151 if (mflag && chmod(dirname, mode)) { in main() 152 fprintf(stderr, gettext("install: chmod: %s: %s\n"), dirname, strerror(errno)); in main() 154 (void) unlink(dirname); in main() [all …]
|
/titanic_44/usr/src/cmd/svr4pkg/libinst/ |
H A D | setup_temporary_directory.c | 80 char *dirname; in setup_temporary_directory() local 95 dirname = tempnam(a_tmpdir, a_suffix); in setup_temporary_directory() 96 if (dirname == (char *)NULL) { in setup_temporary_directory() 102 if (mkdir(dirname, 0755) != 0) { in setup_temporary_directory() 106 echoDebug(DBG_SETUP_TEMPDIR, dirname); in setup_temporary_directory() 108 *r_dirname = dirname; in setup_temporary_directory()
|
/titanic_44/usr/src/cmd/abi/appcert/scripts/ |
H A D | appcert.pl | 500 my $dirname = object_to_dir_name($file); 501 my $dirpath = "$working_dir/$dirname"; 577 print $index_fh "$file => $dirname\n"; 608 my $dirname; 610 foreach $dirname (split(/:/, $ENV{'LD_LIBRARY_PATH'})) { 611 if (! exists($ldpath{$dirname})) { 612 push(@orig, $dirname); 613 $ldpath{$dirname} = 1; 625 $dirname = dirname($path); 626 next if (exists($ldpath{$dirname})); [all …]
|
H A D | AppcertUtil.pm | 212 my $dirname = $filename; 215 $dirname =~ s,%,%%,g; 218 $dirname =~ s,=,%=,g; 221 $dirname =~ s,/,=,g; 227 $dirname = $object_dir . ':' . $dirname; 229 return $dirname; 238 my ($dirname) = @_; 241 if (! -f "$dirname/info.path") { 242 exiter(nofile("$dirname/info.path", $!)); 245 open($info_path_fh, "<$dirname/info.path") || [all …]
|
/titanic_44/usr/src/cmd/ipf/tools/ |
H A D | ipfs.c | 224 char *dirname = NULL, *filename = NULL, *ifs = NULL; local 231 if ((set == 0) && !dirname && !filename) 232 dirname = optarg; 237 if ((set == 0) && !dirname && !filename) 250 if (filename || dirname || set) 259 if ((ns >= 0) || dirname || (rw != -1) || set) 265 if (dirname || (rw != -1) || (ns == -1)) 275 if ((ns >= 0) || dirname || (rw != -1) || set) 281 if (filename || dirname || set) 290 if (dirname || (rw != -1) || (ns == -1)) [all …]
|
/titanic_44/usr/src/cmd/fs.d/autofs/ |
H A D | autod_parse.c | 55 char dirname[MAXFILENAMELEN+1]; member 431 char dirname[MAXFILENAMELEN]; in hierarchical_sort() local 452 if ((rc = get_dir_from_path(dirname, &path, in hierarchical_sort() 453 sizeof (dirname))) != PARSE_OK) in hierarchical_sort() 459 while (dirname[0] != '\0') { in hierarchical_sort() 461 if (strcmp(currnode->dirname, dirname) == 0) { in hierarchical_sort() 478 (&newnode, dirname)) in hierarchical_sort() 492 dirname)) != PARSE_OK) in hierarchical_sort() 498 if ((rc = get_dir_from_path(dirname, &path, in hierarchical_sort() 499 sizeof (dirname))) != PARSE_OK) in hierarchical_sort() [all …]
|
/titanic_44/usr/src/cmd/svr4pkg/pkgscripts/ |
H A D | i.awk.sh | 47 dirname=`dirname $savepath` 53 if [ ! -d $dirname ] 56 mkdir -p $dirname
|
H A D | i.sed.sh | 47 dirname=`dirname $savepath` 54 if [ ! -d $dirname ] 57 mkdir -p $dirname
|
H A D | i.build.sh | 47 dirname=`dirname $savepath` 54 if [ ! -d $dirname ] 57 mkdir -p $dirname
|
/titanic_44/usr/src/lib/libpp/common/ |
H A D | ppop.c | 128 error(1, "%s: input file name required for %s ignore", file, dirname(INCLUDE)); in ppmapinclude() 220 error(3, "%s unexpected in %s map list", pptokstr(pp.token, 0), dirname(INCLUDE)); in ppmapinclude() 823 dirname(PRAGMA), in ppop() 826 dirname(DEFINE), in ppop() 827 dirname(PRAGMA), in ppop() 830 dirname(UNDEF)); in ppop() 852 sfprintf(sp, "#%s #%s\n", dirname(DEFINE), pp.firstop->value); in ppop() 856 sfprintf(sp, "#%s %s\n", dirname(DEFINE), pp.firstop->value); in ppop() 860 … sfprintf(sp, "#%s %-.*s %s\n", dirname(DEFINE), s - pp.firstop->value, pp.firstop->value, s + 1); in ppop() 862 sfprintf(sp, "#%s %s 1\n", dirname(DEFINE), pp.firstop->value); in ppop() [all …]
|
/titanic_44/usr/src/cmd/truss/ |
H A D | ipc.c | 263 const char *dirname; in checkproc() local 316 dirname = path; in checkproc() 318 dirname = sp2 + 1; in checkproc() 320 if (strcmp(dirname, "self") == 0) { in checkproc() 322 } else if ((pid = strtol(dirname, &next, 10)) < 0 || in checkproc() 329 dirname = "."; in checkproc() 332 dirname = path; in checkproc() 335 if (!Pisprocdir(Proc, dirname) || /* file not in a /proc directory */ in checkproc()
|
/titanic_44/usr/src/lib/libpkg/common/ |
H A D | devtype.c | 47 devp->dirname = devp->pathname = devp->mount = NULL; in devtype() 55 devp->dirname = devp->name; in devtype() 71 devp->dirname = devp->mount; in devtype() 111 devp->dirname = name; in devtype()
|
/titanic_44/usr/src/lib/libshell/common/scripts/ |
H A D | filetree1.sh | 58 typeset dirname 66 dirname="$(dirname "$i")" 87 dirname="${dirname}" 164 builtin dirname
|
/titanic_44/usr/src/grub/grub-0.97/netboot/ |
H A D | fsys_tftp.c | 41 static int tftp_dir_undi(char *dirname); 596 tftp_dir (char *dirname) in tftp_dir() argument 601 grub_printf ("tftp_dir (%s)\n", dirname); in tftp_dir() 605 return (tftp_dir_undi(dirname)); in tftp_dir() 618 ch = nul_terminate (dirname); in tftp_dir() 622 dirname, 0, 0, 0, TFTP_MAX_PACKET, 0, 0) in tftp_dir() 625 dirname[grub_strlen (dirname)] = ch; in tftp_dir() 818 tftp_dir_undi(char *dirname) in tftp_dir_undi() argument 828 ch = nul_terminate(dirname); in tftp_dir_undi() 830 sprintf(saved_name, "%s", dirname); in tftp_dir_undi() [all …]
|