/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.basename.d.out | 3 if [ `basename "/foo/bar/baz"` != "baz" ]; then 4 echo "basename(\"/foo/bar/baz\") is \"baz\"; expected \"`basename "/foo/bar/baz"`"\" 11 if [ `basename "/foo/bar///baz/"` != "baz" ]; then 12 echo "basename(\"/foo/bar///baz/\") is \"baz\"; expected \"`basename "/foo/bar///baz/"`"\" 19 if [ `basename "/foo/bar/baz/"` != "baz" ]; then 20 echo "basename(\"/foo/bar/baz/\") is \"baz\"; expected \"`basename "/foo/bar/baz/"`"\" 27 if [ `basename "/foo/bar/baz//"` != "baz" ]; then 28 echo "basename(\"/foo/bar/baz//\") is \"baz\"; expected \"`basename "/foo/bar/baz//"`"\" 35 if [ `basename "/foo/bar/baz/."` != "." ]; then 36 echo "basename(\"/foo/bar/baz/.\") is \".\"; expected \"`basename "/foo/bar/baz/."`"\" [all …]
|
H A D | tst.basename.d | 33 * This test verifies that the basename() and dirname() functions are working 59 * basename(3) and basename(1) return different results for the empty 73 printf("if [ `basename \"%s\"` != \"%s\" ]; then\n", 74 dir[i], basename(dir[i])); 75 printf(" echo \"basename(\\\"%s\\\") is \\\"%s\\\"; ", 76 dir[i], basename(dir[i])); 77 printf("expected \\\"`basename \"%s\"`\"\\\"\n", dir[i]); 92 printf("if [ \"`basename \"%s\"`\" != \"%s\" -a \".\" != \"%s\" ]; then\n", 93 dir[i], basename(dir[i]), basename(dir[i])); 94 printf(" echo \"basename(\\\"%s\\\") is \\\"%s\\\"; ", [all …]
|
/freebsd/contrib/bmake/unit-tests/ |
H A D | varmod-tail.exp | 1 tail (basename) of 'a/b/c' is 'c' 2 tail (basename) of 'def' is 'def' 3 tail (basename) of 'a.b.c' is 'a.b.c' 4 tail (basename) of 'a.b/c' is 'c' 5 tail (basename) of 'a' is 'a' 6 tail (basename) of 'a.a' is 'a.a' 7 tail (basename) of '.gitignore' is '.gitignore' 8 tail (basename) of 'a' is 'a' 9 tail (basename) of 'a.a' is 'a.a' 10 tail (basename) of 'trailing/' is ''
|
/freebsd/contrib/netbsd-tests/usr.bin/basename/ |
H A D | t_basename.sh | 35 atf_check -o inline:"bin\n" basename /usr/bin 36 atf_check -o inline:"usr\n" basename /usr 37 atf_check -o inline:"/\n" basename / 38 atf_check -o inline:"/\n" basename /// 39 atf_check -o inline:"usr\n" basename /usr// 40 atf_check -o inline:"bin\n" basename //usr//bin 41 atf_check -o inline:"usr\n" basename usr 42 atf_check -o inline:"bin\n" basename usr/bin 52 atf_check -o inline:"bi\n" basename /usr/bin n 53 atf_check -o inline:"bin\n" basename /usr/bin bin [all …]
|
/freebsd/contrib/netbsd-tests/lib/libutil/ |
H A D | t_pidfile.c | 130 generate_varrun_pidfile(const char *basename) in generate_varrun_pidfile() argument 135 basename == NULL ? getprogname() : basename) == -1) { in generate_varrun_pidfile() 151 "basename"); in helper_default_path() 176 if (pidfile("custom-basename") == -1) in helper_custom_basename() 178 "basename"); in helper_custom_basename() 193 path = generate_varrun_pidfile("custom-basename"); in ATF_TC_BODY() 230 "basename"); in helper_change_basenames() 234 "basename"); in helper_change_basenames() 237 custom_path = generate_varrun_pidfile("custom-basename"); in helper_change_basenames() 238 if (pidfile("custom-basename") == -1) in helper_change_basenames() [all …]
|
/freebsd/lib/libc/gen/ |
H A D | basename.3 | 1 .\" $OpenBSD: basename.3,v 1.20 2007/05/31 19:19:28 jmc Exp $ 21 .Nm basename 26 .Fn basename "char *path" 29 .Fn basename 37 .Fn basename 62 .Xr basename 1 , 67 .Fn basename 72 .Fn basename
|
/freebsd/usr.sbin/crunch/crunchgen/ |
H A D | crunched_main.c | 93 find_entry_point(const char *basename) in find_entry_point() 97 if (!strcmp(basename, ep->name)) in find_entry_point() 114 const char *basename = NULL; in main() 122 basename = get_basename(__progname); in main() 123 ep = find_entry_point(basename); in main() 134 basename = get_basename(argv[0]); in main() 135 ep = find_entry_point(basename); in main() 154 basename = exe_name; in main() 155 ep = find_entry_point(basename); in main() 162 if (basename in main() 91 find_entry_point(const char * basename) find_entry_point() argument 113 const char *basename = NULL; main() local [all...] |
/freebsd/include/ |
H A D | libgen.h | 38 char *basename(char *); 43 * In FreeBSD 12, the prototypes of basename() and dirname() were 49 * Apply a workaround where we explicitly link against basename@FBSD_1.0 58 __sym_compat(basename, __old_basename, FBSD_1.0); 60 #define basename(x) __generic(x, const char *, __old_basename, basename)(x) macro
|
/freebsd/cddl/usr.sbin/dtrace/tests/tools/ |
H A D | gentest.sh | 7 usage: sh $(basename $0) [-e <excludes>] <category> [<testfiles>] 76 FEATURE=$(basename ${CATEGORY}) 83 EXFAILS=$(echo -e "$EXFAIL" | grep "^${CATEGORY}/" | xargs basename -a) 84 SKIPS=$(echo -e "$SKIP" | grep "^${CATEGORY}/" | xargs basename -a) 85 SKIPCIS=$(echo -e "$SKIPCI" | grep "^${CATEGORY}/" | xargs basename -a) 90 echo "$@" | tr ' ' '\n' | xargs basename -a | sort > ${FILELIST}
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/ |
H A D | channel_common.kshlib | 40 typeset basename 42 basename=${2%.*} 67 if [[ -f "$basename.out" ]] && [[ $expectexit -eq 0 ]]; then 68 if ! outdiff=$(diff "$basename.out" "$tmpout"); then 72 "$(<$basename.out)"$'\nBut got:\n'"$output"$'\n' \ 76 elif [[ -f "$basename.err" ]] && [[ $expectexit -ne 0 ]]; then 77 if ! outdiff=$(diff "$basename.err" "$tmperr"); then 81 "$(<$basename.err)"$'\nBut got:\n'"$outputerror"$'\n' \
|
/freebsd/contrib/netbsd-tests/usr.bin/make/ |
H A D | t_make.sh | 75 local filename basename atfname descr 78 basename="${filename##*/}" 79 basename="${basename%.mk}" 80 atfname="$(echo "${basename}" | tr "x-" "x_")" 82 test_case "${atfname}" "${basename}" "${descr}"
|
/freebsd/tools/tools/vt/keymaps/ |
H A D | convert-keymaps.pl | 83 my $basename; 84 ($basename = $kbdfile) =~ s:.*/::; 85 my ($encoding) = $ENCODING{$basename}; 87 my $outfile = $FILE_NEW{$basename}; 90 print "converting from '$basename' ($encoding) to '$outfile' (UCS)\n"; 97 print "Ignore '$basename': No encoding defined in KBDFILES.map\n";
|
/freebsd/contrib/netbsd-tests/lib/libc/gen/ |
H A D | t_basedirname.c | 4 * Regression test for basename(3). 24 * for basename()" table in IEEE Std 1003.1-2001. 35 * basename() shall return a pointer to the string "." . 96 atf_tc_set_md_var(tc, "descr", "Test basename(3) with POSIX examples"); in ATF_TC_HEAD() 110 base = basename(testbuf); in ATF_TC_BODY() 112 base = basename(NULL); in ATF_TC_BODY() 116 * basename(3) is allowed to modify the input buffer. in ATF_TC_BODY() 120 * This is not a problem, as basename(3) is also allowed in ATF_TC_BODY()
|
/freebsd/contrib/diff/lib/ |
H A D | basename.c | 1 /* basename.c -- return the last element in a path 27 /* In general, we can't use the builtin `basename' function if available, 29 In some environments the builtin `basename' modifies its argument. 50 the basename if no non-slashes have been found. */ in base_name() 66 /* Return the length of of the basename NAME. Typically NAME is the
|
/freebsd/crypto/heimdal/lib/asn1/ |
H A D | gen_template.c | 43 ttype_symbol(const char *basename, const Type *t) in ttype_symbol() argument 49 integer_symbol(const char *basename, const Type *t) in integer_symbol() argument 70 boolean_symbol(const char *basename, const Type *t) in boolean_symbol() 77 octetstring_symbol(const char *basename, const Type *t) in octetstring_symbol() 83 sequence_symbol(const char *basename, const Type *t) in sequence_symbol() 85 return basename; 89 time_symbol(const char *basename, const Type *t) in time_symbol() 95 tag_symbol(const char *basename, const Type *t) in tag_symbol() 97 return symbol_name(basename, t->subtype); 101 generalstring_symbol(const char *basename, cons in generalstring_symbol() 68 boolean_symbol(const char * basename,const Type * t) boolean_symbol() argument 75 octetstring_symbol(const char * basename,const Type * t) octetstring_symbol() argument 81 sequence_symbol(const char * basename,const Type * t) sequence_symbol() argument 87 time_symbol(const char * basename,const Type * t) time_symbol() argument 93 tag_symbol(const char * basename,const Type * t) tag_symbol() argument 99 generalstring_symbol(const char * basename,const Type * t) generalstring_symbol() argument 105 printablestring_symbol(const char * basename,const Type * t) printablestring_symbol() argument 111 ia5string_symbol(const char * basename,const Type * t) ia5string_symbol() argument 117 visiblestring_symbol(const char * basename,const Type * t) visiblestring_symbol() argument 123 utf8string_symbol(const char * basename,const Type * t) utf8string_symbol() argument 129 bmpstring_symbol(const char * basename,const Type * t) bmpstring_symbol() argument 135 universalstring_symbol(const char * basename,const Type * t) universalstring_symbol() argument 141 oid_symbol(const char * basename,const Type * t) oid_symbol() argument 147 bitstring_symbol(const char * basename,const Type * t) bitstring_symbol() argument 211 symbol_name(const char * basename,const Type * t) symbol_name() argument [all...] |
/freebsd/sys/contrib/openzfs/cmd/zstream/ |
H A D | zstream.c | 56 char *basename = strrchr(argv[0], '/'); in main() local 57 basename = basename ? (basename + 1) : argv[0]; in main() 58 if (argc >= 1 && strcmp(basename, "zstreamdump") == 0) in main()
|
/freebsd/sys/xen/xenstore/ |
H A D | xenstorevar.h | 118 * \param node The basename of the path to read. 136 * \param node The basename of the path to read. 151 * \param node The basename of the file to read. 169 * \param node The basename of the file to write. 183 * \param node The basename of the directory to create. 196 * \param node The basename of the directory to remove. 208 * \param node The basename of the directory to remove. 247 * \param node The basename of the path to read. 265 * \param node The basename of the path to read. 281 * \param node The basename of the path to read. [all …]
|
/freebsd/contrib/sendmail/libsmutil/ |
H A D | t-maplock-0.sh | 28 O=`basename $0`.0 37 requires `basename ${CHKL}` and `basename ${M}`. 41 -l locktest path to `basename ${CHKL}` [default: ${CHKL}] 42 -m makemap path to `basename ${M}` [default: $M]
|
/freebsd/crypto/openssl/Configurations/ |
H A D | unix-Makefile.tmpl | 101 use File::Basename; 109 join(" ", map { basename(platform->dso($_)) } @fipsmodules) -} 315 DOCDIR=$(INSTALLTOP)/share/doc/$(BASENAME) 363 BASENAME= openssl 364 NAME= $(BASENAME)-$(VERSION) 657 fn=`basename $$x1`; \ 664 ln=`basename "$$x2"`; \ 705 fn=`basename $$i`; \ 712 fn=`basename $$l`; \ 725 fn1=`basename "$$s1"`; \ [all …]
|
/freebsd/crypto/openssl/test/recipes/ |
H A D | 40-test_rehash.t | 15 use File::Basename; 67 my $basename = basename($_, ".pem"); 77 $basename . sprintf("-%02d", $cnt) . ".pem"); 89 die "No end marker in $basename\n" if $writing;
|
/freebsd/contrib/com_err/ |
H A D | compile_et.c | 56 char Basename[128]; variable 230 strlcpy(Basename, p, sizeof(Basename)); in main() 232 Basename[strcspn(Basename, ".")] = '\0'; in main() 234 snprintf(hfn, sizeof(hfn), "%s.h", Basename); in main() 235 snprintf(cfn, sizeof(cfn), "%s.c", Basename); in main()
|
/freebsd/crypto/heimdal/lib/com_err/ |
H A D | compile_et.c | 56 char Basename[128]; variable 230 strlcpy(Basename, p, sizeof(Basename)); in main() 232 Basename[strcspn(Basename, ".")] = '\0'; in main() 234 snprintf(hfn, sizeof(hfn), "%s.h", Basename); in main() 235 snprintf(cfn, sizeof(cfn), "%s.c", Basename); in main()
|
/freebsd/sys/contrib/openzfs/.github/codeql/custom-queries/cpp/ |
H A D | deprecatedFunctionUsage.ql | 15 f.getName() = "basename" or 32 result = "basename(3) is underspecified. Use zfs_basename() instead!" 33 else if f.getName() = "basename" then 34 result = "basename(3) is underspecified. Use zfs_basename() instead!"
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaSwift.cpp | 348 StringRef ContextName, BaseName, Parameters; in validateSwiftFunctionName() local 350 std::tie(BaseName, Parameters) = Name.split('('); in validateSwiftFunctionName() 354 std::tie(ContextName, BaseName) = BaseName.split('.'); in validateSwiftFunctionName() 355 if (BaseName.empty()) { in validateSwiftFunctionName() 356 BaseName = ContextName; in validateSwiftFunctionName() 366 if (!isValidAsciiIdentifier(BaseName) || BaseName == "_") { in validateSwiftFunctionName() 368 << AL << /*basename*/ 0; in validateSwiftFunctionName() 372 bool IsSubscript = BaseName == "subscript"; in validateSwiftFunctionName() 454 SwiftParamCount == 1 && BaseName == "init" && CurrentParam != "_"; in validateSwiftFunctionName() 580 StringRef ContextName, BaseName; in DiagnoseName() local [all …]
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | write_pid.c | 77 pidfile(const char *basename) in pidfile() argument 81 if(basename == NULL) in pidfile() 82 basename = getprogname(); in pidfile() 83 pidfile_path = pid_file_write(basename); in pidfile()
|