Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
0e5cd9d3
Commit
0e5cd9d3
authored
Nov 08, 2011
by
Joel Sing
Committed by
Russ Cox
Nov 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: add timespec definition for freebsd
R=golang-dev, devon.odell CC=golang-dev
https://golang.org/cl/5340058
parent
cabe0e6a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
defs.h
src/pkg/runtime/freebsd/386/defs.h
+6
-0
defs.h
src/pkg/runtime/freebsd/amd64/defs.h
+6
-0
defs.c
src/pkg/runtime/freebsd/defs.c
+2
-0
No files found.
src/pkg/runtime/freebsd/386/defs.h
View file @
0e5cd9d3
...
...
@@ -173,6 +173,12 @@ struct Ucontext {
byte
pad_godefs_0
[
12
];
};
typedef
struct
Timespec
Timespec
;
struct
Timespec
{
int32
tv_sec
;
int32
tv_nsec
;
};
typedef
struct
Timeval
Timeval
;
struct
Timeval
{
int32
tv_sec
;
...
...
src/pkg/runtime/freebsd/amd64/defs.h
View file @
0e5cd9d3
...
...
@@ -184,6 +184,12 @@ struct Ucontext {
byte
pad_godefs_0
[
12
];
};
typedef
struct
Timespec
Timespec
;
struct
Timespec
{
int64
tv_sec
;
int64
tv_nsec
;
};
typedef
struct
Timeval
Timeval
;
struct
Timeval
{
int64
tv_sec
;
...
...
src/pkg/runtime/freebsd/defs.c
View file @
0e5cd9d3
...
...
@@ -104,5 +104,7 @@ typedef siginfo_t $Siginfo;
typedef
mcontext_t
$
Mcontext
;
typedef
ucontext_t
$
Ucontext
;
typedef
struct
timespec
$
Timespec
;
typedef
struct
timeval
$
Timeval
;
typedef
struct
itimerval
$
Itimerval
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment