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 {
752752 },
753753
754754 /// see signal options
755 sa_flags: c_uint,
755 flags: c_uint,
756756
757757 /// signal mask to apply
758 sa_mask: sigset_t,
758 mask: sigset_t,
759759};
760760
761pub const __siginfo = extern struct {
762 si_signo: c_int,
763 si_errno: c_int,
764 si_code: c_int,
765 si_pid: pid_t,
766 si_uid: uid_t,
767 si_status: c_int,
768 si_addr: ?*c_void,
769 si_value: sigval,
770 _reason: extern union {
771 _fault: extern struct {
772 _trapno: c_int,
761pub const siginfo_t = extern struct {
762 signo: c_int,
763 errno: c_int,
764 code: c_int,
765 pid: pid_t,
766 uid: uid_t,
767 status: c_int,
768 addr: ?*c_void,
769 value: sigval,
770 reason: extern union {
771 fault: extern struct {
772 trapno: c_int,
773773 },
774 _timer: extern struct {
775 _timerid: c_int,
776 _overrun: c_int,
774 timer: extern struct {
775 timerid: c_int,
776 overrun: c_int,
777777 },
778 _mesgq: extern struct {
779 _mqd: c_int,
778 mesgq: extern struct {
779 mqd: c_int,
780780 },
781 _poll: extern struct {
782 _band: c_long,
781 poll: extern struct {
782 band: c_long,
783783 },
784 __spare__: extern struct {
785 __spare1__: c_long,
786 __spare2__: [7]c_int,
784 spare: extern struct {
785 spare1: c_long,
786 spare2: [7]c_int,
787787 },
788788 },
789789};
790790
791791pub const sigval = extern union {
792 sival_int: c_int,
793 sival_ptr: ?*c_void,
794 sigval_int: c_int,
795 sigval_ptr: ?*c_void,
792 int: c_int,
793 ptr: ?*c_void,
796794};
797795
798796pub const _SIG_WORDS = 4;