authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-12-13 19:45:11+01:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-12-13 19:45:11+01:00
log97ba3d9a6604a4ac4a92891beb19ec5889bd15ac
treef6c9af3e7a5a10122d91a9abae1bfe61dab6addb
parent75159229075a2932beec44d46bf6850d2e585d3c

std: Drop struct prefixes in FreeBSD siginfo

I'm not sure this prefix-free style is a good idea, but let's roll with it for the moment.

1 files changed, 26 insertions(+), 28 deletions(-)

lib/std/os/bits/freebsd.zig+26-28
...@@ -752,47 +752,45 @@ pub const Sigaction = extern struct {...@@ -752,47 +752,45 @@ pub const Sigaction = extern struct {
752 },752 },
753753
754 /// see signal options754 /// see signal options
755 sa_flags: c_uint,755 flags: c_uint,
756756
757 /// signal mask to apply757 /// signal mask to apply
758 sa_mask: sigset_t,758 mask: sigset_t,
759};759};
760760
761pub const __siginfo = extern struct {761pub const siginfo_t = extern struct {
762 si_signo: c_int,762 signo: c_int,
763 si_errno: c_int,763 errno: c_int,
764 si_code: c_int,764 code: c_int,
765 si_pid: pid_t,765 pid: pid_t,
766 si_uid: uid_t,766 uid: uid_t,
767 si_status: c_int,767 status: c_int,
768 si_addr: ?*c_void,768 addr: ?*c_void,
769 si_value: sigval,769 value: sigval,
770 _reason: extern union {770 reason: extern union {
771 _fault: extern struct {771 fault: extern struct {
772 _trapno: c_int,772 trapno: c_int,
773 },773 },
774 _timer: extern struct {774 timer: extern struct {
775 _timerid: c_int,775 timerid: c_int,
776 _overrun: c_int,776 overrun: c_int,
777 },777 },
778 _mesgq: extern struct {778 mesgq: extern struct {
779 _mqd: c_int,779 mqd: c_int,
780 },780 },
781 _poll: extern struct {781 poll: extern struct {
782 _band: c_long,782 band: c_long,
783 },783 },
784 __spare__: extern struct {784 spare: extern struct {
785 __spare1__: c_long,785 spare1: c_long,
786 __spare2__: [7]c_int,786 spare2: [7]c_int,
787 },787 },
788 },788 },
789};789};
790790
791pub const sigval = extern union {791pub const sigval = extern union {
792 sival_int: c_int,792 int: c_int,
793 sival_ptr: ?*c_void,793 ptr: ?*c_void,
794 sigval_int: c_int,
795 sigval_ptr: ?*c_void,
796};794};
797795
798pub const _SIG_WORDS = 4;796pub const _SIG_WORDS = 4;