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
e83cd7f7
Commit
e83cd7f7
authored
Dec 20, 2011
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: a round of fixes
TBR=r CC=golang-dev
https://golang.org/cl/5503052
parent
01507b9a
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
3 deletions
+22
-3
pclntab_test.go
src/pkg/debug/gosym/pclntab_test.go
+2
-1
inotify_linux_test.go
src/pkg/exp/inotify/inotify_linux_test.go
+5
-0
Makefile
src/pkg/runtime/Makefile
+1
-1
gcc_setenv.c
src/pkg/runtime/cgo/gcc_setenv.c
+2
-0
trigger.go
src/pkg/runtime/cgo/trigger.go
+10
-0
runtime.h
src/pkg/runtime/runtime.h
+2
-1
No files found.
src/pkg/debug/gosym/pclntab_test.go
View file @
e83cd7f7
...
...
@@ -13,7 +13,8 @@ import (
func
dotest
()
bool
{
// For now, only works on ELF platforms.
return
syscall
.
OS
==
"linux"
&&
os
.
Getenv
(
"GOARCH"
)
==
"amd64"
// TODO: convert to work with new go tool
return
false
&&
syscall
.
OS
==
"linux"
&&
os
.
Getenv
(
"GOARCH"
)
==
"amd64"
}
func
getTable
(
t
*
testing
.
T
)
*
Table
{
...
...
src/pkg/exp/inotify/inotify_linux_test.go
View file @
e83cd7f7
...
...
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build linux
package
inotify
import
(
...
...
@@ -17,6 +19,9 @@ func TestInotifyEvents(t *testing.T) {
t
.
Fatalf
(
"NewWatcher() failed: %s"
,
err
)
}
t
.
Logf
(
"NEEDS TO BE CONVERTED TO NEW GO TOOL"
)
// TODO
return
// Add a watch for "_test"
err
=
watcher
.
Watch
(
"_test"
)
if
err
!=
nil
{
...
...
src/pkg/runtime/Makefile
View file @
e83cd7f7
...
...
@@ -137,7 +137,7 @@ $(pkgdir)/%.h: %.h
clean
:
clean-local
clean-local
:
rm
-f
$(AUTOHFILES)
rm
-f
$(AUTOHFILES)
runtime_defs.go version
*
.go
arch_GOARCH.h
:
arch_$(GOARCH).h
cp
$^
$@
...
...
src/pkg/runtime/cgo/gcc_setenv.c
View file @
e83cd7f7
...
...
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build darwin freebsd linux netbsd openbsd
#include "libcgo.h"
#include <stdlib.h>
...
...
src/pkg/runtime/cgo/trigger.go
View file @
e83cd7f7
...
...
@@ -7,4 +7,14 @@
package
cgo
/*
#cgo darwin LDFLAGS: -lpthread
#cgo freebsd LDFLAGS: -lpthread
#cgo linux LDFLAGS: -lpthread
#cgo netbsd LDFLAGS: -lpthread
#cgo openbsd LDFLAGS: -lpthread
#cgo windows LDFLAGS: -lm -lmthreads
*/
import
"C"
src/pkg/runtime/runtime.h
View file @
e83cd7f7
...
...
@@ -635,7 +635,8 @@ void runtime·futexwakeup(uint32*, uint32);
* low level C-called
*/
uint8
*
runtime
·
mmap
(
byte
*
,
uintptr
,
int32
,
int32
,
int32
,
uint32
);
void
runtime
·
munmap
(
uint8
*
,
uintptr
);
void
runtime
·
munmap
(
byte
*
,
uintptr
);
void
runtime
·
madvise
(
byte
*
,
uintptr
,
int32
);
void
runtime
·
memclr
(
byte
*
,
uintptr
);
void
runtime
·
setcallerpc
(
void
*
,
void
*
);
void
*
runtime
·
getcallerpc
(
void
*
);
...
...
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