Searched refs:offsetof (Results 1 - 25 of 1198) sorted by relevance

1234567891011>>

/netbsd-current/tests/usr.bin/indent/
H A Dlsym_offsetof.c4 * Tests for the token lsym_offsetof, which represents the keyword 'offsetof'
9 size_t offset = offsetof(struct s, member);
18 * applies to 'offsetof' as well, even though it is not really a function.
21 size_t offset = offsetof (struct s, member);
H A Dopt_pcs.c62 * The option '-pcs' also applies to 'sizeof' and 'offsetof', even though
72 int offset = offsetof(struct s, member);
73 int offset = offsetof (struct s, member);
84 int offset = offsetof (struct s, member);
85 int offset = offsetof (struct s, member);
90 * applies to 'sizeof', but not 'offsetof'.
99 int offset = offsetof(struct s, member);
100 int offset = offsetof(struct s, member);
110 int offset = offsetof(struct s, member);
111 int offset = offsetof(struc
[all...]
H A Dopt_bs.c65 * The option '-bs' only affects 'sizeof', not 'offsetof', even though these
75 int offset = offsetof(struct s, member);
76 int offset = offsetof (struct s, member);
86 int offset = offsetof (struct s, member);
87 int offset = offsetof (struct s, member);
97 int offset = offsetof(struct s, member);
98 int offset = offsetof(struct s, member);
/netbsd-current/external/gpl3/gdb.old/dist/gdb/
H A Dhppa-linux-offsets.h23 #define PT_PSW offsetof(struct pt_regs, gr[ 0])
24 #define PT_GR1 offsetof(struct pt_regs, gr[ 1])
25 #define PT_GR2 offsetof(struct pt_regs, gr[ 2])
26 #define PT_GR3 offsetof(struct pt_regs, gr[ 3])
27 #define PT_GR4 offsetof(struct pt_regs, gr[ 4])
28 #define PT_GR5 offsetof(struct pt_regs, gr[ 5])
29 #define PT_GR6 offsetof(struct pt_regs, gr[ 6])
30 #define PT_GR7 offsetof(struct pt_regs, gr[ 7])
31 #define PT_GR8 offsetof(struct pt_regs, gr[ 8])
32 #define PT_GR9 offsetof(struc
[all...]
H A Dppc-obsd-nat.c198 ppcobsd_reg_offsets.r0_offset = offsetof (struct reg, gpr);
201 ppcobsd_reg_offsets.pc_offset = offsetof (struct reg, pc);
202 ppcobsd_reg_offsets.ps_offset = offsetof (struct reg, ps);
203 ppcobsd_reg_offsets.cr_offset = offsetof (struct reg, cnd);
204 ppcobsd_reg_offsets.lr_offset = offsetof (struct reg, lr);
205 ppcobsd_reg_offsets.ctr_offset = offsetof (struct reg, cnt);
206 ppcobsd_reg_offsets.xer_offset = offsetof (struct reg, xer);
207 ppcobsd_reg_offsets.mq_offset = offsetof (struct reg, mq);
210 ppcobsd_reg_offsets.f0_offset = offsetof (struct reg, fpr);
213 ppcobsd_fpreg_offsets.f0_offset = offsetof (struc
[all...]
/netbsd-current/external/gpl3/gdb/dist/gdb/
H A Dhppa-linux-offsets.h23 #define PT_PSW offsetof(struct pt_regs, gr[ 0])
24 #define PT_GR1 offsetof(struct pt_regs, gr[ 1])
25 #define PT_GR2 offsetof(struct pt_regs, gr[ 2])
26 #define PT_GR3 offsetof(struct pt_regs, gr[ 3])
27 #define PT_GR4 offsetof(struct pt_regs, gr[ 4])
28 #define PT_GR5 offsetof(struct pt_regs, gr[ 5])
29 #define PT_GR6 offsetof(struct pt_regs, gr[ 6])
30 #define PT_GR7 offsetof(struct pt_regs, gr[ 7])
31 #define PT_GR8 offsetof(struct pt_regs, gr[ 8])
32 #define PT_GR9 offsetof(struc
[all...]
H A Dppc-obsd-nat.c198 ppcobsd_reg_offsets.r0_offset = offsetof (struct reg, gpr);
201 ppcobsd_reg_offsets.pc_offset = offsetof (struct reg, pc);
202 ppcobsd_reg_offsets.ps_offset = offsetof (struct reg, ps);
203 ppcobsd_reg_offsets.cr_offset = offsetof (struct reg, cnd);
204 ppcobsd_reg_offsets.lr_offset = offsetof (struct reg, lr);
205 ppcobsd_reg_offsets.ctr_offset = offsetof (struct reg, cnt);
206 ppcobsd_reg_offsets.xer_offset = offsetof (struct reg, xer);
207 ppcobsd_reg_offsets.mq_offset = offsetof (struct reg, mq);
210 ppcobsd_reg_offsets.f0_offset = offsetof (struct reg, fpr);
213 ppcobsd_fpreg_offsets.f0_offset = offsetof (struc
[all...]
/netbsd-current/sys/arch/i386/include/
H A Dreg.h54 #define tES (offsetof(struct trapframe, tf_es) / sizeof (int))
55 #define tDS (offsetof(struct trapframe, tf_ds) / sizeof (int))
56 #define tEDI (offsetof(struct trapframe, tf_edi) / sizeof (int))
57 #define tESI (offsetof(struct trapframe, tf_esi) / sizeof (int))
58 #define tEBP (offsetof(struct trapframe, tf_ebp) / sizeof (int))
59 #define tEBX (offsetof(struct trapframe, tf_ebx) / sizeof (int))
60 #define tEDX (offsetof(struct trapframe, tf_edx) / sizeof (int))
61 #define tECX (offsetof(struct trapframe, tf_ecx) / sizeof (int))
62 #define tEAX (offsetof(struct trapframe, tf_eax) / sizeof (int))
64 #define tEIP (offsetof(struc
[all...]
/netbsd-current/sys/arch/riscv/riscv/
H A Ddb_machdep.c50 { "ra", (void *)offsetof(struct trapframe, tf_ra), db_rw_ddbreg, NULL },
51 { "sp", (void *)offsetof(struct trapframe, tf_sp), db_rw_ddbreg, NULL },
52 { "gp", (void *)offsetof(struct trapframe, tf_gp), db_rw_ddbreg, NULL },
53 { "tp", (void *)offsetof(struct trapframe, tf_tp), db_rw_ddbreg, NULL },
54 { "s0", (void *)offsetof(struct trapframe, tf_s0), db_rw_ddbreg, NULL },
55 { "s1", (void *)offsetof(struct trapframe, tf_s1), db_rw_ddbreg, NULL },
56 { "s2", (void *)offsetof(struct trapframe, tf_s2), db_rw_ddbreg, NULL },
57 { "s3", (void *)offsetof(struct trapframe, tf_s3), db_rw_ddbreg, NULL },
58 { "s4", (void *)offsetof(struct trapframe, tf_s4), db_rw_ddbreg, NULL },
59 { "s5", (void *)offsetof(struc
[all...]
/netbsd-current/tests/include/sys/
H A Dt_bootblock.c48 ATF_CHECK_EQ(MBR_BPB_OFFSET, offsetof(struct mbr_sector, mbr_bpb));
49 ATF_CHECK_EQ(MBR_BS_OFFSET, offsetof(struct mbr_sector, mbr_bootsel));
51 ATF_CHECK_EQ(440, offsetof(struct mbr_sector, mbr_dsn));
54 ATF_CHECK_EQ(MBR_PART_OFFSET, offsetof(struct mbr_sector, mbr_parts));
57 ATF_CHECK_EQ(MBR_MAGIC_OFFSET, offsetof(struct mbr_sector, mbr_magic));
/netbsd-current/sys/external/bsd/common/include/linux/
H A Dstddef.h35 #define offsetofend(T, F) (offsetof(T, F) + sizeof_field(T, F))
/netbsd-current/external/gpl3/binutils.old/dist/include/
H A Dobjalloc.h56 #ifndef offsetof
60 #ifndef offsetof
61 #define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER) macro
63 #define OBJALLOC_ALIGN offsetof (struct objalloc_align, d)
/netbsd-current/external/gpl3/binutils/dist/include/
H A Dobjalloc.h56 #ifndef offsetof
60 #ifndef offsetof
61 #define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER) macro
63 #define OBJALLOC_ALIGN offsetof (struct objalloc_align, d)
/netbsd-current/external/gpl3/gcc.old/dist/include/
H A Dobjalloc.h56 #ifndef offsetof
60 #ifndef offsetof
61 #define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER) macro
63 #define OBJALLOC_ALIGN offsetof (struct objalloc_align, d)
/netbsd-current/external/gpl3/gdb.old/dist/include/
H A Dobjalloc.h56 #ifndef offsetof
60 #ifndef offsetof
61 #define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER) macro
63 #define OBJALLOC_ALIGN offsetof (struct objalloc_align, d)
/netbsd-current/external/gpl3/gcc/dist/include/
H A Dobjalloc.h56 #ifndef offsetof
60 #ifndef offsetof
61 #define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER) macro
63 #define OBJALLOC_ALIGN offsetof (struct objalloc_align, d)
/netbsd-current/external/gpl3/gdb/dist/include/
H A Dobjalloc.h56 #ifndef offsetof
60 #ifndef offsetof
61 #define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER) macro
63 #define OBJALLOC_ALIGN offsetof (struct objalloc_align, d)
/netbsd-current/external/cddl/osnet/dist/uts/common/sys/
H A Dextdirent.h57 ((offsetof(edirent_t, ed_name[0]) + 1 + (namelen) + 7) & ~ 7)
59 ((reclen) - (offsetof(edirent_t, ed_name[0])))
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DAMDHSAKernelDescriptor.h22 #ifndef offsetof
23 #define offsetof(TYPE, MEMBER) ((size_t)&((TYPE*)0)->MEMBER) macro
24 #endif // offsetof
196 static_assert(offsetof(kernel_descriptor_t, group_segment_fixed_size) ==
199 static_assert(offsetof(kernel_descriptor_t, private_segment_fixed_size) ==
202 static_assert(offsetof(kernel_descriptor_t, kernarg_size) ==
205 static_assert(offsetof(kernel_descriptor_t, reserved0) == RESERVED0_OFFSET,
207 static_assert(offsetof(kernel_descriptor_t, kernel_code_entry_byte_offset) ==
210 static_assert(offsetof(kernel_descriptor_t, reserved1) == RESERVED1_OFFSET,
212 static_assert(offsetof(kernel_descriptor_
[all...]
/netbsd-current/external/cddl/osnet/dev/dtrace/
H A Ddtrace_load.c135 dtrace_bymod = dtrace_hash_create(offsetof(dtrace_probe_t, dtpr_mod),
136 offsetof(dtrace_probe_t, dtpr_nextmod),
137 offsetof(dtrace_probe_t, dtpr_prevmod));
139 dtrace_byfunc = dtrace_hash_create(offsetof(dtrace_probe_t, dtpr_func),
140 offsetof(dtrace_probe_t, dtpr_nextfunc),
141 offsetof(dtrace_probe_t, dtpr_prevfunc));
143 dtrace_byname = dtrace_hash_create(offsetof(dtrace_probe_t, dtpr_name),
144 offsetof(dtrace_probe_t, dtpr_nextname),
145 offsetof(dtrace_probe_t, dtpr_prevname));
/netbsd-current/external/bsd/openldap/dist/servers/slapd/
H A Dschema_prep.c338 0, 0, offsetof(struct slap_internal_schema, si_oc_top) },
344 offsetof(struct slap_internal_schema, si_oc_extensibleObject) },
350 offsetof(struct slap_internal_schema, si_oc_alias) },
355 offsetof(struct slap_internal_schema, si_oc_referral) },
361 offsetof(struct slap_internal_schema, si_oc_rootdse) },
367 offsetof(struct slap_internal_schema, si_oc_subentry) },
375 offsetof(struct slap_internal_schema, si_oc_subschema) },
383 offsetof( struct slap_internal_schema,
392 offsetof(struct slap_internal_schema, si_oc_dynamicObject) },
399 offsetof(struc
[all...]
/netbsd-current/include/
H A Dstddef.h59 #define offsetof(type, member) __builtin_offsetof(type, member) macro
61 #define offsetof(type, member) ((size_t)(unsigned long)(&((type *)0)->member)) macro
66 #define offsetof(type, member) __offsetof__((reinterpret_cast<size_t> \ macro
/netbsd-current/crypto/dist/ipsec-tools/src/racoon/
H A Dschedule.h53 #ifndef offsetof
55 #define offsetof(TYPE,MEMBER) __compiler_offsetof(TYPE,MEMBER) macro
57 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) macro
64 (type *)( (char *)__mptr - offsetof(type,member) );})
/netbsd-current/external/gpl3/gdb.old/dist/gdbsupport/
H A Dagent.h38 offsetof (IPA_SYM_STRUCT_NAME, addr_ ## SYM) \
/netbsd-current/external/gpl3/gdb.old/dist/gnulib/import/
H A Dflexmember.h46 it simply (offsetof (TYPE, MEMBER) + N), as that might yield a size
49 malloc (offsetof (struct s, d) + 3 * sizeof (char)) is equivalent
59 ((offsetof (type, member) + FLEXALIGNOF (type) - 1 + (n)) \

Completed in 229 milliseconds

1234567891011>>