/freebsd/cddl/contrib/opensolaris/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 …]
|
H A D | tst.basename.d | 80 dir[i], dirname(dir[i])); 82 dir[i], dirname(dir[i])); 99 dir[i], dirname(dir[i])); 101 dir[i], dirname(dir[i]));
|
/freebsd/contrib/ntp/libntp/lib/isc/unix/ |
H A D | dir.c | 60 isc_dir_open(isc_dir_t *dir, const char *dirname) { in isc_dir_open() argument 66 REQUIRE(dirname != NULL); in isc_dir_open() 72 octets = strlen(dirname) + 1; in isc_dir_open() 73 if (octets + 2 > sizeof(dir->dirname)) in isc_dir_open() 76 strlcpy(dir->dirname, dirname, octets); in isc_dir_open() 81 p = dir->dirname + strlen(dir->dirname); in isc_dir_open() 82 if (dir->dirname < p && *(p - 1) != '/') in isc_dir_open() 90 dir->handle = opendir(dirname); in isc_dir_open() 161 isc_dir_chdir(const char *dirname) { in isc_dir_chdir() argument 166 REQUIRE(dirname != NULL); in isc_dir_chdir() [all …]
|
/freebsd/contrib/netbsd-tests/usr.bin/dirname/ |
H A D | t_dirname.sh | 35 atf_check -o inline:"/\n" dirname / 36 atf_check -o inline:"/\n" dirname // 37 atf_check -o inline:"/usr\n" dirname /usr/bin/ 38 atf_check -o inline:"//usr\n" dirname //usr//bin// 39 atf_check -o inline:".\n" dirname usr 40 atf_check -o inline:".\n" dirname "" 41 atf_check -o inline:"/\n" dirname /usr 42 atf_check -o inline:"/usr\n" dirname /usr/bin 43 atf_check -o inline:"usr\n" dirname usr/bin
|
/freebsd/tests/sys/fs/tarfs/ |
H A D | mktar.c | 108 mklonglinktarget(const char *dirname, const char *filename) in mklonglinktarget() argument 112 if (asprintf(&piece, "%1$s/../%1$s/../%1$s/../%1$s/../", dirname) < 0) in mklonglinktarget() 169 char *dirname; in main() local 192 if (asprintf(&dirname, "%s%s.XXXXXXXX", _PATH_TMP, PROGNAME) < 0) in main() 194 if (mkdtemp(dirname) == NULL) in main() 195 err(1, "%s", dirname); in main() 196 verbose("mkdir %s", dirname); in main() 202 verbose("cd %s", dirname); in main() 203 if (chdir(dirname) != 0) in main() 204 err(1, "%s", dirname); in main() [all …]
|
/freebsd/sbin/ipf/ipfs/ |
H A D | ipfs.c | 204 char *dirname = NULL, *filename = NULL, *ifs = NULL; in main() local 211 if ((set == 0) && !dirname && !filename) in main() 212 dirname = optarg; in main() 217 if ((set != 0) && !dirname && !filename) in main() 227 if (filename || dirname || set) in main() 236 if ((ns >= 0) || dirname || (rw != -1) || set) in main() 242 if (dirname || (rw != -1) || (ns == -1)) in main() 252 if ((ns >= 0) || dirname || (rw != -1) || set) in main() 258 if (filename || dirname || set) in main() 267 if (dirname || (rw != -1) || (ns == -1)) in main() [all …]
|
/freebsd/contrib/mandoc/ |
H A D | test-mkdtemp.c | 7 char dirname[] = "/tmp/temp.XXXXXX"; in main() local 9 if (mkdtemp(dirname) != dirname) in main() 11 return rmdir(dirname) == -1; in main()
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_tar_filenames.c | 38 char dirname[400]; in test_filename() 59 strcpy(dirname, filename); in test_filename() 82 archive_entry_copy_pathname(ae, dirname); in test_filename() 89 strcat(dirname, "/"); in test_filename() 95 archive_entry_copy_pathname(ae, dirname); in test_filename() 127 assertEqualString(dirname, archive_entry_pathname(ae)); in test_filename() 131 assertEqualString(dirname, archive_entry_pathname(ae)); in test_filename() 39 char dirname[400]; test_filename() local
|
H A D | test_ustar_filenames.c | 36 char dirname[400]; in test_filename() 57 strcpy(dirname, filename); in test_filename() 84 archive_entry_copy_pathname(ae, dirname); in test_filename() 95 strcat(dirname, "/"); in test_filename() 101 archive_entry_copy_pathname(ae, dirname); in test_filename() 142 assertEqualString(dirname, archive_entry_pathname(ae)); in test_filename() 148 assertEqualString(dirname, archive_entry_pathname(ae)); in test_filename() 37 char dirname[400]; test_filename() local
|
/freebsd/include/ |
H A D | libgen.h | 39 char *dirname(char *); 59 __sym_compat(dirname, __old_dirname, FBSD_1.0); 61 #define dirname(x) __generic(x, const char *, __old_dirname, dirname)(x) macro
|
/freebsd/contrib/ntp/libntp/lib/isc/unix/include/isc/ |
H A D | dir.h | 55 char dirname[ISC_DIR_PATHMAX]; member 66 isc_dir_open(isc_dir_t *dir, const char *dirname); 78 isc_dir_chdir(const char *dirname); 81 isc_dir_chroot(const char *dirname);
|
/freebsd/contrib/ntp/libntp/lib/isc/win32/include/isc/ |
H A D | dir.h | 43 char dirname[ISC_DIR_PATHMAX]; member 55 isc_dir_open(isc_dir_t *dir, const char *dirname); 67 isc_dir_chdir(const char *dirname); 70 isc_dir_chroot(const char *dirname);
|
/freebsd/contrib/libedit/ |
H A D | filecomplete.c | 328 static char *filename = NULL, *dirname = NULL, *dirpath = NULL; in fn_filename_completion_function() local 351 nptr = el_realloc(dirname, (len + 1) * in fn_filename_completion_function() 354 el_free(dirname); in fn_filename_completion_function() 355 dirname = NULL; in fn_filename_completion_function() 358 dirname = nptr; in fn_filename_completion_function() 359 (void)strlcpy(dirname, text, len + 1); in fn_filename_completion_function() 369 el_free(dirname); in fn_filename_completion_function() 370 dirname = NULL; in fn_filename_completion_function() 382 if (dirname == NULL) { in fn_filename_completion_function() 383 if ((dirname = strdup("")) == NULL) in fn_filename_completion_function() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/zpool_iostat/ |
H A D | zpool_iostat_-c_searchpath.ksh | 47 log_must rm -rf $(dirname "$SCRIPT_1") 48 log_must rm -rf $(dirname "$SCRIPT_2") 67 log_must mkdir -p $(dirname "$SCRIPT_1") 74 log_must mkdir -p $(dirname "$SCRIPT_2")
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/zpool_status/ |
H A D | zpool_status_-c_searchpath.ksh | 47 log_must rm -rf $(dirname "$SCRIPT_1") 48 log_must rm -rf $(dirname "$SCRIPT_2") 67 log_must mkdir -p $(dirname "$SCRIPT_1") 74 log_must mkdir -p $(dirname "$SCRIPT_2")
|
/freebsd/contrib/openbsm/config/ |
H A D | ylwrap | 115 dirname=ylwrap$$ 116 do_exit="cd '`pwd`' && rm -rf $dirname > /dev/null 2>&1;"' (exit $ret); exit $ret' 121 mkdir $dirname || exit 1 123 cd $dirname 220 rm -rf $dirname
|
/freebsd/contrib/ntp/sntp/libevent/build-aux/ |
H A D | ylwrap | 164 dirname=ylwrap$$ 165 do_exit="cd '`pwd`' && rm -rf $dirname > /dev/null 2>&1;"' (exit $ret); exit $ret' 170 mkdir $dirname || exit 1 172 cd $dirname 235 rm -rf $dirname
|
/freebsd/contrib/bc/scripts/ |
H A D | locale_install.sh | 51 mkdir -p $(dirname "$_gencatfile_loc") 104 _splitpath_path=$(dirname "$_splitpath_path") 176 scriptdir=$(dirname "$script") 279 mkdir -p $(dirname "$loc") 290 linkdir=$(dirname "$file")
|
/freebsd/libexec/nuageinit/tests/ |
H A D | dirname.lua | 5 print(n.dirname("/my/path/path1")) 6 if n.dirname("path") then 9 if n.dirname() then
|
H A D | utils.sh | 9 atf_test_case dirname 23 atf_check -o "inline:/my/path/\n" -s exit:0 /usr/libexec/flua $(atf_get_srcdir)/dirname.lua 30 atf_add_test_case dirname
|
/freebsd/contrib/libarchive/cpio/test/ |
H A D | test_option_f.c | 13 unpack(const char *dirname, const char *option) in unpack() argument 17 assertMakeDir(dirname, 0755); in unpack() 18 assertChdir(dirname); in unpack()
|
/freebsd/crypto/openssl/apps/ |
H A D | rehash.c | 348 static int do_dir(const char *dirname, enum Hash h) in do_dir() argument 362 if (app_access(dirname, W_OK) < 0) { in do_dir() 363 BIO_printf(bio_err, "Skipping %s, can't write\n", dirname); in do_dir() 366 dirlen = strlen(dirname); in do_dir() 367 if (dirlen != 0 && !ends_with_dirsep(dirname)) { in do_dir() 373 BIO_printf(bio_out, "Doing %s\n", dirname); in do_dir() 376 BIO_printf(bio_err, "Skipping %s, out of memory\n", dirname); in do_dir() 380 while ((filename = OPENSSL_DIR_read(&d, dirname)) != NULL) { in do_dir() 404 dirname, pathsep, filename) >= buflen) in do_dir() 437 dirname, pathsep, bp->hash, in do_dir() [all …]
|
/freebsd/lib/libc/gen/ |
H A D | scandir.c | 137 scandir_b(const char *dirname, struct dirent ***namelist, select_block select, in scandir_b() argument 140 scandir(const char *dirname, struct dirent ***namelist, in scandir_b() 147 dirp = opendir(dirname); in scandir_b() 161 scandirat(int dirfd, const char *dirname, struct dirent ***namelist, in scandirat() argument 168 fd = _openat(dirfd, dirname, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in scandirat()
|
/freebsd/share/examples/sunrpc/dir/ |
H A D | dir_proc.c | 13 readdir_1(dirname) in readdir_1() argument 14 nametype *dirname; in readdir_1() 25 dirp = opendir(*dirname);
|
/freebsd/sys/fs/devfs/ |
H A D | devfs_dir.c | 119 char dirname[SPECNAMELEN + 1], *namep; in devfs_dir_ref_de() local 121 namep = devfs_fqpn(dirname, dm, de, NULL); in devfs_dir_ref_de() 152 char dirname[SPECNAMELEN + 1], *namep; in devfs_dir_unref_de() local 154 namep = devfs_fqpn(dirname, dm, de, NULL); in devfs_dir_unref_de()
|