Home
last modified time | relevance | path

Searched refs:argv0 (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.4/tools/lib/subcmd/
Dexec-cmd.c84 const char *extract_argv0_path(const char *argv0) in extract_argv0_path() argument
88 if (!argv0 || !*argv0) in extract_argv0_path()
90 slash = argv0 + strlen(argv0); in extract_argv0_path()
92 while (argv0 <= slash && !is_dir_sep(*slash)) in extract_argv0_path()
95 if (slash >= argv0) { in extract_argv0_path()
96 argv0_path = strndup(argv0, slash - argv0); in extract_argv0_path()
100 return argv0; in extract_argv0_path()
/Linux-v5.4/samples/bpf/
Dtest_cgrp2_sock2.c27 static int usage(const char *argv0) in usage() argument
29 printf("Usage: %s cg-path filter-path [filter-id]\n", argv0); in usage()
Dtest_cgrp2_sock.c190 static int usage(const char *argv0) in usage() argument
194 printf(" %s -b bind-to-dev -m mark -p prio cg-path\n", argv0); in usage()
197 printf(" %s -d cg-path\n", argv0); in usage()
200 printf(" %s [-6]\n", argv0); in usage()
Dtest_cgrp2_attach.c79 static int usage(const char *argv0) in usage() argument
81 printf("Usage: %s [-d] [-D] <cg-path> <egress|ingress>\n", argv0); in usage()
/Linux-v5.4/arch/arm/vdso/
Dvdsomunge.c80 static const char *argv0; variable
88 fprintf(stderr, "%s: ", argv0); in fail()
130 argv0 = argv[0]; in main()
/Linux-v5.4/scripts/
Dconmakehash.c24 static void usage(char *argv0) in usage() argument
27 " %s chartable [hashsize] [hashstep] [maxhashlevel]\n", argv0); in usage()
/Linux-v5.4/security/tomoyo/
Dcommon.c2001 char *argv0 = NULL; in tomoyo_add_entry() local
2015 argv0 = strstr(header, " argv[]={ \""); in tomoyo_add_entry()
2016 if (argv0) { in tomoyo_add_entry()
2017 argv0 += 10; in tomoyo_add_entry()
2018 len += tomoyo_truncate(argv0) + 14; in tomoyo_add_entry()
2035 if (argv0) in tomoyo_add_entry()
2036 tomoyo_addprintf(buffer, len, " exec.argv[0]=%s", argv0); in tomoyo_add_entry()
/Linux-v5.4/tools/usb/
Dffs-test.c55 static const char argv0[] = "ffs-test"; variable
79 fprintf(stderr, "%s: %s ", argv0, levels[level]); in _msg()
/Linux-v5.4/fs/unicode/
Dmkutf8data.c61 const char *argv0; variable
1838 printf("Usage: %s [options]\n", argv0); in help()
3352 argv0 = argv[0]; in main()
/Linux-v5.4/kernel/debug/kdb/
Dkdb_main.c674 static int kdb_defcmd2(const char *cmdstr, const char *argv0) in kdb_defcmd2() argument
678 if (strcmp(argv0, "endefcmd") == 0) { in kdb_defcmd2()