summaryrefslogtreecommitdiff
path: root/libgo/go/syscall
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-10-24 04:57:08 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-10-24 04:57:08 +0000
commit7f42c28ed20af6fe96d8155505efb9dc9ec74ce9 (patch)
tree372061d3e6fc84df61eea9bdda4ebefaa0ba4712 /libgo/go/syscall
parent2f4154462c1532f9860359c27c70b061c7f8c4be (diff)
downloadgcc-7f42c28ed20af6fe96d8155505efb9dc9ec74ce9.tar.gz
Some minor fixes to the rewritten syscall library.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180363 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go/syscall')
-rw-r--r--libgo/go/syscall/libcall_linux.go9
-rw-r--r--libgo/go/syscall/libcall_posix.go5
2 files changed, 8 insertions, 6 deletions
diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
index d3e1d3a90c5..a469873c054 100644
--- a/libgo/go/syscall/libcall_linux.go
+++ b/libgo/go/syscall/libcall_linux.go
@@ -196,6 +196,10 @@ func PtraceDetach(pid int) (errno int) { return ptrace(PTRACE_DETACH, pid, 0, 0)
// //sys Fstatfs(fd int, buf *Statfs_t) (errno int)
// //fstatfs(fd int, buf *Statfs_t) int
+// FIXME: Only available as a syscall.
+// //sysnb Gettid() (tid int)
+// //gettid() Pid_t
+
//sys Ioperm(from int, num int, on int) (errno int)
//ioperm(from _C_long, num _C_long, on int) int
@@ -298,8 +302,9 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
//sys Tee(rfd int, wfd int, len int, flags int) (n int64, errno int)
//tee(rfd int, wfd int, len Size_t, flags uint) Ssize_t
-//sysnb Tgkill(tgid int, tid int, sig int) (errno int)
-//tgkill(tgid int, tid int, sig int) int
+// FIXME: Only available as a syscall.
+// //sysnb Tgkill(tgid int, tid int, sig int) (errno int)
+// //tgkill(tgid int, tid int, sig int) int
//sys unlinkat(dirfd int, path string, flags int) (errno int)
//unlinkat(dirfd int, path *byte, flags int) int
diff --git a/libgo/go/syscall/libcall_posix.go b/libgo/go/syscall/libcall_posix.go
index ea7dfc89af7..b83c2b5d97e 100644
--- a/libgo/go/syscall/libcall_posix.go
+++ b/libgo/go/syscall/libcall_posix.go
@@ -236,9 +236,6 @@ func FDZero(set *FdSet) {
//sysnb Getrusage(who int, rusage *Rusage) (errno int)
//getrusage(who int, rusage *Rusage) int
-//sysnb Gettid() (tid int)
-//gettid() Pid_t
-
//sysnb gettimeofday(tv *Timeval, tz *byte) (errno int)
//gettimeofday(tv *Timeval, tz *byte) int
func Gettimeofday(tv *Timeval) (errno int) {
@@ -334,7 +331,7 @@ func Settimeofday(tv *Timeval) (errno int) {
// //times(tms *Tms) _clock_t
//sysnb Umask(mask int) (oldmask int)
-//umark(mask Mode_t) Mode_t
+//umask(mask Mode_t) Mode_t
//sys Unlink(path string) (errno int)
//unlink(path *byte) int