]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: rename Sigaltstack to SigaltstackT
authorIan Lance Taylor <iant@golang.org>
Fri, 29 Aug 2014 23:11:05 +0000 (16:11 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 29 Aug 2014 23:11:05 +0000 (16:11 -0700)
Avoids a conflict between the type and function sigaltstack.

LGTM=crawshaw
R=rsc, crawshaw
CC=golang-codereviews
https://golang.org/cl/138920043

30 files changed:
src/pkg/runtime/defs1_linux.go
src/pkg/runtime/defs2_linux.go
src/pkg/runtime/defs_arm_linux.go
src/pkg/runtime/defs_dragonfly.go
src/pkg/runtime/defs_dragonfly_386.h
src/pkg/runtime/defs_dragonfly_amd64.h
src/pkg/runtime/defs_freebsd.go
src/pkg/runtime/defs_freebsd_386.h
src/pkg/runtime/defs_freebsd_amd64.h
src/pkg/runtime/defs_freebsd_arm.h
src/pkg/runtime/defs_linux_386.h
src/pkg/runtime/defs_linux_amd64.h
src/pkg/runtime/defs_linux_arm.h
src/pkg/runtime/defs_netbsd.go
src/pkg/runtime/defs_netbsd_386.h
src/pkg/runtime/defs_netbsd_amd64.h
src/pkg/runtime/defs_netbsd_arm.h
src/pkg/runtime/defs_openbsd.go
src/pkg/runtime/defs_openbsd_386.h
src/pkg/runtime/defs_openbsd_amd64.h
src/pkg/runtime/defs_solaris.go
src/pkg/runtime/defs_solaris_amd64.h
src/pkg/runtime/os_dragonfly.h
src/pkg/runtime/os_freebsd.h
src/pkg/runtime/os_linux.c
src/pkg/runtime/os_linux.h
src/pkg/runtime/os_netbsd.h
src/pkg/runtime/os_openbsd.h
src/pkg/runtime/os_solaris.c
src/pkg/runtime/os_solaris.h

index 451817a67a3c89fc621731cd848febe50db78cf8..392cc4ab58e6aafaf51b09eaf68f7dbd4ae54c96 100644 (file)
@@ -31,7 +31,7 @@ type Fpxreg1 C.struct__fpxreg
 type Xmmreg1 C.struct__xmmreg
 type Fpstate1 C.struct__fpstate
 type Fpreg1 C.struct__fpreg
-type Sigaltstack C.struct_sigaltstack
+type SigaltstackT C.struct_sigaltstack
 type Mcontext C.mcontext_t
 type Ucontext C.ucontext_t
 type Sigcontext C.struct_sigcontext
index 60ecc69bb9ddc904aa919bfaa42b523785202e8a..980df9ec31a3df8c7ac0dd1501ab8ba02d364e5c 100644 (file)
@@ -139,7 +139,7 @@ type Timespec C.struct_timespec
 type Timeval C.struct_timeval
 type Sigaction C.struct_kernel_sigaction
 type Siginfo C.siginfo_t
-type Sigaltstack C.struct_sigaltstack
+type SigaltstackT C.struct_sigaltstack
 type Sigcontext C.struct_sigcontext
 type Ucontext C.struct_ucontext
 type Itimerval C.struct_itimerval
index db0a191542eefec20dcdf5fe8f4fc3b78325c91e..afd6897e30a86bb3a05f7724e81cf6a91bf29901 100644 (file)
@@ -115,7 +115,7 @@ const (
 )
 
 type Timespec C.struct_timespec
-type Sigaltstack C.struct_sigaltstack
+type SigaltstackT C.struct_sigaltstack
 type Sigcontext C.struct_sigcontext
 type Ucontext C.struct_ucontext
 type Timeval C.struct_timeval
index 8ebc3a9e1aa70fb7457926f8c2707c085d1adcc4..555b8f59515be55e381adccec9527db618b2e37d 100644 (file)
@@ -110,7 +110,7 @@ const (
 
 type Rtprio C.struct_rtprio
 type Lwpparams C.struct_lwp_params
-type Sigaltstack C.struct_sigaltstack
+type SigaltstackT C.struct_sigaltstack
 type Sigset C.struct___sigset
 type StackT C.stack_t
 
index 032b23574e3fb5853b3f4d0dcbbf69b45e45ac32..f86b9c6b9489dedae9ea034a793689871b6b6fce 100644 (file)
@@ -85,7 +85,7 @@ enum {
 
 typedef struct Rtprio Rtprio;
 typedef struct Lwpparams Lwpparams;
-typedef struct Sigaltstack Sigaltstack;
+typedef struct SigaltstackT SigaltstackT;
 typedef struct Sigset Sigset;
 typedef struct StackT StackT;
 typedef struct Siginfo Siginfo;
@@ -109,7 +109,7 @@ struct Lwpparams {
        int32   *tid1;
        int32   *tid2;
 };
-struct Sigaltstack {
+struct SigaltstackT {
        int8    *ss_sp;
        uint32  ss_size;
        int32   ss_flags;
index c37a72e72988d258e4775892a6a1e87a97eb8a0e..671555241da9db30f6832a373da9e24af45bc14f 100644 (file)
@@ -85,7 +85,7 @@ enum {
 
 typedef struct Rtprio Rtprio;
 typedef struct Lwpparams Lwpparams;
-typedef struct Sigaltstack Sigaltstack;
+typedef struct SigaltstackT SigaltstackT;
 typedef struct Sigset Sigset;
 typedef struct StackT StackT;
 typedef struct Siginfo Siginfo;
@@ -109,7 +109,7 @@ struct Lwpparams {
        int32   *tid1;
        int32   *tid2;
 };
-struct Sigaltstack {
+struct SigaltstackT {
        int8    *ss_sp;
        uint64  ss_size;
        int32   ss_flags;
index 2832583e06c6ac2edfe36d0de5b57fd943f4b9af..0253685aace7fc0bb8495066a491a51895a17324 100644 (file)
@@ -117,7 +117,7 @@ const (
 
 type Rtprio C.struct_rtprio
 type ThrParam C.struct_thr_param
-type Sigaltstack C.struct_sigaltstack
+type SigaltstackT C.struct_sigaltstack
 type Sigset C.struct___sigset
 type StackT C.stack_t
 
index e625079bc7f042a7c65cd437adcdb822a49a170e..156dccba48e667fac6888c7ffa4975c51a292cce 100644 (file)
@@ -89,7 +89,7 @@ enum {
 
 typedef struct Rtprio Rtprio;
 typedef struct ThrParam ThrParam;
-typedef struct Sigaltstack Sigaltstack;
+typedef struct SigaltstackT SigaltstackT;
 typedef struct Sigset Sigset;
 typedef struct StackT StackT;
 typedef struct Siginfo Siginfo;
@@ -119,7 +119,7 @@ struct ThrParam {
        Rtprio  *rtp;
        void    *spare[3];
 };
-struct Sigaltstack {
+struct SigaltstackT {
        int8    *ss_sp;
        uint32  ss_size;
        int32   ss_flags;
index 40476f9e4fc00976ed2635cceca33b16445e58bd..4ba8956a2c25a131a21f95660d4dca1c84c4f739 100644 (file)
@@ -89,7 +89,7 @@ enum {
 
 typedef struct Rtprio Rtprio;
 typedef struct ThrParam ThrParam;
-typedef struct Sigaltstack Sigaltstack;
+typedef struct SigaltstackT SigaltstackT;
 typedef struct Sigset Sigset;
 typedef struct StackT StackT;
 typedef struct Siginfo Siginfo;
@@ -120,7 +120,7 @@ struct ThrParam {
        Rtprio  *rtp;
        void    *spare[3];
 };
-struct Sigaltstack {
+struct SigaltstackT {
        int8    *ss_sp;
        uint64  ss_size;
        int32   ss_flags;
index 927d3a48b50c492c1d1d947251454ca04975c242..17deba68d1824d665f79c9e8854eb728d88868f7 100644 (file)
@@ -89,7 +89,7 @@ enum {
 
 typedef struct Rtprio Rtprio;
 typedef struct ThrParam ThrParam;
-typedef struct Sigaltstack Sigaltstack;
+typedef struct SigaltstackT SigaltstackT;
 typedef struct Sigset Sigset;
 typedef struct StackT StackT;
 typedef struct Siginfo Siginfo;
@@ -119,7 +119,7 @@ struct ThrParam {
        Rtprio  *rtp;
        void    *spare[3];
 };
-struct Sigaltstack {
+struct SigaltstackT {
        uint8   *ss_sp;
        uint32  ss_size;
        int32   ss_flags;
index 2df3f66d806c710383a323b6f3ac2f6af3b372cf..d19bb7a00ffc6f1db04ea28430fac4c3e0ddf1c3 100644 (file)
@@ -97,7 +97,7 @@ typedef struct Timespec Timespec;
 typedef struct Timeval Timeval;
 typedef struct SigactionT SigactionT;
 typedef struct Siginfo Siginfo;
-typedef struct Sigaltstack Sigaltstack;
+typedef struct SigaltstackT SigaltstackT;
 typedef struct Sigcontext Sigcontext;
 typedef struct Ucontext Ucontext;
 typedef struct Itimerval Itimerval;
@@ -156,7 +156,7 @@ struct Siginfo {
        int32   si_code;
        byte    _sifields[116];
 };
-struct Sigaltstack {
+struct SigaltstackT {
        byte    *ss_sp;
        int32   ss_flags;
        uint32  ss_size;
@@ -194,7 +194,7 @@ struct Sigcontext {
 struct Ucontext {
        uint32  uc_flags;
        Ucontext        *uc_link;
-       Sigaltstack     uc_stack;
+       SigaltstackT    uc_stack;
        Sigcontext      uc_mcontext;
        uint32  uc_sigmask;
 };
index 42826c39eebdc9e2fb6df0ca41e2b691c4a65cd9..73fd9947a72346bd929ca20bafaf99a2c506e823 100644 (file)
@@ -144,7 +144,7 @@ typedef struct Fpxreg1 Fpxreg1;
 typedef struct Xmmreg1 Xmmreg1;
 typedef struct Fpstate1 Fpstate1;
 typedef struct Fpreg1 Fpreg1;
-typedef struct Sigaltstack Sigaltstack;
+typedef struct SigaltstackT SigaltstackT;
 typedef struct Mcontext Mcontext;
 typedef struct Ucontext Ucontext;
 typedef struct Sigcontext Sigcontext;
@@ -200,7 +200,7 @@ struct Fpreg1 {
        uint16  significand[4];
        uint16  exponent;
 };
-struct Sigaltstack {
+struct SigaltstackT {
        byte    *ss_sp;
        int32   ss_flags;
        byte    Pad_cgo_0[4];
@@ -214,7 +214,7 @@ struct Mcontext {
 struct Ucontext {
        uint64  uc_flags;
        Ucontext        *uc_link;
-       Sigaltstack     uc_stack;
+       SigaltstackT    uc_stack;
        Mcontext        uc_mcontext;
        Usigset uc_sigmask;
        Fpstate __fpregs_mem;
index 8c17e3805b32a93537e4788400977876a0648d7b..61bd30d59c176613f954dc8576e438570a5a4c69 100644 (file)
@@ -88,8 +88,8 @@ struct Timespec {
        int32 tv_nsec;
 };
 
-typedef struct Sigaltstack Sigaltstack;
-struct Sigaltstack {
+typedef struct SigaltstackT SigaltstackT;
+struct SigaltstackT {
        void *ss_sp;
        int32 ss_flags;
        uint32 ss_size;
@@ -124,7 +124,7 @@ typedef struct Ucontext Ucontext;
 struct Ucontext {
        uint32 uc_flags;
        Ucontext *uc_link;
-       Sigaltstack uc_stack;
+       SigaltstackT uc_stack;
        Sigcontext uc_mcontext;
        uint32 uc_sigmask;
        int32 __unused[31];
index d1c4cbe96c5db4374217d049c0079c7599e2a83b..b27949e423f2e24ef9b9cb3f6840595127863d3e 100644 (file)
@@ -109,7 +109,7 @@ const (
        EVFILT_WRITE = C.EVFILT_WRITE
 )
 
-type Sigaltstack C.struct_sigaltstack
+type SigaltstackT C.struct_sigaltstack
 type Sigset C.sigset_t
 type Siginfo C.struct__ksiginfo
 
index fb23611990fa37d9208828bbee60497b768392d2..53d4b30bb74f9c22d349de49a10d2686f0e38291 100644 (file)
@@ -82,7 +82,7 @@ enum {
        EVFILT_WRITE    = 0x1,
 };
 
-typedef struct Sigaltstack Sigaltstack;
+typedef struct SigaltstackT SigaltstackT;
 typedef struct Sigset Sigset;
 typedef struct Siginfo Siginfo;
 typedef struct StackT StackT;
@@ -95,7 +95,7 @@ typedef struct KeventT KeventT;
 
 #pragma pack on
 
-struct Sigaltstack {
+struct SigaltstackT {
        byte    *ss_sp;
        uint32  ss_size;
        int32   ss_flags;
index f6ba3db189e65d0329141e441826177120a0317e..6227575c922ca729c65d871dcfb985938dc3ee97 100644 (file)
@@ -82,7 +82,7 @@ enum {
        EVFILT_WRITE    = 0x1,
 };
 
-typedef struct Sigaltstack Sigaltstack;
+typedef struct SigaltstackT SigaltstackT;
 typedef struct Sigset Sigset;
 typedef struct Siginfo Siginfo;
 typedef struct StackT StackT;
@@ -95,7 +95,7 @@ typedef struct KeventT KeventT;
 
 #pragma pack on
 
-struct Sigaltstack {
+struct SigaltstackT {
        byte    *ss_sp;
        uint64  ss_size;
        int32   ss_flags;
index 815d54749be887669aaf283a51581011e12b9357..115fa439a63febf10fa7056962e0c09f8d166d3d 100644 (file)
@@ -82,7 +82,7 @@ enum {
        EVFILT_WRITE    = 0x1,
 };
 
-typedef struct Sigaltstack Sigaltstack;
+typedef struct SigaltstackT SigaltstackT;
 typedef struct Sigset Sigset;
 typedef struct Siginfo Siginfo;
 typedef struct StackT StackT;
@@ -95,7 +95,7 @@ typedef struct KeventT KeventT;
 
 #pragma pack on
 
-struct Sigaltstack {
+struct SigaltstackT {
        byte    *ss_sp;
        uint32  ss_size;
        int32   ss_flags;
index 4a705796f088f3c3a56fcb8bd41dceeb4c6c63da..cf4e06d37b4a7025adc346d31a76ebb90aa3b6b7 100644 (file)
@@ -106,7 +106,7 @@ const (
 
 type Tfork C.struct___tfork
 
-type Sigaltstack C.struct_sigaltstack
+type SigaltstackT C.struct_sigaltstack
 type Sigcontext C.struct_sigcontext
 type Siginfo C.siginfo_t
 type Sigset C.sigset_t
index a63b182a041b1ecda8ededc8dd49fdb85f52f867..669a35c357c089736a0c27565f019bc0e12e24b7 100644 (file)
@@ -82,7 +82,7 @@ enum {
 };
 
 typedef struct Tfork Tfork;
-typedef struct Sigaltstack Sigaltstack;
+typedef struct SigaltstackT SigaltstackT;
 typedef struct Sigcontext Sigcontext;
 typedef struct Siginfo Siginfo;
 typedef struct StackT StackT;
@@ -99,7 +99,7 @@ struct Tfork {
        byte    *tf_stack;
 };
 
-struct Sigaltstack {
+struct SigaltstackT {
        byte    *ss_sp;
        uint32  ss_size;
        int32   ss_flags;
index 818ac35207719daacc83dcd5cc684769f0ff6f29..9877f8b4c28c7a799a8bf7103420878910da206a 100644 (file)
@@ -82,7 +82,7 @@ enum {
 };
 
 typedef struct Tfork Tfork;
-typedef struct Sigaltstack Sigaltstack;
+typedef struct SigaltstackT SigaltstackT;
 typedef struct Sigcontext Sigcontext;
 typedef struct Siginfo Siginfo;
 typedef struct StackT StackT;
@@ -99,7 +99,7 @@ struct Tfork {
        byte    *tf_stack;
 };
 
-struct Sigaltstack {
+struct SigaltstackT {
        byte    *ss_sp;
        uint64  ss_size;
        int32   ss_flags;
index 8dcbb08b7d17d18f6b9a90ee8c936be82a4d93e6..ba44e5fd4d774b760374023a1cdce8c5ee04eb7c 100644 (file)
@@ -133,7 +133,7 @@ const (
 
 type SemT C.sem_t
 
-type Sigaltstack C.struct_sigaltstack
+type SigaltstackT C.struct_sigaltstack
 type Sigset C.sigset_t
 type StackT C.stack_t
 
index 08727b017e61bf67a6da31d470c20c5fc5aabe37..cb1cfeadccca44cc6afd07b044004901b944af70 100644 (file)
@@ -101,7 +101,7 @@ enum {
 };
 
 typedef struct SemT SemT;
-typedef struct Sigaltstack Sigaltstack;
+typedef struct SigaltstackT SigaltstackT;
 typedef struct Sigset Sigset;
 typedef struct StackT StackT;
 typedef struct Siginfo Siginfo;
@@ -126,7 +126,7 @@ struct SemT {
        uint64  sem_pad2[2];
 };
 
-struct Sigaltstack {
+struct SigaltstackT {
        byte    *ss_sp;
        uint64  ss_size;
        int32   ss_flags;
index fddeede85d7c661164ee3baea8b25e0a9435d0ec..4fb71478bf055e06b24887870f1ed17d9e3334da 100644 (file)
@@ -8,7 +8,7 @@ typedef byte* kevent_udata;
 
 int32  runtime·lwp_create(Lwpparams*);
 void   runtime·sigpanic(void);
-void   runtime·sigaltstack(Sigaltstack*, Sigaltstack*);
+void   runtime·sigaltstack(SigaltstackT*, SigaltstackT*);
 struct sigaction;
 void   runtime·sigaction(int32, struct sigaction*, struct sigaction*);
 void   runtime·sigprocmask(Sigset *, Sigset *);
index 4b2c253308f98c0e89f1f4482882195921ec4cd1..ec0be3161fdb2a2966e13ea38ab4db8573d697b8 100644 (file)
@@ -8,7 +8,7 @@ typedef byte* kevent_udata;
 
 int32  runtime·thr_new(ThrParam*, int32);
 void   runtime·sigpanic(void);
-void   runtime·sigaltstack(Sigaltstack*, Sigaltstack*);
+void   runtime·sigaltstack(SigaltstackT*, SigaltstackT*);
 struct sigaction;
 void   runtime·sigaction(int32, struct sigaction*, struct sigaction*);
 void   runtime·sigprocmask(Sigset *, Sigset *);
index d3677f2e6c8505b137343981040424f23469f680..34521cc86a9f98366a68b955fdb845431f84490f 100644 (file)
@@ -332,7 +332,7 @@ runtime·getsig(int32 i)
 void
 runtime·signalstack(byte *p, int32 n)
 {
-       Sigaltstack st;
+       SigaltstackT st;
 
        st.ss_sp = p;
        st.ss_size = n;
index 84f516d50c3050ec346c1e571076d19c0117f3e7..c475d3240530f62a413623dde64504baf2adaac6 100644 (file)
@@ -11,7 +11,7 @@ int32 runtime·clone(int32, void*, M*, G*, void(*)(void));
 struct SigactionT;
 int32  runtime·rt_sigaction(uintptr, struct SigactionT*, void*, uintptr);
 
-void   runtime·sigaltstack(Sigaltstack*, Sigaltstack*);
+void   runtime·sigaltstack(SigaltstackT*, SigaltstackT*);
 void   runtime·sigpanic(void);
 void runtime·setitimer(int32, Itimerval*, Itimerval*);
 
index 16e9833af5df91095bea12787e8d5344f72a3b8b..a7995df92ab660902c8d036e42ff3f42be66a1eb 100644 (file)
@@ -16,7 +16,7 @@ void  runtime·sigpanic(void);
 
 void   runtime·setitimer(int32, Itimerval*, Itimerval*);
 void   runtime·sigaction(int32, struct sigaction*, struct sigaction*);
-void   runtime·sigaltstack(Sigaltstack*, Sigaltstack*);
+void   runtime·sigaltstack(SigaltstackT*, SigaltstackT*);
 void   runtime·sigprocmask(int32, Sigset*, Sigset*);
 void   runtime·unblocksignals(void);
 int32  runtime·sysctl(uint32*, uint32, byte*, uintptr*, byte*, uintptr);
index bbfde39e26efcea318c5cacbe05499acccf18ead..955432ebd6fc9bc9a5f8570e7a2e1aef9f9814a4 100644 (file)
@@ -16,7 +16,7 @@ void  runtime·sigpanic(void);
 
 void   runtime·setitimer(int32, Itimerval*, Itimerval*);
 void   runtime·sigaction(int32, struct sigaction*, struct sigaction*);
-void   runtime·sigaltstack(Sigaltstack*, Sigaltstack*);
+void   runtime·sigaltstack(SigaltstackT*, SigaltstackT*);
 Sigset runtime·sigprocmask(int32, Sigset);
 void   runtime·unblocksignals(void);
 int32  runtime·sysctl(uint32*, uint32, byte*, uintptr*, byte*, uintptr);
index 42295aa75462356266f893ea825a74614eece668..d064384e84005351413eed97e733b2563cfa3347 100644 (file)
@@ -536,7 +536,7 @@ runtime·sigaction(int32 sig, struct SigactionT* act, struct SigactionT* oact)
 }
 
 /* int32 */ void
-runtime·sigaltstack(Sigaltstack* ss, Sigaltstack* oss)
+runtime·sigaltstack(SigaltstackT* ss, SigaltstackT* oss)
 {
        runtime·sysvicall2(libc·sigaltstack, (uintptr)ss, (uintptr)oss);
 }
index 20a0027205bcde23310849708a55d7de94f09f68..ba08771cb723798c929ab41c9d707063e31b6fcd 100644 (file)
@@ -16,7 +16,7 @@ void  runtime·sigpanic(void);
 
 void   runtime·setitimer(int32, Itimerval*, Itimerval*);
 void   runtime·sigaction(int32, struct SigactionT*, struct SigactionT*);
-void   runtime·sigaltstack(Sigaltstack*, Sigaltstack*);
+void   runtime·sigaltstack(SigaltstackT*, SigaltstackT*);
 void   runtime·sigprocmask(int32, Sigset*, Sigset*);
 void   runtime·unblocksignals(void);
 int32  runtime·sysctl(uint32*, uint32, byte*, uintptr*, byte*, uintptr);