/illumos-gate/usr/src/cmd/dtrace/test/tst/common/offsetof/ |
H A D | err.D_OFFSETOF_TYPE.notsou.d | 33 * Test invocation of offsetof() with a type that is not a struct or union. 43 trace(offsetof(int, x));
|
H A D | err.D_OFFSETOF_TYPE.badtype.d | 32 * Test invocation of offsetof() with an invalid type. 43 trace(offsetof(struct no_such_type, x));
|
H A D | err.D_UNKNOWN.badmemb.d | 32 * Test invocation of offsetof() with an invalid member. 43 trace(offsetof(vnode_t, v_no_such_member));
|
H A D | tst.OffsetofArith.d | 29 * 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 D | tst.OffsetofAlias.d | 30 * 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 D | tst.OffsetofUnion.d | 30 * 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 D | err.D_OFFSETOF_BITFIELD.bitfield.d | 32 * Test invocation of offsetof() with a member that is a bit-field. 48 trace(offsetof(struct foo, b));
|
H A D | err.D_UNKNOWN.OffsetofNULL.d | 30 * 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 D | tst.struct.d | 31 * Test invocation of offsetof() with a struct type. 48 printf("offsetof(s, y) = %d\n", offsetof(struct D`s, y));
|
H A D | tst.union.d | 31 * 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 D | stddef.h | 44 #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 D | snoop_vlan.h | 43 #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 D | domaind.h | 59 #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 D | err.D_OFFSETOF_BITFIELD.d | 30 * 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 D | sgsgn.h | 66 (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 D | defs.c | 39 offsetof(Namval_t,nvname), -1 , 0, 0, 0, nv_compare
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | extdirent.h | 55 ((offsetof(edirent_t, ed_name[0]) + 1 + (namelen) + 7) & ~ 7) 57 ((reclen) - (offsetof(edirent_t, ed_name[0])))
|
H A D | dirent.h | 81 ((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 D | vdev_impl.h | 28 #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 D | stddef_iso.h | 86 #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 D | genassym.c | 46 offsetof(lwp_mutex_t, mutex_lockword));
|
/illumos-gate/usr/src/uts/common/c2/ |
H A D | audit_door_infc.h | 68 #define AU_DBUF_HEADER offsetof(au_dbuf_t, aub_buf[0])
|
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | stddef.h | 41 #define offsetof(type, field) __offsetof(type, field) macro
|
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/ |
H A D | ses2_pages.c | 73 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 D | genassym.c | 49 offsetof(lwp_mutex_t, mutex_lockword));
|