Home
last modified time | relevance | path

Searched refs:offsetof (Results 1 – 25 of 197) sorted by relevance

12345678

/minix3/lib/libc/locale/
H A Dnl_langinfo.c106 [ D_T_FMT ] = offsetof(_TimeLocale, d_t_fmt),
107 [ D_FMT ] = offsetof(_TimeLocale, d_fmt),
108 [ T_FMT ] = offsetof(_TimeLocale, t_fmt),
109 [ T_FMT_AMPM ] = offsetof(_TimeLocale, t_fmt_ampm),
110 [ AM_STR ] = offsetof(_TimeLocale, am_pm[0]),
111 [ PM_STR ] = offsetof(_TimeLocale, am_pm[1]),
112 [ DAY_1 ] = offsetof(_TimeLocale, day[0]),
113 [ DAY_2 ] = offsetof(_TimeLocale, day[1]),
114 [ DAY_3 ] = offsetof(_TimeLocale, day[2]),
115 [ DAY_4 ] = offsetof(_TimeLocale, day[3]),
[all …]
/minix3/external/bsd/llvm/dist/clang/test/CodeGen/
H A Darm-apcs-zerolength-bitfield.c17 static int arr1_offset[(offsetof(struct t1, bar) == 4) ? 0 : -1];
26 static int arr2_offset[(offsetof(struct t2, bar) == 4) ? 0 : -1];
35 static int arr3_offset[(offsetof(struct t3, bar) == 4) ? 0 : -1];
44 static int arr4_offset[(offsetof(struct t4, bar) == 4) ? 0 : -1];
53 static int arr5_offset[(offsetof(struct t5, bar) == 4) ? 0 : -1];
63 static int arr6_offset[(offsetof(struct t6, bar2) == 5) ? 0 : -1];
73 static int arr7_offset[(offsetof(struct t7, bar2) == 5) ? 0 : -1];
83 static int arr8_offset[(offsetof(struct t8, bar2) == 5) ? 0 : -1];
93 static int arr9_offset[(offsetof(struct t9, bar2) == 5) ? 0 : -1];
103 static int arr10_offset[(offsetof(struct t10, bar2) == 5) ? 0 : -1];
[all …]
H A Darm-aapcs-zerolength-bitfield.c13 static int arr1_offset[(offsetof(struct t1, bar) == 1) ? 0 : -1];
22 static int arr2_offset[(offsetof(struct t2, bar) == 2) ? 0 : -1];
31 static int arr3_offset[(offsetof(struct t3, bar) == 4) ? 0 : -1];
40 static int arr4_offset[(offsetof(struct t4, bar) == 4) ? 0 : -1];
49 static int arr5_offset[(offsetof(struct t5, bar) == 8) ? 0 : -1];
59 static int arr6_offset[(offsetof(struct t6, bar2) == 2) ? 0 : -1];
69 static int arr7_offset[(offsetof(struct t7, bar2) == 3) ? 0 : -1];
79 static int arr8_offset[(offsetof(struct t8, bar2) == 5) ? 0 : -1];
89 static int arr9_offset[(offsetof(struct t9, bar2) == 5) ? 0 : -1];
99 static int arr10_offset[(offsetof(struct t10, bar2) == 9) ? 0 : -1];
[all …]
/minix3/lib/libc/arch/mips/
H A Dgenassym.cf39 define _OFFSETOF_UC_GREGS offsetof(ucontext_t, uc_mcontext.__gregs[0])
40 define _OFFSETOF_UC_GREGS_V0 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_V0])
41 define _OFFSETOF_UC_GREGS_SP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_SP])
42 define _OFFSETOF_UC_GREGS_EPC offsetof(ucontext_t, uc_mcontext.__gregs[_REG_EPC])
43 define _OFFSETOF_UC_LINK offsetof(ucontext_t, uc_link)
46 define _OFFSETOF_SC_REGS offsetof(struct sigcontext, sc_regs[0])
47 define _OFFSETOF_SC_REGS_V0 offsetof(struct sigcontext, sc_regs[_R_V0])
48 define _OFFSETOF_SC_REGS_S0 offsetof(struct sigcontext, sc_regs[_R_S0])
49 define _OFFSETOF_SC_REGS_S1 offsetof(struct sigcontext, sc_regs[_R_S1])
50 define _OFFSETOF_SC_REGS_S2 offsetof(struct sigcontext, sc_regs[_R_S2])
[all …]
/minix3/sys/arch/i386/include/
H A Dreg.h53 #define tES (offsetof(struct trapframe, tf_es) / sizeof (int))
54 #define tDS (offsetof(struct trapframe, tf_ds) / sizeof (int))
55 #define tEDI (offsetof(struct trapframe, tf_edi) / sizeof (int))
56 #define tESI (offsetof(struct trapframe, tf_esi) / sizeof (int))
57 #define tEBP (offsetof(struct trapframe, tf_ebp) / sizeof (int))
58 #define tEBX (offsetof(struct trapframe, tf_ebx) / sizeof (int))
59 #define tEDX (offsetof(struct trapframe, tf_edx) / sizeof (int))
60 #define tECX (offsetof(struct trapframe, tf_ecx) / sizeof (int))
61 #define tEAX (offsetof(struct trapframe, tf_eax) / sizeof (int))
63 #define tEIP (offsetof(struct trapframe, tf_eip) / sizeof (int))
[all …]
H A Dcpu.h56 (*(struct cpu_info * const *)offsetof(struct cpu_info, ci_self))); in x86_curcpu()
68 (*(struct cpu_info * const *)offsetof(struct cpu_info, ci_curlwp))); in x86_curlwp()
78 "=m" (*(struct cpu_info *)offsetof(struct cpu_info, ci_schedstate.spc_curpriority)) : in cpu_set_curpri()
/minix3/lib/libc/arch/vax/
H A Dgenassym.cf37 define UC_FLAGS offsetof(ucontext_t, uc_flags)
38 define UC_LINK offsetof(ucontext_t, uc_link)
39 define UC_STACK offsetof(ucontext_t, uc_stack)
40 define UC_SIGMASK offsetof(ucontext_t, uc_sigmask)
41 define UC_GREGS offsetof(ucontext_t, uc_mcontext.__gregs)
59 define SS_SP offsetof(stack_t, ss_sp)
60 define SS_SIZE offsetof(stack_t, ss_size)
61 define SS_FLAGS offsetof(stack_t, ss_flags)
65 define SC13_ONSTACK offsetof(struct sigcontext13, sc_onstack)
66 define SC13_MASK offsetof(struct sigcontext13, sc_mask)
[all …]
/minix3/external/bsd/llvm/dist/clang/test/Sema/
H A Dpragma-align-mac68k.c18 extern int a1_0[offsetof(struct s1, f0) == 0 ? 1 : -1];
19 extern int a1_1[offsetof(struct s1, f1) == 2 ? 1 : -1];
27 extern int a2_0[offsetof(struct s2, f0) == 0 ? 1 : -1];
28 extern int a2_1[offsetof(struct s2, f1) == 2 ? 1 : -1];
36 extern int a3_0[offsetof(struct s3, f0) == 0 ? 1 : -1];
37 extern int a3_1[offsetof(struct s3, f1) == 2 ? 1 : -1];
45 extern int a4_0[offsetof(struct s4, f0) == 0 ? 1 : -1];
46 extern int a4_1[offsetof(struct s4, f1) == 1 ? 1 : -1];
96 extern int a11_0[offsetof(struct s11, f0) == 0 ? 1 : -1];
97 extern int a11_1[offsetof(struct s11, f1) == 2 ? 1 : -1];
H A Dpragma-pack-2.c13 extern int a0[offsetof(struct s0, f1) == 4 ? 1 : -1];
20 extern int a1[offsetof(struct s1, f1) == 2 ? 1 : -1];
33 extern int a3_0[offsetof(struct s3_0, f1) == 1 ? 1 : -1];
34 extern int a3_1[offsetof(struct s3_1, f1) == 4 ? 1 : -1];
47 extern int a4_0[offsetof(struct s4_0, f1) == 1 ? 1 : -1];
48 extern int a4_1[offsetof(struct s4_1, f1) == 4 ? 1 : -1];
59 extern int s5_0[offsetof(struct s5_0, f1) == 2 ? 1 : -1]; in f()
H A Doffsetof.c3 #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER) macro
17 x = offsetof(struct external_sun3_core, c_regs); in swap()
31 int v1 = offsetof (struct s1, a) == 0 ? 0 : f();
H A Dpragma-pack-5.c38 extern int check[offsetof(struct s3, f4) == 6 ? 1 : -1];
46 extern int check[offsetof(struct s4, f3) == 2 ? 1 : -1];
/minix3/lib/libc/arch/m68k/
H A Dgenassym.cf37 define UC_LINK offsetof(ucontext_t, uc_link)
38 define UC_SIGMASK offsetof(ucontext_t, uc_sigmask)
39 define UC_MCONTEXT_D0 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_D0])
40 define UC_MCONTEXT_SP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_A7])
41 define UC_MCONTEXT_PC offsetof(ucontext_t, uc_mcontext.__gregs[_REG_PC])
44 define SC_ONSTACK offsetof(struct sigcontext, sc_onstack)
45 define SC___MASK13 offsetof(struct sigcontext, __sc_mask13)
46 define SC_SP offsetof(struct sigcontext, sc_sp)
47 define SC_FP offsetof(struct sigcontext, sc_fp)
48 define SC_AP offsetof(struct sigcontext, sc_ap)
[all …]
/minix3/minix/usr.bin/trace/
H A Dkernel.c46 if (mem_get_user(pid, offsetof(struct proc, p_magic), in kernel_check()
64 if (mem_get_user(pid, offsetof(struct proc, p_name), in kernel_get_name()
93 if (mem_get_user(pid, off + offsetof(struct priv, s_id), in kernel_is_service()
111 if (mem_get_user(pid, offsetof(struct proc, p_defer), in kernel_get_syscall()
137 off = offsetof(struct proc, p_reg); in kernel_get_retreg()
139 if (mem_get_user(pid, off + offsetof(struct stackframe_s, retreg), in kernel_get_retreg()
175 off = offsetof(struct proc, p_reg); /* as above */ in kernel_get_context()
177 if (mem_get_user(pid, off + offsetof(struct stackframe_s, pc), in kernel_get_context()
180 if (mem_get_user(pid, off + offsetof(struct stackframe_s, sp), in kernel_get_context()
191 if (mem_get_user(pid, offsetof(struct proc, p_seg) + in kernel_get_context()
[all …]
/minix3/tests/include/sys/
H A Dt_bootblock.c48 ATF_CHECK_EQ(MBR_BPB_OFFSET, offsetof(struct mbr_sector, mbr_bpb)); in ATF_TC_BODY()
49 ATF_CHECK_EQ(MBR_BS_OFFSET, offsetof(struct mbr_sector, mbr_bootsel)); in ATF_TC_BODY()
51 ATF_CHECK_EQ(440, offsetof(struct mbr_sector, mbr_dsn)); in ATF_TC_BODY()
54 ATF_CHECK_EQ(MBR_PART_OFFSET, offsetof(struct mbr_sector, mbr_parts)); in ATF_TC_BODY()
57 ATF_CHECK_EQ(MBR_MAGIC_OFFSET, offsetof(struct mbr_sector, mbr_magic)); in ATF_TC_BODY()
/minix3/lib/libc/arch/alpha/
H A Dgenassym.cf73 define SC_ONSTACK offsetof(struct sigcontext, sc_onstack)
74 define SC_SP offsetof(struct sigcontext, sc_sp)
75 define SC_PC offsetof(struct sigcontext, sc_pc)
76 define SC_PS offsetof(struct sigcontext, sc_ps)
77 define SC_REGS offsetof(struct sigcontext, sc_regs)
78 define SC_OWNEDFP offsetof(struct sigcontext, sc_regs)
79 define SC_FPREGS offsetof(struct sigcontext, sc_fpregs)
80 define SC_FPCR offsetof(struct sigcontext, sc_fpcr)
81 define SC_FP_CONTROL offsetof(struct sigcontext, sc_fp_control)
82 define SC_MASK offsetof(struct sigcontext, sc_mask)
[all …]
/minix3/external/bsd/libc++/dist/libcxx/test/std/language.support/support.types/
H A Doffsetof.pass.cpp12 #ifndef offsetof
13 #error offsetof not defined
24 static_assert(noexcept(offsetof(A, x)), ""); in main()
/minix3/external/bsd/libc++/dist/libcxx/test/language.support/support.types/
H A Doffsetof.pass.cpp12 #ifndef offsetof
13 #error offsetof not defined
24 static_assert(noexcept(offsetof(A, x)), ""); in main()
/minix3/lib/libc/arch/powerpc/
H A Dgenassym.cf41 define CALLFRAME_LR offsetof(struct callframe, cf_lr)
42 define CALLFRAME_R30 offsetof(struct callframe, cf_r30)
43 define CALLFRAME_R31 offsetof(struct callframe, cf_r31)
45 define UC_GREGS_R1 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R1])
46 define UC_GREGS_R3 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R3])
47 define UC_GREGS_PC offsetof(ucontext_t, uc_mcontext.__gregs[_REG_PC])
52 define CACHE_INFO_DCACHE_LINE_SIZE offsetof(struct cache_info, dcache_line_size)
/minix3/external/bsd/pkg_install/dist/info/
H A Dperform.c123 { offsetof(struct pkg_meta, meta_contents), CONTENTS_FNAME,
125 { offsetof(struct pkg_meta, meta_comment), COMMENT_FNAME,
127 { offsetof(struct pkg_meta, meta_desc), DESC_FNAME,
129 { offsetof(struct pkg_meta, meta_install), INSTALL_FNAME,
131 { offsetof(struct pkg_meta, meta_deinstall), DEINSTALL_FNAME,
133 { offsetof(struct pkg_meta, meta_display), DISPLAY_FNAME,
135 { offsetof(struct pkg_meta, meta_mtree), MTREE_FNAME,
137 { offsetof(struct pkg_meta, meta_build_version), BUILD_VERSION_FNAME,
139 { offsetof(struct pkg_meta, meta_build_info), BUILD_INFO_FNAME,
141 { offsetof(struct pkg_meta, meta_size_pkg), SIZE_PKG_FNAME,
[all …]
/minix3/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
/minix3/external/bsd/libc++/dist/libcxx/test/depr/depr.c.headers/
H A Dstddef_h.pass.cpp19 #ifndef offsetof
20 #error offsetof not defined
/minix3/external/bsd/libc++/dist/libcxx/test/std/depr/depr.c.headers/
H A Dstddef_h.pass.cpp19 #ifndef offsetof
20 #error offsetof not defined
/minix3/sys/ufs/lfs/
H A Dlfs_cksum.c110 size = (size_t)offsetof(struct dlfs64, dlfs_cksum); in lfs_sb_cksum()
113 size = (size_t)offsetof(struct dlfs64, dlfs_cksum); in lfs_sb_cksum()
/minix3/usr.bin/sort/
H A Dfiles.c229 EWRITE(rec, 1, REC_ROUNDUP(offsetof(RECHEADER, data) + rec->length), fp, in putrec()
249 EWRITE(rec, 1, REC_ROUNDUP(offsetof(RECHEADER, data) + rec->offset), fp, in putkeydump()
262 (void)sizeof (char[offsetof(RECHEADER, length) == 0 ? 1 : -1]); in geteasy()
270 file_len = REC_ROUNDUP(offsetof(RECHEADER, data) + rec->length); in geteasy()
/minix3/crypto/external/bsd/openssl/dist/crypto/rand/
H A Drand_egd.c134 # ifndef offsetof
135 # define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) macro
152 len = offsetof(struct sockaddr_un, sun_path) + strlen(path); in RAND_query_egd_bytes()

12345678