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

1234567891011>>

/illumos-gate/usr/src/cmd/dtrace/test/tst/common/offsetof/
H A Derr.D_OFFSETOF_TYPE.notsou.d33 * Test invocation of offsetof() with a type that is not a struct or union.
43 trace(offsetof(int, x));
H A Derr.D_OFFSETOF_TYPE.badtype.d32 * Test invocation of offsetof() with an invalid type.
43 trace(offsetof(struct no_such_type, x));
H A Derr.D_UNKNOWN.badmemb.d32 * Test invocation of offsetof() with an invalid member.
43 trace(offsetof(vnode_t, v_no_such_member));
H A Dtst.OffsetofArith.d29 * ASSERTION: offsetof can be used anywhere in a D program that an integer
49 add = offsetof(record_t, c) + offsetof(record_t, x) +
50 offsetof(record_t, y);
51 sub = offsetof(record_t, y) - offsetof(record_t, x);
52 mul = offsetof(record_t, x) * offsetof(record_t, c);
53 div = offsetof(record_t, y) / offsetof(record_
[all...]
H A Dtst.OffsetofAlias.d30 * Test invocation of offsetof() with a struct type alias.
48 printf("offsetof(record_t, c) = %d\n", offsetof(record_t, c));
49 printf("offsetof(record_t, x) = %d\n", offsetof(record_t, x));
50 printf("offsetof(record_t, y) = %d\n", offsetof(record_t, y));
55 /(8 != offsetof(record_t, y)) || (4 != offsetof(record_t, x)) ||
56 (0 != offsetof(record_
[all...]
H A Dtst.OffsetofUnion.d30 * Test invocation of offsetof() with a union type alias.
48 printf("offsetof(record, x) = %d\n", offsetof(union D`record, x));
49 printf("offsetof(record, y) = %d\n", offsetof(union D`record, y));
50 printf("offsetof(record, c) = %d\n", offsetof(union D`record, c));
55 /(0 != offsetof(union D`record, y)) && (0 != offsetof(union D`record, x)) &&
56 (0 != offsetof(unio
[all...]
H A Derr.D_OFFSETOF_BITFIELD.bitfield.d32 * Test invocation of offsetof() with a member that is a bit-field.
48 trace(offsetof(struct foo, b));
H A Derr.D_UNKNOWN.OffsetofNULL.d30 * ASSERTION: Querying the offsetof an non-member variable of a struct throws
46 printf("offsetof (struct record, NULL): %d\n",
47 offsetof (struct record, NULL));
H A Dtst.struct.d31 * Test invocation of offsetof() with a struct type.
48 printf("offsetof(s, y) = %d\n", offsetof(struct D`s, y));
H A Dtst.union.d31 * Test invocation of offsetof() with a union type.
48 printf("offsetof(s, y) = %d\n", offsetof(union D`s, y));
/illumos-gate/usr/src/stand/lib/sa/
H A Dstddef.h44 #ifndef offsetof
45 #define offsetof(s, m) (size_t)(&(((s *)0)->m)) macro
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_vlan.h43 #define ENCAP_ETHERTYPE_OFF (offsetof(struct ether_vlan_header, ether_type) -\
44 offsetof(struct ether_vlan_header, ether_tpid))
50 #define VLAN_ID_OFFSET (offsetof(struct ether_vlan_header, ether_tci) -\
51 offsetof(struct ether_vlan_header, ether_dhost))
/illumos-gate/usr/src/uts/sun4u/starcat/sys/
H A Ddomaind.h59 #define DOMD_MAGIC_OFFSET offsetof(domain_data_t, magic)
60 #define DOMD_VERSION_OFFSET offsetof(domain_data_t, version)
61 #define DOMD_KEYSWITCH_OFFSET offsetof(domain_data_t, keyswitch)
62 #define DOMD_SCIP_OFFSET offsetof(domain_data_t, master_sc_ip)
63 #define DOMD_LEDS_OFFSET offsetof(domain_data_t, leds)
64 #define DOMD_DSTATE_OFFSET offsetof(domain_data_t, domain_state)
65 #define DOMD_HEARTBEAT_OFFSET offsetof(domain_data_t, heartbeat)
66 #define DOMD_CPUSPRESENT_OFFSET offsetof(domain_data_t, cpus_present)
67 #define DOMD_CPUSIGS_OFFSET offsetof(domain_data_t, cpu_sigs)
68 #define DOMD_RESETINFO_OFFSET offsetof(domain_data_
[all...]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/bitfields/
H A Derr.D_OFFSETOF_BITFIELD.d30 * ASSERTION: Cannot apply offsetof operator to a bit-field member.
45 printf("offsetof(struct bitRecord, a): %d\n",
46 offsetof(struct bitRecord, a));
47 printf("offsetof(struct bitRecord, b): %d\n",
48 offsetof(struct bitRecord, b));
49 printf("offsetof(struct bitRecord, c): %d\n",
50 offsetof(struct bitRecord, c));
/illumos-gate/usr/src/uts/sun4u/serengeti/sys/
H A Dsgsgn.h66 (offsetof(sg_sgnblk_t, magic))
68 (offsetof(sg_sgnblk_t, version))
70 (offsetof(sg_sgnblk_t, domainsig))
72 (offsetof(sg_sgnblk_t, cpusig) + (cpuid)*sizeof (uint32_t))
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Ddefs.c39 offsetof(Namval_t,nvname), -1 , 0, 0, 0, nv_compare
/illumos-gate/usr/src/uts/common/sys/
H A Dextdirent.h55 ((offsetof(edirent_t, ed_name[0]) + 1 + (namelen) + 7) & ~ 7)
57 ((reclen) - (offsetof(edirent_t, ed_name[0])))
H A Ddirent.h81 ((offsetof(dirent64_t, d_name[0]) + 1 + (namelen) + 7) & ~ 7)
83 ((reclen) - (offsetof(dirent64_t, d_name[0])))
85 ((offsetof(dirent32_t, d_name[0]) + 1 + (namelen) + 3) & ~ 3)
87 ((reclen) - (offsetof(dirent32_t, d_name[0])))
/illumos-gate/usr/src/grub/grub-0.97/stage2/zfs-include/
H A Dvdev_impl.h28 #undef offsetof macro
29 #define offsetof(t, m) ((int)&(((t *)0)->m)) macro
43 offsetof(vdev_label_t, vl_uberblock[(n) << VDEV_UBERBLOCK_SHIFT(sh)])
/illumos-gate/usr/src/head/iso/
H A Dstddef_iso.h86 #define offsetof(s, m) __builtin_offsetof(s, m) macro
89 #define offsetof(s, m) (std::size_t)(&(((s *)0)->m))
91 #define offsetof(s, m) (size_t)(&(((s *)0)->m))
/illumos-gate/usr/src/lib/libc/sparc/
H A Dgenassym.c46 offsetof(lwp_mutex_t, mutex_lockword));
/illumos-gate/usr/src/uts/common/c2/
H A Daudit_door_infc.h68 #define AU_DBUF_HEADER offsetof(au_dbuf_t, aub_buf[0])
/illumos-gate/usr/src/boot/sys/sys/
H A Dstddef.h41 #define offsetof(type, field) __offsetof(type, field) macro
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/
H A Dses2_pages.c73 if (pagelen < offsetof(ses2_aes_page_impl_t, sapi_data))
83 offsetof(ses2_aes_descr_eip_impl_t, sadei_length) +
187 *len + offsetof(ses2_elem_descriptor_impl_t, sedi_descriptor),
208 offsetof(ses2_status_page_impl_t, sspi_data) > pagelen)
222 offsetof(ses2_control_page_impl_t, scpi_data[0]));
266 return (datalen + offsetof(ses2_string_out_page_impl_t, ssopi_data[0]));
276 offsetof(ses2_threshold_out_page_impl_t, stopi_thresholds[0]));
314 offsetof(ses2_substring_out_page_impl_t, ssopi_data[0]));
326 offsetof(ses2_ucode_ctl_page_impl_t, sucpi_ucode_data[0]);
375 .spd_gcoff = offsetof(ses2_config_page_impl_
[all...]
/illumos-gate/usr/src/lib/libc/amd64/
H A Dgenassym.c49 offsetof(lwp_mutex_t, mutex_lockword));

Completed in 125 milliseconds

1234567891011>>