Home
last modified time | relevance | path

Searched refs:m (Results 1 – 25 of 78) sorted by relevance

1234

/busybox-1.35.0/util-linux/
Dumount.c106 } *mtl, *m; in umount_main() local
122 m = mtl = NULL; in umount_main()
136 m = xzalloc(sizeof(*m)); in umount_main()
137 m->next = mtl; in umount_main()
138 m->device = xstrdup(me.mnt_fsname); in umount_main()
139 m->dir = xstrdup(me.mnt_dir); in umount_main()
140 mtl = m; in umount_main()
150 m = NULL; in umount_main()
160 if (m) in umount_main()
161 path = xstrdup(m->dir); in umount_main()
[all …]
Dmesg.c51 mode_t m; in mesg_main() local
75 m = (c == 'y') ? sb.st_mode | S_IWGRP_OR_S_IWOTH in mesg_main()
77 if (fchmod(STDIN_FILENO, m) != 0) in mesg_main()
Dswaponoff.c233 struct mntent *m; in do_em_all_in_fstab() local
237 while ((m = getmntent(f)) != NULL) { in do_em_all_in_fstab()
238 if (strcmp(m->mnt_type, MNTTYPE_SWAP) == 0) { in do_em_all_in_fstab()
242 if (do_swapoff || hasmntopt(m, MNTOPT_NOAUTO) == NULL) { in do_em_all_in_fstab()
247 char *p = hasmntopt(m, "discard"); in do_em_all_in_fstab()
255 char *p = hasmntopt(m, "pri"); in do_em_all_in_fstab()
260 err |= swap_enable_disable(m->mnt_fsname); in do_em_all_in_fstab()
/busybox-1.35.0/modutils/
Ddepmod.c88 module_entry *m; in order_dep_list() local
92 m = moddb_get(modules, n->data); in order_dep_list()
93 if (m == NULL) in order_dep_list()
97 m->dnext->dprev = m->dprev; in order_dep_list()
98 m->dprev->dnext = m->dnext; in order_dep_list()
101 m->dnext = start; in order_dep_list()
102 m->dprev = start->dprev; in order_dep_list()
103 start->dprev->dnext = m; in order_dep_list()
104 start->dprev = m; in order_dep_list()
107 order_dep_list(modules, start, m->deps); in order_dep_list()
[all …]
Dmodprobe.c216 struct module_entry *m; in add_probe() local
218 m = get_or_add_modentry(name); in add_probe()
220 && (m->flags & (MODULE_FLAG_LOADED | MODULE_FLAG_BUILTIN)) in add_probe()
227 m->probed_name = name; in add_probe()
228 m->flags |= MODULE_FLAG_NEED_DEPS; in add_probe()
229 llist_add_to_end(&G.probes, m); in add_probe()
232 && is_prefixed_with(m->modname, "symbol:") in add_probe()
244 struct module_entry *m; in config_file_action() local
290 m = (struct module_entry *) l->data; in config_file_action()
291 if (fnmatch(wildcard, m->modname, 0) != 0) in config_file_action()
[all …]
/busybox-1.35.0/scripts/
DMakefile.lib36 multi-used-y := $(sort $(foreach m,$(obj-y), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y))), $(m))))
37 multi-used-m := $(sort $(foreach m,$(obj-m), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y))), $(m))))
43 multi-objs-y := $(foreach m, $(multi-used-y), $($(m:.o=-objs)) $($(m:.o=-y)))
44 multi-objs-m := $(foreach m, $(multi-used-m), $($(m:.o=-objs)) $($(m:.o=-y)))
55 …y := $(foreach m, $(filter-out $(subdir-obj-y), $(obj-y)), $(if $(strip $($(m:.o=-objs)) $($(m:.o=…
56 real-objs-m := $(foreach m, $(obj-m), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y))),$($(m:.o=-objs))…
128 modname-multi = $(sort $(foreach m,$(multi-used),\
129 $(if $(filter $(subst $(obj)/,,$*.o), $($(m:.o=-objs)) $($(m:.o=-y))),$(m:.o=))))
DMakefile.host42 host-csingle := $(foreach m,$(__hostprogs),$(if $($(m)-objs),,$(m)))
45 host-cmulti := $(foreach m,$(__hostprogs),\
46 $(if $($(m)-cxxobjs),,$(if $($(m)-objs),$(m))))
49 host-cobjs := $(sort $(foreach m,$(__hostprogs),$($(m)-objs)))
54 host-cxxmulti := $(foreach m,$(__hostprogs),$(if $($(m)-cxxobjs),$(m)))
57 host-cxxobjs := $(sort $(foreach m,$(host-cxxmulti),$($(m)-cxxobjs)))
66 host-cshobjs := $(sort $(foreach m,$(host-cshlib),$($(m:.so=-objs))))
/busybox-1.35.0/coreutils/
Dbasename.c65 size_t m; in basename_main() local
69 m = strlen(s); in basename_main()
79 if ((m > n) && (strcmp(s + m - n, suffix) == 0)) { in basename_main()
80 m -= n; in basename_main()
85 s[m++] = '\n'; in basename_main()
87 if (full_write(STDOUT_FILENO, s, m) != (ssize_t)m) in basename_main()
Dstat.c259 static void FAST_FUNC print_statfs(char *pformat, const char m,
264 if (m == 'n') {
266 } else if (m == 'i') {
269 } else if (m == 'l') {
272 } else if (m == 't') {
275 } else if (m == 'T') {
277 } else if (m == 'b') {
280 } else if (m == 'f') {
283 } else if (m == 'a') {
286 } else if (m == 's' || m == 'S') {
[all …]
Dnproc.c58 unsigned long m = mask[i]; in nproc_main() local
59 while (m) { in nproc_main()
60 if (m & 1) in nproc_main()
62 m >>= 1; in nproc_main()
/busybox-1.35.0/scripts/basic/
Dfixdep.c205 void use_config(char *m, int slen) in use_config() argument
210 if (is_defined_config(m, slen)) in use_config()
213 define_config(m, slen); in use_config()
215 memcpy(s, m, slen); s[slen] = 0; in use_config()
316 char *m = map; in parse_dep_file() local
317 char *end = m + len; in parse_dep_file()
321 p = memchr(m, ':', len); in parse_dep_file()
326 memcpy(s, m, p-m); s[p-m] = 0; in parse_dep_file()
328 m = p+1; in parse_dep_file()
332 while (m < end) { in parse_dep_file()
[all …]
/busybox-1.35.0/console-tools/
Dkbd_mode.c62 int m; in kbd_mode_main() local
64 xioctl(fd, KDGKBMODE, &m); in kbd_mode_main()
65 if (m == K_RAW) in kbd_mode_main()
67 else if (m == K_XLATE) in kbd_mode_main()
69 else if (m == K_MEDIUMRAW) in kbd_mode_main()
71 else if (m == K_UNICODE) in kbd_mode_main()
73 else if (m == 4 /*K_OFF*/) /* kbd-2.0.3 does not show this mode, says "unknown" */ in kbd_mode_main()
/busybox-1.35.0/libbb/
Dmtab.c18 struct mntent *m; in erase_mtab() local
30 while ((m = getmntent(mountTable)) != 0) { in erase_mtab()
32 entries[count].mnt_fsname = xstrdup(m->mnt_fsname); in erase_mtab()
33 entries[count].mnt_dir = xstrdup(m->mnt_dir); in erase_mtab()
34 entries[count].mnt_type = xstrdup(m->mnt_type); in erase_mtab()
35 entries[count].mnt_opts = xstrdup(m->mnt_opts); in erase_mtab()
36 entries[count].mnt_freq = m->mnt_freq; in erase_mtab()
37 entries[count].mnt_passno = m->mnt_passno; in erase_mtab()
Ddevice_open.c14 int m, f, fd; in device_open() local
16 m = mode | O_NONBLOCK; in device_open()
21 fd = open(device, m, 0600); in device_open()
28 if (m != mode) in device_open()
Dmode_string.c84 int i, j, k, m; in bb_mode_string() local
88 m = 0400; in bb_mode_string()
93 if (mode & m) { in bb_mode_string()
97 m >>= 1; in bb_mode_string()
/busybox-1.35.0/scripts/kconfig/
Dkxgettext.c118 struct message *m = message__list; in mesage__find() local
120 while (m != NULL) { in mesage__find()
121 if (strcmp(m->msg, msg) == 0) in mesage__find()
123 m = m->next; in mesage__find()
126 return m; in mesage__find()
149 struct message *m = mesage__find(escaped); in message__add() local
151 if (m != NULL) in message__add()
152 rc = message__add_file_line(m, file, lineno); in message__add()
154 m = message__new(escaped, option, file, lineno); in message__add()
156 if (m != NULL) { in message__add()
[all …]
/busybox-1.35.0/shell/hush_test/hush-misc/
Dcase1.tests28 case m in m) echo OK_sub1;; esac
29 case m in (m) echo OK_sub2;; esac
30 (case m in m) echo OK_sub3;; esac)
31 (case m in (m) echo OK_sub4;; esac)
33 case m in m) echo OK_sub5;; esac
36 case m in (m) echo OK_sub6;; esac
/busybox-1.35.0/shell/ash_test/ash-misc/
Dcase1.tests28 case m in m) echo OK_sub1;; esac
29 case m in (m) echo OK_sub2;; esac
30 (case m in m) echo OK_sub3;; esac)
31 (case m in (m) echo OK_sub4;; esac)
33 case m in m) echo OK_sub5;; esac
36 case m in (m) echo OK_sub6;; esac
/busybox-1.35.0/testsuite/tee/
Dtee-appends-input1 echo i\'m a little teapot >foo
3 echo i\'m a little teapot >>foo
4 echo i\'m a little teapot | busybox tee -a bar >/dev/null
Dtee-tees-input1 echo i\'m a little teapot >foo
2 echo i\'m a little teapot | busybox tee bar >baz
/busybox-1.35.0/networking/
Ddnsd.c119 struct dns_entry *m, *conf_data; in parse_conf_file() local
139 m = xzalloc(sizeof(*m) + strlen(token[0]) + 1); in parse_conf_file()
141 *nextp = m; in parse_conf_file()
142 nextp = &m->next; in parse_conf_file()
144 m->name[0] = '.'; in parse_conf_file()
145 strcpy(m->name + 1, token[0]); in parse_conf_file()
146 undot(m->name); in parse_conf_file()
147 m->ip = ip.s_addr; /* in network order */ in parse_conf_file()
148 v32 = ntohl(m->ip); in parse_conf_file()
150 sprintf(m->rip, ".%u.%u.%u.%u", in parse_conf_file()
[all …]
/busybox-1.35.0/testsuite/date/
Ddate-format-works3 test x"01/01/99" = x"`busybox date -d 1999.01.01-11:22:33 '+%d/%m/%y'`"
4 test x"22/11/00" = x"`busybox date -d 2000.11.22-11:22:33 '+%d/%m/%y'`"
Ddate-works-120 # (2) implement d/m[/y] hh:mm[:ss] fmt in date applet
63 m=$(eval $lcbbd +%M) # minute, zero padded
123 m=${m#0}
124 [ $m -ge 0 ] && [ $m -le 59 ] || res=BAD
/busybox-1.35.0/miscutils/
Dinotifyd.c184 unsigned m = ie->mask & ((1 << MASK_BITS) - 1); in inotifyd_main() local
185 if (m) { in inotifyd_main()
188 for (i = 0; i < MASK_BITS; ++i, m >>= 1) { in inotifyd_main()
189 if ((m & 1) && (mask_names[i] != '\0')) in inotifyd_main()
/busybox-1.35.0/networking/udhcp/
Ddumpleases.c105 unsigned d, h, m; in dumpleases_main() local
109 m = expires / 60; expires %= 60; in dumpleases_main()
112 printf("%02u:%02u:%02u\n", h, m, (unsigned)expires); in dumpleases_main()

1234