| /xnu-12377.41.6/libkern/kxld/ |
| H A D | kxld_reloc.h | 51 typedef boolean_t (*RelocHasPair)(u_int r_type); 52 typedef u_int (*RelocGetPairType)(u_int prev_r_type); 53 typedef boolean_t (*RelocHasGot)(u_int r_type); 55 u_char *instruction, u_int length, u_int pcrel, kxld_addr_t base_pc, 56 kxld_addr_t link_pc, kxld_addr_t link_disp, u_int type, 69 u_int function_align; /* Power of two alignment of functions */ 76 u_int address; 77 u_int pair_address; 78 u_int target; 79 u_int pair_target; [all …]
|
| H A D | kxld_dict.h | 57 typedef u_int (*kxld_dict_hash)(const KXLDDict *dict, const void *key); 58 typedef u_int (*kxld_dict_cmp)(const void *key1, const void *key2); 65 u_int num_entries; // Num entries in the dictionary 66 u_int resize_threshold; // Num entries we must reach to cause a resize 70 u_int idx; 82 kxld_dict_cmp cmp, u_int num_entries) 104 u_int kxld_dict_get_num_entries(const KXLDDict *dict) 143 u_int kxld_dict_string_hash(const KXLDDict *dict, const void *key) 145 u_int kxld_dict_uint32_hash(const KXLDDict *dict, const void *key) 147 u_int kxld_dict_kxldaddr_hash(const KXLDDict *dict, const void *key) [all …]
|
| H A D | kxld_array.h | 82 u_int pool_maxitems; /* The maximum number of items each pool can hold 85 u_int nitems; /* The current number of items this array contains */ 86 u_int maxitems; /* The maximum number of items this array can contain */ 87 u_int npools; /* The number of pools in the pool list */ 93 u_int nitems; /* The number of items the array contains */ 105 kern_return_t kxld_array_init(KXLDArray *array, size_t itemsize, u_int nitems) 129 void *kxld_array_get_item(const KXLDArray *array, u_int idx) 133 void *kxld_array_get_slot(const KXLDArray *array, u_int idx) 138 u_int *idx) 149 kern_return_t kxld_array_resize(KXLDArray *array, u_int nitems) [all …]
|
| H A D | kxld_dict.c | 71 u_int *idx); 73 u_int *idx); 80 u_int num_entries) in kxld_dict_init() 83 u_int min_buckets = MIN_BUCKETS(num_entries); in kxld_dict_init() 84 u_int num_buckets = DEFAULT_DICT_SIZE; in kxld_dict_init() 154 u_int 169 u_int idx = 0; in kxld_dict_find() 193 get_locate_index(const KXLDDict *dict, const void *key, u_int *_idx) in get_locate_index() 197 u_int base, idx; in get_locate_index() 232 u_int idx = 0; in kxld_dict_insert() [all …]
|
| H A D | kxld_reloc.c | 83 #define KXLD_TARGET_NONE (u_int) 0x0 84 #define KXLD_TARGET_VALUE (u_int) 0x1 85 #define KXLD_TARGET_SECTNUM (u_int) 0x2 86 #define KXLD_TARGET_SYMBOLNUM (u_int) 0x3 87 #define KXLD_TARGET_LOOKUP (u_int) 0x4 88 #define KXLD_TARGET_GOT (u_int) 0x5 119 static boolean_t generic_reloc_has_pair(u_int _type) 121 static u_int generic_reloc_get_pair_type(u_int _prev_type) 123 static boolean_t generic_reloc_has_got(u_int _type) 126 u_char *instruction, u_int length, u_int pcrel, kxld_addr_t base_pc, [all …]
|
| H A D | kxld_sect.h | 58 u_int sectnum; // The number of the section (for relocation) 59 u_int flags; // Flags describing the section 60 u_int align; // The section's alignment as a power of 2 61 u_int reserved1; // Dependent on the section type 62 u_int reserved2; // Dependent on the section type 75 u_long *sect_offset, u_int sectnum, const struct kxld_relocator *relocator) 84 u_long *sect_offset, u_int sectnum, const struct kxld_relocator *relocator) 92 kern_return_t kxld_sect_init_got(KXLDSect *sect, u_int ngots) 99 const char *sectname, kxld_size_t size, u_int align) 116 u_int kxld_sect_get_num_relocs(const KXLDSect *sect) [all …]
|
| H A D | kxld_array.c | 42 static kern_return_t array_init(KXLDArray *array, size_t itemsize, u_int nitems); 45 static u_int reinit_pools(KXLDArray *array, u_int nitems); 50 kxld_array_init(KXLDArray *array, size_t itemsize, u_int nitems) in kxld_array_init() 77 array->pool_maxitems = (u_int) (array->pool_capacity / itemsize); in kxld_array_init() 138 array_init(KXLDArray *array, size_t itemsize, u_int nitems) in array_init() 163 array->pool_maxitems = (u_int) (array->pool_capacity / array->itemsize); in array_init() 301 kxld_array_get_item(const KXLDArray *array, u_int idx) in kxld_array_get_item() 328 kxld_array_get_slot(const KXLDArray *array, u_int idx) in kxld_array_get_slot() 355 kxld_array_get_index(const KXLDArray *array, const void *item, u_int *_idx) in kxld_array_get_index() 360 u_int idx = 0; in kxld_array_get_index() [all …]
|
| H A D | kxld_vtable.c | 63 static void get_vtable_base_sizes(boolean_t is_32_bit, u_int *vtable_entry_size, 64 u_int *vtable_header_size); 150 get_vtable_base_sizes(boolean_t is_32_bit, u_int *vtable_entry_size, in get_vtable_base_sizes() 151 u_int *vtable_header_size) in get_vtable_base_sizes() 179 u_int i = 0; in init_by_relocs() 180 u_int nentries = 0; in init_by_relocs() 181 u_int vtable_entry_size = 0; in init_by_relocs() 182 u_int vtable_header_size = 0; in init_by_relocs() 183 u_int base_reloc_index = 0; in init_by_relocs() 184 u_int reloc_index = 0; in init_by_relocs() [all …]
|
| H A D | kxld_symtab.c | 49 u_int strsize; 65 u_int nsyms); 69 u_int nsyms); 182 init_syms_32(KXLDSymtab *symtab, u_char *macho, u_long offset, u_int nsyms) in init_syms_32() 186 u_int i = 0; in init_syms_32() 209 init_syms_64(KXLDSymtab *symtab, u_char *macho, u_long offset, u_int nsyms) in init_syms_64() 213 u_int i = 0; in init_syms_64() 250 u_int i = 0; in restrict_private_symbols() 313 u_int 324 kxld_symtab_get_symbol_by_index(const KXLDSymtab *symtab, u_int idx) in kxld_symtab_get_symbol_by_index() [all …]
|
| /xnu-12377.41.6/libsyscall/mach/servers/ |
| H A D | ls_defs.h | 195 u_int port_id; 196 u_int alive; 197 u_int nport_id_high; 198 u_int nport_id_low; 199 u_int nport_receiver; 200 u_int nport_owner; 201 u_int messages_sent; 202 u_int messages_rcvd; 203 u_int send_rights_sent; 204 u_int send_rights_rcvd_sender; [all …]
|
| /xnu-12377.41.6/bsd/security/audit/ |
| H A D | audit_ioctl.h | 57 #define AUDITPIPE_GET_QLEN _IOR(AUDITPIPE_IOBASE, 1, u_int) 58 #define AUDITPIPE_GET_QLIMIT _IOR(AUDITPIPE_IOBASE, 2, u_int) 59 #define AUDITPIPE_SET_QLIMIT _IOW(AUDITPIPE_IOBASE, 3, u_int) 60 #define AUDITPIPE_GET_QLIMIT_MIN _IOR(AUDITPIPE_IOBASE, 4, u_int) 61 #define AUDITPIPE_GET_QLIMIT_MAX _IOR(AUDITPIPE_IOBASE, 5, u_int) 75 #define AUDITPIPE_GET_MAXAUDITDATA _IOR(AUDITPIPE_IOBASE, 17, u_int) 88 #define AUDITSDEV_GET_QLEN _IOR(AUDITSDEV_IOBASE, 1, u_int) 89 #define AUDITSDEV_GET_QLIMIT _IOR(AUDITSDEV_IOBASE, 2, u_int) 90 #define AUDITSDEV_SET_QLIMIT _IOW(AUDITSDEV_IOBASE, 3, u_int) 91 #define AUDITSDEV_GET_QLIMIT_MIN _IOR(AUDITSDEV_IOBASE, 4, u_int) [all …]
|
| H A D | audit_pipe.c | 77 u_int ape_record_len; 106 u_int ap_flags; 137 u_int ap_qlen; 138 u_int ap_qlimit; 139 u_int ap_qbyteslen; 140 u_int ap_qoffset; 458 audit_pipe_append(struct audit_pipe *ap, void *record, u_int record_len) in audit_pipe_append() 512 int trail_select, void *record, u_int record_len) in audit_pipe_submit() 547 audit_pipe_submit_user(void *record, u_int record_len) in audit_pipe_submit_user() 819 *(u_int *)data = ap->ap_qlen; in audit_pipe_ioctl() [all …]
|
| /xnu-12377.41.6/tests/ |
| H A D | net_bridge.c | 82 u_int unit; 83 u_int num_addrs; 91 u_int test_count; 92 u_int test_address_count; 97 u_int size; 98 u_int count; 108 bridge_rt_table_copy(u_int * ret_count); 111 bridge_rt_table_log(struct ifbareq *rt_table, u_int count); 114 bridge_mac_nat_entries_copy(u_int * ret_count); 117 bridge_mac_nat_entries_log(struct ifbrmne * entries, u_int count); [all …]
|
| H A D | bpflib.h | 35 int bpf_set_immediate(int fd, u_int value); 37 int bpf_arp_filter(int fd, int type_offset, int type, u_int packet_size); 39 int bpf_set_header_complete(int fd, u_int header_complete); 40 int bpf_set_see_sent(int fd, u_int see_send); 42 int bpf_set_direction(int fd, u_int direction); 43 int bpf_get_direction(int fd, u_int *direction); 44 int bpf_set_write_size_max(int fd, u_int write_size_max); 45 int bpf_get_write_size_max(int fd, u_int *write_size_max); 46 int bpf_set_batch_write(int fd, u_int batch_write); 47 int bpf_get_batch_write(int fd, u_int *batch_write);
|
| H A D | bpf_direction.c | 47 str_bpf_direction(u_int direction) in str_bpf_direction() 65 test_set_direction(int fd, u_int direction) in test_set_direction() 70 u_int get_direction = (u_int)(-2); in test_set_direction() 81 u_int direction = (u_int)(-2); /* an invalid value */ 110 u_int get_see_sent = (u_int) - 1; 115 u_int set_see_sent = get_see_sent == 0 ? 1 : 0;
|
| H A D | bpflib.c | 65 bpf_set_header_complete(int fd, u_int header_complete) in bpf_set_header_complete() 71 bpf_set_see_sent(int fd, u_int see_sent) in bpf_set_see_sent() 93 bpf_set_direction(int fd, u_int direction) in bpf_set_direction() 99 bpf_get_direction(int fd, u_int *direction) in bpf_get_direction() 136 bpf_set_immediate(int fd, u_int value) in bpf_set_immediate() 155 bpf_arp_filter(int fd, int type_offset, int type, u_int pkt_size) in bpf_arp_filter() 171 bpf_set_write_size_max(int fd, u_int value) in bpf_set_write_size_max() 182 bpf_get_write_size_max(int fd, u_int *value) in bpf_get_write_size_max() 193 bpf_set_batch_write(int fd, u_int value) in bpf_set_batch_write() 204 bpf_get_batch_write(int fd, u_int *value) in bpf_get_batch_write() [all …]
|
| H A D | net_test_lib.h | 96 u_int count; 107 network_interface_pair_list_alloc(u_int n); 226 extern u_int ethernet_udp4_frame_populate(void * buf, size_t buf_len, 233 const void * data, u_int data_len); 235 extern u_int 243 const void * data, u_int data_len); 246 extern u_int make_dhcp_payload(dhcp_min_payload_t payload, ether_addr_t *eaddr);
|
| /xnu-12377.41.6/libkern/kxld/tests/ |
| H A D | kxld_array_test.c | 39 #define kNumStorageTestItems (u_int) (4 * PAGE_SIZE / sizeof(u_int)) 46 u_int *item = 0; in main() 47 u_int test_num = 0; in main() 48 u_int idx = 0; in main() 49 u_int titems = 0; in main() 50 u_int storageTestItems[kNumStorageTestItems]; in main() 51 u_int i = 0; in main() 60 titems = PAGE_SIZE / sizeof(u_int); in main() 61 rval = kxld_array_init(&array, sizeof(u_int), titems); in main() 86 titems = 2 * PAGE_SIZE / sizeof(u_int) + 100; in main() [all …]
|
| /xnu-12377.41.6/bsd/netinet/ |
| H A D | ip_dummynet.h | 272 u_int len; 273 u_int len_bytes; 351 u_int c_1; /* max_p/(max_th-min_th) (scaled) */ 352 u_int c_2; /* max_p*min_th/(max_th-min_th) (scaled) */ 353 u_int c_3; /* for GRED, (1-max_p)/max_th (scaled) */ 354 u_int c_4; /* for GRED, 1 - 2*max_p (scaled) */ 355 …u_int * __counted_by_or_null(lookup_depth) w_q_lookup; /* lookup table for computing (1-w_q)^t… 356 u_int lookup_depth; /* depth of lookup table */ 437 u_int len; 438 u_int len_bytes; [all …]
|
| H A D | igmp_var.h | 126 u_int igps_rcv_total; /* total IGMP messages received */ 127 u_int igps_rcv_tooshort; /* received with too few bytes */ 128 u_int igps_rcv_badsum; /* received with bad checksum */ 129 u_int igps_rcv_queries; /* received membership queries */ 130 u_int igps_rcv_badqueries; /* received invalid queries */ 131 u_int igps_rcv_reports; /* received membership reports */ 132 u_int igps_rcv_badreports; /* received invalid reports */ 133 u_int igps_rcv_ourreports; /* received reports for our groups */ 134 u_int igps_snd_reports; /* sent membership reports */
|
| /xnu-12377.41.6/bsd/netinet6/ |
| H A D | in6_pcb.h | 106 u_int, uint32_t, int); 108 u_int, uint32_t, struct in6_addr *, u_int, uint32_t, int, struct ifnet *); 110 struct in6_addr *faddr, u_int fport_arg, uint32_t fifscope, 111 struct in6_addr *laddr, u_int lport_arg, uint32_t lifscope, int wildcard, 114 … u_int, uint32_t, struct in6_addr *, u_int, uint32_t, int, uid_t *, gid_t *, struct ifnet *, bool); 115 extern void in6_pcbnotify(struct inpcbinfo *, struct sockaddr *, u_int, 116 const struct sockaddr *, u_int, int, void *, void (*)(struct inpcb *, int));
|
| /xnu-12377.41.6/tests/skywalk/ |
| H A D | skt_copy_cksum.c | 52 static u_int verbose; 60 u_int m_len; 373 randomise_buffer(uint8_t *buffer, u_int len) in randomise_buffer() 381 reference_cksum_single(u_int offset, u_int len, uint32_t init_sum) in reference_cksum_single() 393 target_cksum_single(u_int soffset, u_int doffset, u_int len, uint32_t init_sum) in target_cksum_single() 404 reference_cksum_multi(u_int offset, u_int len, uint32_t init_sum) in reference_cksum_multi() 425 target_cksum_multi(u_int soffset, u_int doffset, u_int len, uint32_t init_sum) in target_cksum_multi() 455 do_test_multi(u_int soffset, u_int doffset, u_int len, uint32_t init_sum) in do_test_multi() 458 u_int m1_len; in do_test_multi() 542 do_test_single(u_int soffset, u_int doffset, u_int len, uint32_t init_sum) in do_test_single() [all …]
|
| /xnu-12377.41.6/bsd/net/ |
| H A D | bpf.h | 137 u_int bf_len; 145 u_int bs_recv; /* number of packets received */ 146 u_int bs_drop; /* number of packets dropped */ 176 #define BIOCGBLEN _IOR('B',102, u_int) 177 #define BIOCSBLEN _IOWR('B',102, u_int) 181 #define BIOCGDLT _IOR('B',106, u_int) 187 #define BIOCIMMEDIATE _IOW('B',112, u_int) 189 #define BIOCGRSIG _IOR('B',114, u_int) 190 #define BIOCSRSIG _IOW('B',115, u_int) 191 #define BIOCGHDRCMPLT _IOR('B',116, u_int) [all …]
|
| H A D | bpf_private.h | 98 u_int bf_len; 103 u_int bf_len; 128 #define BIOCSEXTHDR _IOW('B', 124, u_int) 134 #define BIOCGWANTPKTAP _IOR('B', 127, u_int) 135 #define BIOCSWANTPKTAP _IOWR('B', 127, u_int) 138 #define BIOCSTRUNCATE _IOW('B', 129, u_int) 149 #define BIOCSWRITEMAX _IOW('B', 140, u_int) 150 #define BIOCGWRITEMAX _IOR('B', 141, u_int) 325 extern u_int bpf_filter(const struct bpf_insn *__counted_by(pc_len), u_int pc_len, 326 u_char *__sized_by(sizeof(struct bpf_packet)), u_int wirelen, u_int);
|
| /xnu-12377.41.6/bsd/sys/ |
| H A D | pipe.h | 103 u_int cnt; /* number of chars currently in buffer */ 104 u_int in; /* in pointer */ 105 u_int out; /* out pointer */ 106 u_int size; /* size of buffer */ 163 u_int pipe_state; /* pipe status info */
|