]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: retry fix openbsd build
authorMatthew Dempsky <mdempsky@google.com>
Sat, 30 Aug 2014 06:13:17 +0000 (23:13 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 30 Aug 2014 06:13:17 +0000 (23:13 -0700)
Tested on linux/amd64 too this time.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=dave, golang-codereviews, iant, rsc
https://golang.org/cl/140050043

src/pkg/runtime/defs_openbsd.go
src/pkg/runtime/defs_openbsd_386.h
src/pkg/runtime/defs_openbsd_amd64.h
src/pkg/runtime/os_openbsd.c

index cf4e06d37b4a7025adc346d31a76ebb90aa3b6b7..39224c988c4254579ca55a7cc7e412ec86577b8f 100644 (file)
@@ -104,7 +104,7 @@ const (
        EVFILT_WRITE = C.EVFILT_WRITE
 )
 
-type Tfork C.struct___tfork
+type TforkT C.struct___tfork
 
 type SigaltstackT C.struct_sigaltstack
 type Sigcontext C.struct_sigcontext
@@ -118,4 +118,4 @@ type Timespec C.struct_timespec
 type Timeval C.struct_timeval
 type Itimerval C.struct_itimerval
 
-type Kevent C.struct_kevent
+type KeventT C.struct_kevent
index 669a35c357c089736a0c27565f019bc0e12e24b7..6b77e0084a79c7c3f5026c432b7c4a8e26fc6c4c 100644 (file)
@@ -81,7 +81,7 @@ enum {
        EVFILT_WRITE    = -0x2,
 };
 
-typedef struct Tfork Tfork;
+typedef struct TforkT TforkT;
 typedef struct SigaltstackT SigaltstackT;
 typedef struct Sigcontext Sigcontext;
 typedef struct Siginfo Siginfo;
@@ -93,7 +93,7 @@ typedef struct KeventT KeventT;
 
 #pragma pack on
 
-struct Tfork {
+struct TforkT {
        byte    *tf_tcb;
        int32   *tf_tid;
        byte    *tf_stack;
index 9877f8b4c28c7a799a8bf7103420878910da206a..761e8e47dfd1cfe37afda9dfb775b9337fbff5ba 100644 (file)
@@ -81,7 +81,7 @@ enum {
        EVFILT_WRITE    = -0x2,
 };
 
-typedef struct Tfork Tfork;
+typedef struct TforkT TforkT;
 typedef struct SigaltstackT SigaltstackT;
 typedef struct Sigcontext Sigcontext;
 typedef struct Siginfo Siginfo;
@@ -93,7 +93,7 @@ typedef struct KeventT KeventT;
 
 #pragma pack on
 
-struct Tfork {
+struct TforkT {
        byte    *tf_tcb;
        int32   *tf_tid;
        byte    *tf_stack;
index a7463853147e5540e1139c6b84f8035f8ceae00b..dbd12a1282657e75c05a4c1b9a991879802c51d9 100644 (file)
@@ -26,7 +26,7 @@ extern SigTab runtime·sigtab[];
 static Sigset sigset_none;
 static Sigset sigset_all = ~(Sigset)0;
 
-extern int32 runtime·tfork(void *param, uintptr psize, M *mp, G *gp, void (*fn)(void));
+extern int32 runtime·tfork(TforkT *param, uintptr psize, M *mp, G *gp, void (*fn)(void));
 extern int32 runtime·thrsleep(void *ident, int32 clock_id, void *tsp, void *lock, const int32 *abort);
 extern int32 runtime·thrwakeup(void *ident, int32 n);
 
@@ -130,7 +130,7 @@ runtime·semawakeup(M *mp)
 void
 runtime·newosproc(M *mp, void *stk)
 {
-       Tfork param;
+       TforkT param;
        Sigset oset;
        int32 ret;
 
@@ -147,7 +147,7 @@ runtime·newosproc(M *mp, void *stk)
        param.tf_stack = stk;
 
        oset = runtime·sigprocmask(SIG_SETMASK, sigset_all);
-       ret = runtime·tfork((byte*)&param, sizeof(param), mp, mp->g0, runtime·mstart);
+       ret = runtime·tfork(&param, sizeof(param), mp, mp->g0, runtime·mstart);
        runtime·sigprocmask(SIG_SETMASK, oset);
 
        if(ret < 0) {