mirror of
https://github.com/golang/go
synced 2024-11-02 11:50:30 +00:00
runtime: add timespec definition for freebsd
R=golang-dev, devon.odell CC=golang-dev https://golang.org/cl/5340058
This commit is contained in:
parent
cabe0e6ad3
commit
0e5cd9d3f6
3 changed files with 14 additions and 0 deletions
|
@ -173,6 +173,12 @@ struct Ucontext {
|
||||||
byte pad_godefs_0[12];
|
byte pad_godefs_0[12];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef struct Timespec Timespec;
|
||||||
|
struct Timespec {
|
||||||
|
int32 tv_sec;
|
||||||
|
int32 tv_nsec;
|
||||||
|
};
|
||||||
|
|
||||||
typedef struct Timeval Timeval;
|
typedef struct Timeval Timeval;
|
||||||
struct Timeval {
|
struct Timeval {
|
||||||
int32 tv_sec;
|
int32 tv_sec;
|
||||||
|
|
|
@ -184,6 +184,12 @@ struct Ucontext {
|
||||||
byte pad_godefs_0[12];
|
byte pad_godefs_0[12];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef struct Timespec Timespec;
|
||||||
|
struct Timespec {
|
||||||
|
int64 tv_sec;
|
||||||
|
int64 tv_nsec;
|
||||||
|
};
|
||||||
|
|
||||||
typedef struct Timeval Timeval;
|
typedef struct Timeval Timeval;
|
||||||
struct Timeval {
|
struct Timeval {
|
||||||
int64 tv_sec;
|
int64 tv_sec;
|
||||||
|
|
|
@ -104,5 +104,7 @@ typedef siginfo_t $Siginfo;
|
||||||
|
|
||||||
typedef mcontext_t $Mcontext;
|
typedef mcontext_t $Mcontext;
|
||||||
typedef ucontext_t $Ucontext;
|
typedef ucontext_t $Ucontext;
|
||||||
|
|
||||||
|
typedef struct timespec $Timespec;
|
||||||
typedef struct timeval $Timeval;
|
typedef struct timeval $Timeval;
|
||||||
typedef struct itimerval $Itimerval;
|
typedef struct itimerval $Itimerval;
|
||||||
|
|
Loading…
Reference in a new issue