/busybox-1.35.0/networking/libiproute/ |
D | rt_names.c | 37 unsigned id = bb_strtou(token[0], NULL, 0); in rtnl_tab_initialize() local 38 if (id > RT_TABLE_MAX) { in rtnl_tab_initialize() 43 tab[id] = xstrdup(token[1]); in rtnl_tab_initialize() 48 static int rtnl_a2n(rtnl_tab_t *tab, uint32_t *id, const char *arg, int base) in rtnl_a2n() argument 53 *id = tab->cached_result; in rtnl_a2n() 63 *id = i; in rtnl_a2n() 71 *id = i; in rtnl_a2n() 104 const char* FAST_FUNC rtnl_rtprot_n2a(int id) 106 if (id < 0 || id > RT_TABLE_MAX) { 107 return itoa(id); [all …]
|
D | rt_names.h | 7 extern const char* rtnl_rtprot_n2a(int id) FAST_FUNC; 8 extern const char* rtnl_rtscope_n2a(int id) FAST_FUNC; 9 extern const char* rtnl_rtrealm_n2a(int id) FAST_FUNC; 10 extern const char* rtnl_dsfield_n2a(int id) FAST_FUNC; 11 extern const char* rtnl_rttable_n2a(int id) FAST_FUNC; 12 extern int rtnl_rtprot_a2n(uint32_t *id, char *arg) FAST_FUNC; 13 extern int rtnl_rtscope_a2n(uint32_t *id, char *arg) FAST_FUNC; 14 extern int rtnl_rtrealm_a2n(uint32_t *id, char *arg) FAST_FUNC; 15 extern int rtnl_dsfield_a2n(uint32_t *id, char *arg) FAST_FUNC; 16 extern int rtnl_rttable_a2n(uint32_t *id, char *arg) FAST_FUNC; [all …]
|
/busybox-1.35.0/util-linux/volume_id/ |
D | util.c | 91 void volume_id_set_usage(struct volume_id *id, enum volume_id_usage usage_id) in volume_id_set_usage() argument 93 id->usage_id = usage_id; in volume_id_set_usage() 94 id->usage = usage_to_string(usage_id); in volume_id_set_usage() 97 void volume_id_set_label_raw(struct volume_id *id, const uint8_t *buf, size_t count) in volume_id_set_label_raw() argument 99 memcpy(id->label_raw, buf, count); in volume_id_set_label_raw() 100 id->label_raw_len = count; in volume_id_set_label_raw() 115 void volume_id_set_label_string(struct volume_id *id, const uint8_t *buf, size_t count) in volume_id_set_label_string() argument 119 memcpy(id->label, buf, count); in volume_id_set_label_string() 122 i = strnlen(id->label, count); in volume_id_set_label_string() 124 if (!isspace(id->label[i])) in volume_id_set_label_string() [all …]
|
D | udf.c | 31 uint16_t id; member 58 uint8_t id[5]; member 64 int FAST_FUNC volume_id_probe_udf(struct volume_id *id /*,uint64_t off*/) in volume_id_probe_udf() argument 78 vsd = volume_id_get_buffer(id, off + UDF_VSD_OFFSET, 0x200); in volume_id_probe_udf() 82 if (memcmp(vsd->id, "NSR02", 5) == 0) in volume_id_probe_udf() 84 if (memcmp(vsd->id, "NSR03", 5) == 0) in volume_id_probe_udf() 86 if (memcmp(vsd->id, "BEA01", 5) == 0) in volume_id_probe_udf() 88 if (memcmp(vsd->id, "BOOT2", 5) == 0) in volume_id_probe_udf() 90 if (memcmp(vsd->id, "CD001", 5) == 0) in volume_id_probe_udf() 92 if (memcmp(vsd->id, "CDW02", 5) == 0) in volume_id_probe_udf() [all …]
|
D | volume_id_internal.h | 89 int FAST_FUNC volume_id_probe_all(struct volume_id *id, /*uint64_t off,*/ uint64_t size); 90 void FAST_FUNC free_volume_id(struct volume_id *id); 139 void volume_id_set_label_string(struct volume_id *id, const uint8_t *buf, size_t count); 140 void volume_id_set_label_unicode16(struct volume_id *id, const uint8_t *buf, enum endian endianess,… 141 void volume_id_set_uuid(struct volume_id *id, const uint8_t *buf, enum uuid_format format); 142 void *volume_id_get_buffer(struct volume_id *id, uint64_t off, size_t len); 143 void volume_id_free_buffer(struct volume_id *id); 155 int FAST_FUNC volume_id_probe_linux_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size); 172 int FAST_FUNC volume_id_probe_bcache(struct volume_id *id /*,uint64_t off*/); 174 int FAST_FUNC volume_id_probe_btrfs(struct volume_id *id /*,uint64_t off*/); [all …]
|
D | volume_id.c | 49 typedef int FAST_FUNC (*raid_probe_fptr)(struct volume_id *id, /*uint64_t off,*/ uint64_t size); 50 typedef int FAST_FUNC (*probe_fptr)(struct volume_id *id /*, uint64_t off*/); 181 int FAST_FUNC volume_id_probe_all(struct volume_id *id, /*uint64_t off,*/ uint64_t size) in volume_id_probe_all() argument 188 if (raid1[i](id, /*off,*/ size) == 0) in volume_id_probe_all() 190 if (id->error) in volume_id_probe_all() 196 if (raid2[i](id /*,off*/) == 0) in volume_id_probe_all() 198 if (id->error) in volume_id_probe_all() 204 if (fs1[i](id /*,off*/) == 0) in volume_id_probe_all() 206 if (id->error) in volume_id_probe_all() 211 volume_id_get_buffer(id, 0, SB_BUFFER_SIZE); in volume_id_probe_all() [all …]
|
D | ext.c | 32 int FAST_FUNC volume_id_probe_ext(struct volume_id *id /*,uint64_t off*/) in volume_id_probe_ext() argument 39 es = volume_id_get_buffer(id, off + EXT_SUPERBLOCK_OFFSET, 0x200); in volume_id_probe_ext() 50 volume_id_set_label_string(id, (void*)es->s_volume_name, 16); in volume_id_probe_ext() 51 volume_id_set_uuid(id, es->s_uuid, UUID_DCE); in volume_id_probe_ext() 52 dbg("ext: label '%s' uuid '%s'", id->label, id->uuid); in volume_id_probe_ext() 58 id->type = "ext4"; in volume_id_probe_ext() 61 id->type = "ext3"; in volume_id_probe_ext() 63 id->type = "ext2"; in volume_id_probe_ext()
|
D | unused_lvm.c | 30 uint8_t id[2]; member 34 uint8_t id[8]; member 43 int FAST_FUNC volume_id_probe_lvm1(struct volume_id *id, uint64_t off) in volume_id_probe_lvm1() argument 49 lvm = volume_id_get_buffer(id, off + LVM1_SB_OFF, 0x800); in volume_id_probe_lvm1() 53 if (lvm->id[0] != 'H' || lvm->id[1] != 'M') in volume_id_probe_lvm1() 65 int FAST_FUNC volume_id_probe_lvm2(struct volume_id *id, uint64_t off) in volume_id_probe_lvm2() argument 73 buf = volume_id_get_buffer(id, off, LVM2LABEL_SCAN_SECTORS * 0x200); in volume_id_probe_lvm2() 81 if (memcmp(lvm->id, LVM2_LABEL_ID, 8) == 0) in volume_id_probe_lvm2()
|
D | reiserfs.c | 57 int FAST_FUNC volume_id_probe_reiserfs(struct volume_id *id /*,uint64_t off*/) in volume_id_probe_reiserfs() argument 65 rs = volume_id_get_buffer(id, off + REISERFS_SUPERBLOCK_OFFSET, 0x200); in volume_id_probe_reiserfs() 89 volume_id_set_label_string(id, rs4->label, 16); in volume_id_probe_reiserfs() 90 volume_id_set_uuid(id, rs4->uuid, UUID_DCE); in volume_id_probe_reiserfs() 91 dbg("reiserfs: ReIsEr4, label '%s' uuid '%s'", id->label, id->uuid); in volume_id_probe_reiserfs() 95 rs = volume_id_get_buffer(id, off + REISERFS1_SUPERBLOCK_OFFSET, 0x200); in volume_id_probe_reiserfs() 110 volume_id_set_label_string(id, rs->label, 16); in volume_id_probe_reiserfs() 111 volume_id_set_uuid(id, rs->uuid, UUID_DCE); in volume_id_probe_reiserfs() 112 dbg("reiserfs: label '%s' uuid '%s'", id->label, id->uuid); in volume_id_probe_reiserfs() 116 IF_FEATURE_BLKID_TYPE(id->type = "reiserfs";) in volume_id_probe_reiserfs()
|
D | linux_swap.c | 40 int FAST_FUNC volume_id_probe_linux_swap(struct volume_id *id /*,uint64_t off*/) in volume_id_probe_linux_swap() argument 51 buf = volume_id_get_buffer(id, off + page-10, 10); in volume_id_probe_linux_swap() 66 sw = volume_id_get_buffer(id, off, sizeof(struct swap_header_v1_2)); in volume_id_probe_linux_swap() 72 volume_id_set_label_string(id, sw->volume_name, 16); in volume_id_probe_linux_swap() 73 volume_id_set_uuid(id, sw->uuid, UUID_DCE); in volume_id_probe_linux_swap() 81 IF_FEATURE_BLKID_TYPE(id->type = "swap";) in volume_id_probe_linux_swap()
|
D | iso9660.c | 52 uint8_t id[4]; member 56 int FAST_FUNC volume_id_probe_iso9660(struct volume_id *id /*,uint64_t off*/) in volume_id_probe_iso9660() argument 65 buf = volume_id_get_buffer(id, off + ISO_SUPERBLOCK_OFFSET, 0x200); in volume_id_probe_iso9660() 77 volume_id_set_label_string(id, is->volume_id, 32); in volume_id_probe_iso9660() 84 is = volume_id_get_buffer(id, off + vd_offset, 0x200); in volume_id_probe_iso9660() 97 if (memcmp(id->label, svd_label, 16) == 0) { in volume_id_probe_iso9660() 103 volume_id_set_label_string(id, svd_label, 32); in volume_id_probe_iso9660() 114 if (memcmp(hs->id, "CDROM", 5) == 0) { in volume_id_probe_iso9660() 123 IF_FEATURE_BLKID_TYPE(id->type = "iso9660";) in volume_id_probe_iso9660()
|
D | unused_msdos.c | 56 int FAST_FUNC volume_id_probe_msdos_part_table(struct volume_id *id, uint64_t off) in volume_id_probe_msdos_part_table() argument 72 buf = volume_id_get_buffer(id, off, 0x200); in volume_id_probe_msdos_part_table() 94 if (id->partitions != NULL) in volume_id_probe_msdos_part_table() 95 free(id->partitions); in volume_id_probe_msdos_part_table() 96 id->partitions = xzalloc(VOLUME_ID_PARTITIONS_MAX * in volume_id_probe_msdos_part_table() 106 p = &id->partitions[i]; in volume_id_probe_msdos_part_table() 128 id->partition_count = i+1; in volume_id_probe_msdos_part_table() 142 buf = volume_id_get_buffer(id, current, 0x200); in volume_id_probe_msdos_part_table() 171 if (id->partition_count < 4) in volume_id_probe_msdos_part_table() 172 id->partition_count = 4; in volume_id_probe_msdos_part_table() [all …]
|
D | jfs.c | 44 int FAST_FUNC volume_id_probe_jfs(struct volume_id *id /*,uint64_t off*/) in volume_id_probe_jfs() argument 51 js = volume_id_get_buffer(id, off + JFS_SUPERBLOCK_OFFSET, 0x200); in volume_id_probe_jfs() 59 volume_id_set_label_string(id, js->label, 16); in volume_id_probe_jfs() 60 volume_id_set_uuid(id, js->uuid, UUID_DCE); in volume_id_probe_jfs() 63 IF_FEATURE_BLKID_TYPE(id->type = "jfs";) in volume_id_probe_jfs()
|
D | xfs.c | 44 int FAST_FUNC volume_id_probe_xfs(struct volume_id *id /*,uint64_t off*/) in volume_id_probe_xfs() argument 51 xs = volume_id_get_buffer(id, off, 0x200); in volume_id_probe_xfs() 59 volume_id_set_label_string(id, xs->fname, 12); in volume_id_probe_xfs() 60 volume_id_set_uuid(id, xs->uuid, UUID_DCE); in volume_id_probe_xfs() 63 IF_FEATURE_BLKID_TYPE(id->type = "xfs";) in volume_id_probe_xfs()
|
D | unused_mac.c | 45 int FAST_FUNC volume_id_probe_mac_partition_map(struct volume_id *id, uint64_t off) in volume_id_probe_mac_partition_map() argument 53 buf = volume_id_get_buffer(id, off, 0x200); in volume_id_probe_mac_partition_map() 77 buf = volume_id_get_buffer(id, off + bsize, 0x200); in volume_id_probe_mac_partition_map() 88 if (id->partitions != NULL) in volume_id_probe_mac_partition_map() 89 free(id->partitions); in volume_id_probe_mac_partition_map() 90 id->partitions = xzalloc(part_count * sizeof(struct volume_id_partition)); in volume_id_probe_mac_partition_map() 92 id->partition_count = part_count; in volume_id_probe_mac_partition_map() 98 buf = volume_id_get_buffer(id, off + ((i+1) * bsize), 0x200); in volume_id_probe_mac_partition_map()
|
D | romfs.c | 36 int FAST_FUNC volume_id_probe_romfs(struct volume_id *id /*,uint64_t off*/) in volume_id_probe_romfs() argument 43 rfs = volume_id_get_buffer(id, off, 0x200); in volume_id_probe_romfs() 52 volume_id_set_label_string(id, rfs->name, len); in volume_id_probe_romfs() 56 IF_FEATURE_BLKID_TYPE(id->type = "romfs";) in volume_id_probe_romfs()
|
D | erofs.c | 45 int FAST_FUNC volume_id_probe_erofs(struct volume_id *id /*,uint64_t off*/) in volume_id_probe_erofs() argument 52 sb = volume_id_get_buffer(id, EROFS_SUPER_OFFSET, sizeof(*sb)); in volume_id_probe_erofs() 59 IF_FEATURE_BLKID_TYPE(id->type = "erofs"); in volume_id_probe_erofs() 61 volume_id_set_label_string(id, sb->volume_name, in volume_id_probe_erofs() 64 volume_id_set_uuid(id, sb->uuid, UUID_DCE); in volume_id_probe_erofs()
|
D | cramfs.c | 44 int FAST_FUNC volume_id_probe_cramfs(struct volume_id *id /*,uint64_t off*/) in volume_id_probe_cramfs() argument 51 cs = volume_id_get_buffer(id, off, 0x200); in volume_id_probe_cramfs() 57 volume_id_set_label_string(id, cs->name, 16); in volume_id_probe_cramfs() 60 IF_FEATURE_BLKID_TYPE(id->type = "cramfs";) in volume_id_probe_cramfs()
|
D | bcache.c | 89 int FAST_FUNC volume_id_probe_bcache(struct volume_id *id /*,uint64_t off*/) in volume_id_probe_bcache() argument 93 sb = volume_id_get_buffer(id, BCACHE_SB_OFF, sizeof(*sb)); in volume_id_probe_bcache() 100 volume_id_set_label_string(id, sb->label, SB_LABEL_SIZE); in volume_id_probe_bcache() 101 volume_id_set_uuid(id, sb->uuid, UUID_DCE); in volume_id_probe_bcache() 102 IF_FEATURE_BLKID_TYPE(id->type = "bcache";) in volume_id_probe_bcache()
|
D | exfat.c | 75 int FAST_FUNC volume_id_probe_exfat(struct volume_id *id /*,uint64_t off*/) in volume_id_probe_exfat() argument 87 sb = volume_id_get_buffer(id, EXFAT_SB_OFFSET, sizeof(*sb)); in volume_id_probe_exfat() 107 volume_id_set_uuid(id, sb->vol_serial_nr, UUID_DOS); in volume_id_probe_exfat() 115 de = volume_id_get_buffer(id, root_dir_off + (count * EXFAT_DIR_ENTRY_SZ), EXFAT_DIR_ENTRY_SZ); in volume_id_probe_exfat() 125 volume_id_set_label_unicode16(id, (uint8_t *)de->type.label.vol_label, in volume_id_probe_exfat() 131 volume_id_set_uuid(id, de->type.guid.vol_guid, UUID_DCE); in volume_id_probe_exfat() 138 IF_FEATURE_BLKID_TYPE(id->type = "exfat";) in volume_id_probe_exfat()
|
D | sysv.c | 91 int FAST_FUNC volume_id_probe_sysv(struct volume_id *id /*,uint64_t off*/) in volume_id_probe_sysv() argument 101 vs = volume_id_get_buffer(id, off + (boff * SYSV_SUPERBLOCK_BLOCK), 0x200); in volume_id_probe_sysv() 107 volume_id_set_label_string(id, vs->s_fname, 6); in volume_id_probe_sysv() 108 IF_FEATURE_BLKID_TYPE(id->type = "sysv"); in volume_id_probe_sysv() 114 xs = volume_id_get_buffer(id, off + (boff + XENIX_SUPERBLOCK_BLOCK), 0x200); in volume_id_probe_sysv() 120 volume_id_set_label_string(id, xs->s_fname, 6); in volume_id_probe_sysv() 121 IF_FEATURE_BLKID_TYPE(id->type = "xenix";) in volume_id_probe_sysv()
|
D | hfs.c | 36 uint8_t id[8]; member 140 static void FAST_FUNC hfs_set_uuid(struct volume_id *id, const uint8_t *hfs_id) in hfs_set_uuid() argument 158 volume_id_set_uuid(id, uuid, UUID_DCE); in hfs_set_uuid() 161 int FAST_FUNC volume_id_probe_hfs_hfsplus(struct volume_id *id /*,uint64_t off*/) in volume_id_probe_hfs_hfsplus() argument 189 buf = volume_id_get_buffer(id, off + HFS_SUPERBLOCK_OFFSET, 0x200); in volume_id_probe_hfs_hfsplus() 212 buf = volume_id_get_buffer(id, off + HFS_SUPERBLOCK_OFFSET, 0x200); in volume_id_probe_hfs_hfsplus() 220 volume_id_set_label_string(id, hfs->label, hfs->label_len) ; in volume_id_probe_hfs_hfsplus() 223 hfs_set_uuid(id, hfs->finder_info.id); in volume_id_probe_hfs_hfsplus() 225 IF_FEATURE_BLKID_TYPE(id->type = "hfs";) in volume_id_probe_hfs_hfsplus() 237 hfs_set_uuid(id, hfsplus->finder_info.id); in volume_id_probe_hfs_hfsplus() [all …]
|
D | f2fs.c | 66 int FAST_FUNC volume_id_probe_f2fs(struct volume_id *id /*,uint64_t off*/) in volume_id_probe_f2fs() argument 72 sb = volume_id_get_buffer(id, F2FS_SB1_OFFSET, sizeof(*sb)); in volume_id_probe_f2fs() 80 IF_FEATURE_BLKID_TYPE(id->type = "f2fs"); in volume_id_probe_f2fs() 86 volume_id_set_label_unicode16(id, (uint8_t *)sb->volume_name, in volume_id_probe_f2fs() 89 volume_id_set_uuid(id, sb->uuid, UUID_DCE); in volume_id_probe_f2fs()
|
/busybox-1.35.0/util-linux/ |
D | ipcrm.c | 56 unsigned long id; in remove_ids() local 63 id = bb_strtoul(argv[0], NULL, 10); in remove_ids() 64 if (errno || id > INT_MAX) { in remove_ids() 70 ret = semctl(id, 0, IPC_RMID, arg); in remove_ids() 72 ret = msgctl(id, IPC_RMID, NULL); in remove_ids() 74 ret = shmctl(id, IPC_RMID, NULL); in remove_ids() 141 int id; in ipcrm_main() local 149 id = 0; in ipcrm_main() 165 id = ((c == 'q') ? msgget(key, 0) : in ipcrm_main() 168 if (id < 0) { in ipcrm_main() [all …]
|
/busybox-1.35.0/scripts/kconfig/ |
D | zconf.l | 102 struct kconf_id *id = kconf_id_lookup(yytext, yyleng); variable 106 if (id && id->flags & TF_COMMAND) { 107 zconflval.id = id; 108 return id->token; 138 struct kconf_id *id = kconf_id_lookup(yytext, yyleng); 139 if (id && id->flags & TF_PARAM) { 140 zconflval.id = id; 141 return id->token;
|