Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
src/pkg/runtime/freebsd/386/defs.h
src/pkg/runtime/freebsd/386/defs.h
+6
-0
src/pkg/runtime/freebsd/amd64/defs.h
src/pkg/runtime/freebsd/amd64/defs.h
+6
-0
src/pkg/runtime/freebsd/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