Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 25 of 38) sorted by relevance

12

/busybox-1.35.0/examples/var_service/dhcp_if/
Dconvert2ipconf31 if ! test "$mask"; then
34 mask=8;;
36 mask=16;;
39 mask=12;;
41 mask=12;;
43 mask=12;;
57 test "$ip" && test "$mask" \
58 && echo "ipmask[\$cfg]='$ip/$mask'"
/busybox-1.35.0/util-linux/
Dtaskset.c72 static char *from_mask(const ul *mask, unsigned sz_in_bytes) in from_mask() argument
77 ul v = *mask++; in from_mask()
94 static unsigned long long from_mask(ul *mask, unsigned sz_in_bytes UNUSED_PARAM) in from_mask() argument
96 return *mask; in from_mask()
103 unsigned long *mask = NULL; in get_aff() local
107 mask = xrealloc(mask, sz_in_bytes); in get_aff()
108 r = sched_getaffinity(pid, sz_in_bytes, (void*)mask); in get_aff()
118 return mask; in get_aff()
135 static void parse_cpulist(ul *mask, unsigned max, char *s) in parse_cpulist() argument
160 mask[bit / BITS_UL] |= (1UL << (bit & MASK_UL)); in parse_cpulist()
[all …]
Dfdisk_sun.c356 toggle_sunflags(int i, unsigned char mask) in toggle_sunflags() argument
358 if (sunlabel->infos[i].flags & mask) in toggle_sunflags()
359 sunlabel->infos[i].flags &= ~mask; in toggle_sunflags()
361 sunlabel->infos[i].flags |= mask; in toggle_sunflags()
/busybox-1.35.0/libbb/
Dxrealloc_vector.c37 int mask = 1 << (uint8_t)sizeof_and_shift; in xrealloc_vector_helper() local
39 if (!(idx & (mask - 1))) { in xrealloc_vector_helper()
41 vector = xrealloc(vector, sizeof_and_shift * (idx + mask + 1)); in xrealloc_vector_helper()
42 memset((char*)vector + (sizeof_and_shift * idx), 0, sizeof_and_shift * (mask + 1)); in xrealloc_vector_helper()
/busybox-1.35.0/networking/
Difconfig.c330 unsigned int mask; in ifconfig_main() local
334 unsigned char mask; in ifconfig_main() local
376 mask = N_MASK; in ifconfig_main()
379 mask = M_MASK; /* set the appropriate mask. */ in ifconfig_main()
383 mask &= op->flags; in ifconfig_main()
384 if (mask) /* set the mask and go. */ in ifconfig_main()
394 mask = op->arg_flags; in ifconfig_main()
398 if (mask & ARG_MASK) { in ifconfig_main()
399 mask = op->arg_flags; in ifconfig_main()
400 if (mask & A_NETMASK & did_flags) in ifconfig_main()
[all …]
Droute.c236 struct sockaddr mask; in INET_setroute() local
243 isnet = INET_resolve(netmask, (struct sockaddr_in *) &mask, 0); in INET_setroute()
247 rt->rt_genmask = full_mask(mask); in INET_setroute()
315 uint32_t mask = mask_in_addr(*rt); in INET_setroute() local
317 mask = ~ntohl(mask); in INET_setroute()
318 if ((rt->rt_flags & RTF_HOST) && mask != 0xffffffff) { in INET_setroute()
320 (unsigned int) mask); in INET_setroute()
322 if (mask & (mask + 1)) { in INET_setroute()
325 mask = ((struct sockaddr_in *) &rt->rt_dst)->sin_addr.s_addr; in INET_setroute()
326 if (mask & ~(uint32_t)mask_in_addr(*rt)) { in INET_setroute()
[all …]
Darp.c357 char *hwa, char *mask, char *dev) in arp_disp() argument
397 printf("netmask %s ", mask); in arp_disp()
416 char mask[128]; in arp_show() local
435 mask[0] = '-'; mask[1] = '\0'; in arp_show()
440 ip, &type, &flags, hwa, mask, dev); in arp_show()
469 arp_disp(hostname, ip, type, flags, hwa, mask, dev); in arp_show()
Dtls.h85 void xorbuf(void* buf, const void* mask, unsigned count) FAST_FUNC;
88 void xorbuf_aligned_AES_BLOCK_SIZE(void* buf, const void* mask) FAST_FUNC;
Dhttpd.c349 unsigned mask; member
640 unsigned mask; in scan_ip_mask() local
664 mask = 0; in scan_ip_mask()
666 mask = 0xffffffff; in scan_ip_mask()
667 mask >>= i; in scan_ip_mask()
674 *maskp = (uint32_t)(~mask); in scan_ip_mask()
828 if (scan_ip_mask(after_colon, &pip->ip, &pip->mask)) { in parse_conf()
831 pip->mask = 0; in parse_conf()
1936 (unsigned char)(cur->mask >> 24), in if_ip_denied_send_HTTP_FORBIDDEN_and_exit()
1937 (unsigned char)(cur->mask >> 16), in if_ip_denied_send_HTTP_FORBIDDEN_and_exit()
[all …]
Dtls_fe.c58 const byte mask = -condition;
62 dst[i] = zero[i] ^ (mask & (one[i] ^ zero[i]));
71 const byte mask = -condition;
75 dst[i] = dst[i] ^ (mask & (src[i] ^ dst[i]));
/busybox-1.35.0/coreutils/
Dnproc.c32 unsigned long mask[1024]; in nproc_main() local
55 if (sched_getaffinity(0, sizeof(mask), (void*)mask) == 0) { in nproc_main()
57 for (i = 0; i < ARRAY_SIZE(mask); i++) { in nproc_main()
58 unsigned long m = mask[i]; in nproc_main()
Dstty.c287 const uint8_t mask; member
289 const uint16_t mask; member
291 const tcflag_t mask; /* Other bits to turn off for this mode */ member
1021 unsigned long mask; in do_display() local
1072 mask = mode_info[i].mask ? mode_info[i].mask : mode_info[i].bits; in do_display()
1073 if ((*bitsp & mask) == mode_info[i].bits) { in do_display()
1105 val = *bitsp & ~((unsigned long)mode_info[i].mask); in sane_mode()
1123 tcflag_t val = *bitsp & ~info->mask; in set_mode()
/busybox-1.35.0/miscutils/
Dinotifyd.c99 unsigned mask; in inotifyd_main() local
127 mask = 0x0fff; // assuming we want all non-kernel events in inotifyd_main()
132 mask = 0; in inotifyd_main()
137 mask |= (1 << (found - mask_names)); in inotifyd_main()
141 n = inotify_add_watch(pfd.fd, path, mask); in inotifyd_main()
184 unsigned m = ie->mask & ((1 << MASK_BITS) - 1); in inotifyd_main()
208 if (ie->mask & 0x8000) { in inotifyd_main()
Di2c_tools.c577 int val, blen, mask, fd, status; in i2cset_main() local
632 mask = 0; in i2cset_main()
654 mask = xstrtou_range(opt_m_arg, 0, 0, in i2cset_main()
687 val = (val & mask) | (tmpval & ~mask); in i2cset_main()
694 mode == I2C_SMBUS_WORD_DATA ? 4 : 2, mask, in i2cset_main()
/busybox-1.35.0/networking/libiproute/
Dutils.c177 uint32_t mask = ntohl(netmask_pfx.data[0]); in get_prefix_1() local
178 uint32_t host = ~mask; in get_prefix_1()
184 for (plen = 0; mask; mask <<= 1) in get_prefix_1()
266 uint32_t mask; in inet_addr_match() local
271 mask = htonl((0xffffffff) << (0x20 - bits)); in inet_addr_match()
273 if ((w1 ^ w2) & mask) in inet_addr_match()
Diplink.c42 uint32_t mask; member
73 static void do_chflags(char *dev, uint32_t flags, uint32_t mask) in do_chflags() argument
81 if ((ifr.ifr_flags ^ flags) & mask) { in do_chflags()
82 ifr.ifr_flags &= ~mask; in do_chflags()
83 ifr.ifr_flags |= mask & flags; in do_chflags()
248 uint32_t mask = 0; in do_set() local
277 mask |= IFF_UP; in do_set()
280 mask |= IFF_UP; in do_set()
323 mask |= IFF_MULTICAST; in do_set()
331 mask |= IFF_NOARP; in do_set()
[all …]
Diprule.c123 uint32_t mark = 0, mask = 0; in print_rule() local
128 && (mask = *(uint32_t*)RTA_DATA(tb[FRA_FWMASK])) != 0xFFFFFFFF in print_rule()
130 printf("fwmark %#x/%#x ", mark, mask); in print_rule()
/busybox-1.35.0/include/
Dbb_e2fs_defs.h490 #define EXT2_HAS_COMPAT_FEATURE(sb,mask) \ argument
491 ( EXT2_SB(sb)->s_feature_compat & (mask) )
492 #define EXT2_HAS_RO_COMPAT_FEATURE(sb,mask) \ argument
493 ( EXT2_SB(sb)->s_feature_ro_compat & (mask) )
494 #define EXT2_HAS_INCOMPAT_FEATURE(sb,mask) \ argument
495 ( EXT2_SB(sb)->s_feature_incompat & (mask) )
/busybox-1.35.0/findutils/
Dfind.c1042 int mask = 0; in find_type() local
1045 mask = S_IFBLK; in find_type()
1047 mask = S_IFCHR; in find_type()
1049 mask = S_IFDIR; in find_type()
1051 mask = S_IFIFO; in find_type()
1053 mask = S_IFREG; in find_type()
1055 mask = S_IFLNK; in find_type()
1057 mask = S_IFSOCK; in find_type()
1059 if (mask == 0 || type[1] != '\0') in find_type()
1062 return mask; in find_type()
/busybox-1.35.0/networking/udhcp/
Ddhcpc.c154 static int mton(uint32_t mask) in mton() argument
157 mask = ntohl(mask); /* 111110000-like bit pattern */ in mton()
158 while (mask) { in mton()
160 mask <<= 1; in mton()
269 unsigned mask; in xmalloc_optname_optval() local
272 mask = *option++; in xmalloc_optname_optval()
273 if (mask > 32) in xmalloc_optname_optval()
279 bytes = (mask + 7) / 8; /* 0 -> 0, 1..8 -> 1, 9..16 -> 2 etc */ in xmalloc_optname_optval()
290 dest += sprintf(dest, "/%u ", mask); in xmalloc_optname_optval()
Dcommon.c675 unsigned mask; in udhcp_str2optset() local
680 buffer[0] = mask = bb_strtou(slash + 1, NULL, 10); in udhcp_str2optset()
682 if (!val || mask > 32 || errno) in udhcp_str2optset()
685 length = ((mask + 7) >> 3) + 5; in udhcp_str2optset()
/busybox-1.35.0/editors/
Dpatch_toybox.c110 mode_t mask; in xmkpath() local
120 mask = umask(0); in xmkpath()
122 umask(mask); in xmkpath()
/busybox-1.35.0/archival/libarchive/unxz/
Dxz_dec_bcj.c217 uint32_t mask; in bcj_ia64() local
226 mask = branch_table[buf[i] & 0x1F]; in bcj_ia64()
228 if (((mask >> slot) & 1) == 0) in bcj_ia64()
/busybox-1.35.0/shell/
DREADME.job6 get current signal mask
48 get signal mask
50 get signal mask
100 read signal mask
241 sigreturn() = ? (mask now [])
Dhush.c7283 static void switch_off_special_sigs(unsigned mask) in switch_off_special_sigs() argument
7286 while ((mask >>= 1) != 0) { in switch_off_special_sigs()
7288 if (!(mask & 1)) in switch_off_special_sigs()
7316 unsigned mask; in reset_traps_to_defaults()
7323 mask = (G.special_sig_mask & SPECIAL_INTERACTIVE_SIGS) | G_fatal_sig_mask; in reset_traps_to_defaults()
7324 if (!G_traps && !mask) in reset_traps_to_defaults()
7328 switch_off_special_sigs(mask); in reset_traps_to_defaults()
10059 static void install_sighandlers(unsigned mask) in install_sighandlers() argument
10063 while ((mask >>= 1) != 0) { in install_sighandlers()
10065 if (!(mask & 1)) in install_sighandlers()
[all …]

12