aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/syscall
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-02-18 01:22:02 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-02-18 01:22:02 +0000
commit5d46bf05387ab101906629b706336868503305bb (patch)
tree53da2a6937ceae4d7350d6a3e8340d6159e28bbd /libgo/go/syscall
parent195a2e9d1fe97cced3cc1abf13214c1e4804c7a3 (diff)
downloadgcc-5d46bf05387ab101906629b706336868503305bb.zip
gcc-5d46bf05387ab101906629b706336868503305bb.tar.gz
gcc-5d46bf05387ab101906629b706336868503305bb.tar.bz2
libgo: Add mount flags, fallocate, statfs.
From-SVN: r184365
Diffstat (limited to 'libgo/go/syscall')
-rw-r--r--libgo/go/syscall/libcall_linux.go15
1 files changed, 6 insertions, 9 deletions
diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
index aa14401..8a3d8c0 100644
--- a/libgo/go/syscall/libcall_linux.go
+++ b/libgo/go/syscall/libcall_linux.go
@@ -178,9 +178,8 @@ func PtraceDetach(pid int) (err error) { return ptrace(PTRACE_DETACH, pid, 0, 0)
//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
//faccessat(dirfd int, pathname *byte, mode int, flags int) int
-// FIXME: Only in glibc 2.10 and later.
-// //sys Fallocate(fd int, mode uint32, off int64, len int64) (err error)
-// //fallocate(fd int, mode int, offset Offset_t, len Offset_t) int
+//sys Fallocate(fd int, mode uint32, off int64, len int64) (err error)
+//fallocate(fd int, mode int, offset Offset_t, len Offset_t) int
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
//fchmodat(dirfd int, pathname *byte, mode Mode_t, flags int) int
@@ -191,9 +190,8 @@ func PtraceDetach(pid int) (err error) { return ptrace(PTRACE_DETACH, pid, 0, 0)
//sys Flock(fd int, how int) (err error)
//flock(fd int, how int) int
-// FIXME: mksysinfo statfs
-// //sys Fstatfs(fd int, buf *Statfs_t) (err error)
-// //fstatfs(fd int, buf *Statfs_t) int
+//sys Fstatfs(fd int, buf *Statfs_t) (err error)
+//fstatfs(fd int, buf *Statfs_t) int
func Gettid() (tid int) {
r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
@@ -283,9 +281,8 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
return
}
-// FIXME: mksysinfo statfs
-// //sys Statfs(path string, buf *Statfs_t) (err error)
-// //statfs(path *byte, buf *Statfs_t) int
+//sys Statfs(path string, buf *Statfs_t) (err error)
+//statfs(path *byte, buf *Statfs_t) int
// FIXME: Only in glibc 2.6 and later.
// //sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)