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
2a1ee42e
Commit
2a1ee42e
authored
May 24, 2010
by
Alex Brainman
Committed by
Andrew Gerrand
May 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix windows build
R=golang-dev, adg CC=golang-dev
https://golang.org/cl/1209048
parent
2d8aee45
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
syscall_windows.go
src/pkg/syscall/syscall_windows.go
+11
-0
No files found.
src/pkg/syscall/syscall_windows.go
View file @
2a1ee42e
...
...
@@ -70,6 +70,12 @@ func UTF16ToString(s []uint16) string {
// the UTF-8 string s, with a terminating NUL added.
func
StringToUTF16Ptr
(
s
string
)
*
uint16
{
return
&
StringToUTF16
(
s
)[
0
]
}
func
NsecToTimeval
(
nsec
int64
)
(
tv
Timeval
)
{
tv
.
Sec
=
int32
(
nsec
/
1e9
)
tv
.
Usec
=
int32
(
nsec
%
1e9
/
1e3
)
return
}
// dll helpers
// implemented in ../pkg/runtime/windows/syscall.cgo
...
...
@@ -376,6 +382,11 @@ func Gettimeofday(tv *Timeval) (errno int) {
return
0
}
// TODO(brainman): implement Utimes, or rewrite os.file.Chtimes() instead
func
Utimes
(
path
string
,
tv
[]
Timeval
)
(
errno
int
)
{
return
EWINDOWS
}
// TODO(brainman): fix all needed for os
const
(
...
...
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