Home
last modified time | relevance | path

Searched refs:name (Results 1 – 25 of 237) sorted by relevance

12345678910

/busybox-1.35.0/include/
Dapplets.src.h26 # define APPLET(name,l,s) int name##_main(int argc, char **argv) MAIN_EXTERNALLY… argument
27 # define APPLET_ODDNAME(name,main,l,s,help) int main##_main(int argc, char **argv) MAIN_EXTERNALLY… argument
28 # define APPLET_NOEXEC(name,main,l,s,help) int main##_main(int argc, char **argv) MAIN_EXTERNALLY… argument
29 # define APPLET_NOFORK(name,main,l,s,help) int main##_main(int argc, char **argv) MAIN_EXTERNALLY… argument
30 # define APPLET_SCRIPTED(name,main,l,s,help) argument
33 # define APPLET(name,l,s) name name##_main argument
34 # define APPLET_ODDNAME(name,main,l,s,help) name main##_main argument
35 # define APPLET_NOEXEC(name,main,l,s,help) name main##_main argument
36 # define APPLET_NOFORK(name,main,l,s,help) name main##_main argument
37 # define APPLET_SCRIPTED(name,main,l,s,help) name scripted_main argument
[all …]
/busybox-1.35.0/libbb/
Ddie_if_bad_username.c22 void FAST_FUNC die_if_bad_username(const char *name) in die_if_bad_username() argument
24 const char *start = name; in die_if_bad_username()
37 if (*name == '-' in die_if_bad_username()
38 || *name == '.' in die_if_bad_username()
40 || (*name == '$' && !name[1]) in die_if_bad_username()
45 ch = *name; in die_if_bad_username()
55 (unsigned)ch, (unsigned)(name - start)); in die_if_bad_username()
56 } while (*++name); in die_if_bad_username()
63 if (name - start >= LOGIN_NAME_MAX) in die_if_bad_username()
Du_signal_names.c152 int FAST_FUNC get_signum(const char *name) in get_signum() argument
160 i = bb_strtou(name, NULL, 10); in get_signum()
163 if (strncasecmp(name, "SIG", 3) == 0) in get_signum()
164 name += 3; in get_signum()
166 if (strcasecmp(name, signals[i]) == 0) in get_signum()
174 if ((name[0] | 0x20) == 'i' && (name[1] | 0x20) == 'o') { in get_signum()
176 if (!name[2]) in get_signum()
180 if ((name[2] | 0x20) == 't' && !name[3]) in get_signum()
206 if (strncasecmp(name, "RTMIN", 5) == 0) { in get_signum()
207 if (!name[5]) in get_signum()
[all …]
Dbb_pwd.c17 struct passwd* FAST_FUNC xgetpwnam(const char *name) in xgetpwnam() argument
19 struct passwd *pw = getpwnam(name); in xgetpwnam()
21 bb_error_msg_and_die("unknown user %s", name); in xgetpwnam()
25 struct group* FAST_FUNC xgetgrnam(const char *name) in xgetgrnam() argument
27 struct group *gr = getgrnam(name); in xgetgrnam()
29 bb_error_msg_and_die("unknown group %s", name); in xgetgrnam()
77 char *name = uid2uname(uid); in uid2uname_utoa() local
78 return (name) ? name : utoa(uid); in uid2uname_utoa()
83 char *name = gid2group(gid); in gid2group_utoa() local
84 return (name) ? name : utoa(gid); in gid2group_utoa()
[all …]
Dinet_common.c19 int FAST_FUNC INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst) in INET_resolve() argument
31 if (strcmp(name, "default") == 0) { in INET_resolve()
36 if (inet_aton(name, &s_in->sin_addr)) { in INET_resolve()
41 dbg("gethostbyname(%s)", name); in INET_resolve()
42 hp = gethostbyname(name); in INET_resolve()
51 dbg("getnetbyname(%s)", name); in INET_resolve()
52 np = getnetbyname(name); in INET_resolve()
66 dbg("gethostbyname(%s)", name); in INET_resolve()
67 hp = gethostbyname(name); in INET_resolve()
87 char name[1]; in INET_rresolve() member
[all …]
Dendofname.c17 endofname(const char *name) in endofname() argument
19 if (!is_name(*name)) in endofname()
20 return name; in endofname()
21 while (*++name) { in endofname()
22 if (!is_in_name(*name)) in endofname()
25 return name; in endofname()
Drtc.c35 static int open_loop_on_busy(const char *name, int flags) in open_loop_on_busy() argument
45 rtc = open(name, flags); in open_loop_on_busy()
51 return xopen(name, flags); in open_loop_on_busy()
60 const char *name = in rtc_xopen() local
67 name = ""; /*else: we have rtc name, don't try other names */ in rtc_xopen()
73 if (!name[0]) in rtc_xopen()
76 *default_rtc = name; in rtc_xopen()
77 name += strlen(name) + 1; in rtc_xopen()
Dinode_hash.c25 char name[1]; member
51 return bucket->name; in is_in_ino_dev_hashtable()
59 void FAST_FUNC add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name) in add_to_ino_dev_hashtable() argument
64 if (!name) in add_to_ino_dev_hashtable()
65 name = ""; in add_to_ino_dev_hashtable()
66 bucket = xmalloc(sizeof(ino_dev_hashtable_bucket_t) + strlen(name)); in add_to_ino_dev_hashtable()
70 strcpy(bucket->name, name); in add_to_ino_dev_hashtable()
/busybox-1.35.0/scripts/kconfig/
Dconfdata.c49 char *dst, name[SYMBOL_MAXLENGTH]; in conf_expand_value() local
52 dst = name; in conf_expand_value()
56 dst = name; in conf_expand_value()
60 sym = sym_lookup(name, 0); in conf_expand_value()
74 char *env, *name; in conf_get_default_confname() local
76 name = conf_expand_value(conf_defname); in conf_get_default_confname()
79 fullname = realloc(fullname, strlen(env) + strlen(name) + 2); in conf_get_default_confname()
80 sprintf(fullname, "%s/%s", env, name); in conf_get_default_confname()
84 return name; in conf_get_default_confname()
87 int conf_read_simple(const char *name) in conf_read_simple() argument
[all …]
Dutil.c12 struct file *file_lookup(const char *name) in file_lookup() argument
17 if (!strcmp(name, file->name)) in file_lookup()
23 file->name = strdup(name); in file_lookup()
30 int file_write_dep(const char *name) in file_write_dep() argument
35 if (!name) in file_write_dep()
36 name = ".kconfig.d"; in file_write_dep()
43 fprintf(out, "\t%s \\\n", file->name); in file_write_dep()
45 fprintf(out, "\t%s\n", file->name); in file_write_dep()
55 rename("..config.tmp", name); in file_write_dep()
Dkconfig_load.c7 #define P(name,type,arg) type (*name ## _p) arg argument
25 #define P(name,type,arg) \ in kconfig_load() argument
27 name ## _p = dlsym(handle, #name); \ in kconfig_load()
/busybox-1.35.0/
Dsize_single_applets.sh55 | while read app name; do
59 file=`grep -l "bool \"$name[\" ]" $(find -name '*.c') | xargs`
61 test "$file" || file=`grep -l "bool \"$name[\" ]" $(find -name 'Config.*') | xargs`
71 echo -n "sed 's/bool \"$name"'[" ](*[0-9tinykbytes .]*)*"*$/'
73 echo -n "bool \"$name (${sz_kb} kb)\""
75 echo -n "bool \"$name (${sz_kb} kb)\""
77 echo -n "bool \"$name ($sz_kb.${sz_f} kb)\""
79 echo -n "bool \"$name ($sz bytes)\""
81 echo -n "bool \"$name (tiny)\""
/busybox-1.35.0/scripts/
Dfix_ws.sh19 | while read name; do
38 echo "Formatting: $name" >&2
39 cat "$name" \
51 echo "Makefile: $name" >&2
52 cat "$name" \
61 echo "Removing trailing whitespace: $name" >&2
62 cat "$name" \
69 cat "$temp" >"$name"
Dfind_stray_common_vars6 find ! -path './scripts/*' -a ! -name built-in.o -a -name '*.o' \
7 | while read name; do
8 b=`basename "$name"`
9 nm "$name" | sed "s/^/$b: /"
Dbloat-o-meter59 num, value, size, typ, bind, vis, ndx, name = l.split()
62 if "." in name: name = "static." + name.split(".")[0]
66 alias[(value, size)] = {"name" : name}
68 sym[name] = {"addr" : value, "size": size}
96 for name in iter(old.keys()):
97 if name in new:
98 common[name] = 1
100 for name in old:
101 if name not in common:
103 sz = old[name]["size"]
[all …]
Dfind_bad_common_bufsiz10 find -name '*.c' \
11 | while read name; do
12 grep -Hc bb_common_bufsiz1 "$name"
Dmkdiff_obj_bloat9 find -name '*.o' -o -name '*.os' # -o -name '*.so'
13 find -name '*.o' -o -name '*.os' # -o -name '*.so'
/busybox-1.35.0/loginutils/
Dchpasswd.c52 char *name; in chpasswd_main() local
69 while ((name = xmalloc_fgetline(stdin)) != NULL) { in chpasswd_main()
74 pass = strchr(name, ':'); in chpasswd_main()
79 xuname2uid(name); /* dies if there is no such user */ in chpasswd_main()
97 rc = update_passwd(bb_path_shadow_file, name, pass, NULL); in chpasswd_main()
103 rc = update_passwd(bb_path_passwd_file, name, pass, NULL); in chpasswd_main()
107 bb_error_msg_and_die("an error occurred updating password for %s", name); in chpasswd_main()
109 bb_info_msg("password for '%s' changed", name); in chpasswd_main()
111 free(name); in chpasswd_main()
Ddeluser.c56 char *name; in deluser_main() local
81 name = argv[1]; in deluser_main()
89 member = name; in deluser_main()
90 name = argv[2]; in deluser_main()
98 pw = xgetpwnam(name); /* bail out if USER is wrong */ in deluser_main()
115 gr = getgrnam(name); in deluser_main()
119 gr = xgetgrnam(name); /* bail out if GROUP is wrong */ in deluser_main()
128 pw->pw_name, name); in deluser_main()
139 if (update_passwd(pfile, name, NULL, member) == -1) in deluser_main()
149 if (update_passwd(bb_path_group_file, NULL, NULL, name) == -1) in deluser_main()
/busybox-1.35.0/coreutils/
Duname.c105 struct utsname name; member
114 offsetof(uname_info_t, name.sysname), /* -s */
115 offsetof(uname_info_t, name.nodename), /* -n */
116 offsetof(uname_info_t, name.release), /* -r */
117 offsetof(uname_info_t, name.version), /* -v */
118 offsetof(uname_info_t, name.machine), /* -m */
163 uname(&uname_info.name); /* never fails */ in uname_main()
169 strcpy(uname_info.name.machine, "sparc"); in uname_main()
174 puts(uname_info.name.machine); in uname_main()
186 strcpy(uname_info.processor, uname_info.name.machine); in uname_main()
[all …]
Dtac.c42 char **name; in tac_main() local
66 name = argv; in tac_main()
67 while (*name) in tac_main()
68 name++; in tac_main()
73 name--; in tac_main()
74 f = fopen_or_warn_stdin(*name); in tac_main()
101 bb_simple_perror_msg(*name); in tac_main()
104 } while (name != argv); in tac_main()
/busybox-1.35.0/e2fsprogs/
Dlsattr.c47 static void list_attributes(const char *name) in list_attributes() argument
57 fd = open_or_warn(name, O_RDONLY | O_NONBLOCK | O_NOCTTY | O_NOFOLLOW); in list_attributes()
85 printf("%-28s ", name); in list_attributes()
90 printf(" %s\n", name); in list_attributes()
95 bb_perror_msg("reading %s", name); in list_attributes()
129 static void lsattr_args(const char *name) in lsattr_args() argument
133 if (lstat(name, &st) == -1) { in lsattr_args()
134 bb_perror_msg("can't stat '%s'", name); in lsattr_args()
136 iterate_on_dir(name, lsattr_dir_proc, NULL); in lsattr_args()
138 list_attributes(name); in lsattr_args()
/busybox-1.35.0/shell/hush_test/
Drun-all65 name="${x%%.tests}"
66 test -f "$name.right" || continue
70 "$THIS_SH" "./$x" >"$name.xx" 2>&1
75 "$name.xx"
77 diff -u "$name.xx" "$name.right" >"$TOPDIR/$noslash-$x.fail" \
78 && rm -f "$name.xx" "$TOPDIR/$noslash-$x.fail"
/busybox-1.35.0/miscutils/
Dsetfattr.c33 const char *name; in setfattr_main() local
46 , &name, &name, &value in setfattr_main()
54 r = ((opt & OPT_h) ? lremovexattr : removexattr)(*argv, name); in setfattr_main()
57 *argv, name, in setfattr_main()
/busybox-1.35.0/archival/libarchive/
Dget_header_ar.c67 if (ar.formatted.name[0] == '/') { in get_header_ar()
68 if (ar.formatted.name[1] == ' ') { in get_header_ar()
75 if (ar.formatted.name[1] == '/') { in get_header_ar()
106 if (ar.formatted.name[0] == '/') { in get_header_ar()
111 long_offset = read_num(&ar.formatted.name[1], 10, in get_header_ar()
112 sizeof(ar.formatted.name) - 1); in get_header_ar()
116 typed->name = xstrdup(archive_handle->ar__long_names + long_offset); in get_header_ar()
121 typed->name = xstrndup(ar.formatted.name, 16); in get_header_ar()
124 typed->name[strcspn(typed->name, " /")] = '\0'; in get_header_ar()

12345678910