diff options
author | Russ Cox <rsc@golang.org> | 2009-06-16 17:17:02 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-06-16 17:17:02 -0700 |
commit | 67d5e00af1c62a237623278b0181b98f25a3179c (patch) | |
tree | e6f2ed8488a281a586664e0a0085aa6fe227365e /src/pkg/syscall/syscall_linux_amd64.go | |
parent | 16cf893acaf7106a53a595ac6ca736026a617f93 (diff) | |
download | golang-67d5e00af1c62a237623278b0181b98f25a3179c.tar.gz |
386 system call fixes:
* use 64-bit file system calls (Linux, Darwin)
* use 32-bit [sic] uid/gid calls (Linux)
* fix sockets on Linux
Darwin/386 works again.
Linux/386 is better but must never have worked;
there are still bugs surrounding the creation of new
threads in the runtime package.
R=austin
DELTA=1332 (673 added, 614 deleted, 45 changed)
OCL=30327
CL=30380
Diffstat (limited to 'src/pkg/syscall/syscall_linux_amd64.go')
-rw-r--r-- | src/pkg/syscall/syscall_linux_amd64.go | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/src/pkg/syscall/syscall_linux_amd64.go b/src/pkg/syscall/syscall_linux_amd64.go index a2a58c35b..1792a098c 100644 --- a/src/pkg/syscall/syscall_linux_amd64.go +++ b/src/pkg/syscall/syscall_linux_amd64.go @@ -6,13 +6,35 @@ package syscall import "syscall" +//sys Chown(path string, uid int, gid int) (errno int) +//sys Fchown(fd int, uid int, gid int) (errno int) +//sys Fstat(fd int, stat *Stat_t) (errno int) +//sys Fstatfs(fd int, buf *Statfs_t) (errno int) +//sys Getegid() (egid int) +//sys Geteuid() (euid int) +//sys Getgid() (gid int) +//sys Getuid() (uid int) +//sys Lchown(path string, uid int, gid int) (errno int) +//sys Listen(s int, n int) (errno int) +//sys Lstat(path string, stat *Stat_t) (errno int) +//sys Seek(fd int, offset int64, whence int) (off int64, errno int) = SYS_LSEEK +//sys Setfsgid(gid int) (errno int) +//sys Setfsuid(uid int) (errno int) +//sys Setgid(gid int) (errno int) +//sys Setregid(rgid int, egid int) (errno int) +//sys Setresgid(rgid int, egid int, sgid int) (errno int) +//sys Setresuid(ruid int, euid int, suid int) (errno int) +//sys Setreuid(ruid int, euid int) (errno int) +//sys Shutdown(fd int, how int) (errno int) +//sys Stat(path string, stat *Stat_t) (errno int) +//sys Statfs(path string, buf *Statfs_t) (errno int) //sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, errno int) //sys bind(s int, addr uintptr, addrlen _Socklen) (errno int) //sys connect(s int, addr uintptr, addrlen _Socklen) (errno int) -//sys socket(domain int, typ int, proto int) (fd int, errno int) +//sys getgroups(n int, list *_Gid_t) (nn int, errno int) +//sys setgroups(n int, list *_Gid_t) (errno int) //sys setsockopt(s int, level int, name int, val uintptr, vallen int) (errno int) -//sys Listen(s int, n int) (errno int) -//sys Shutdown(fd int, how int) (errno int) +//sys socket(domain int, typ int, proto int) (fd int, errno int) func Getpagesize() int { return 4096 |