diff options
Diffstat (limited to 'libgo/go/syscall/libcall_posix.go')
-rw-r--r-- | libgo/go/syscall/libcall_posix.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libgo/go/syscall/libcall_posix.go b/libgo/go/syscall/libcall_posix.go index 3901fe094eb..4f25b82649a 100644 --- a/libgo/go/syscall/libcall_posix.go +++ b/libgo/go/syscall/libcall_posix.go @@ -128,8 +128,8 @@ func (w WaitStatus) Stopped() bool func (w WaitStatus) Continued() bool func (w WaitStatus) CoreDump() bool func (w WaitStatus) ExitStatus() int -func (w WaitStatus) Signal() int -func (w WaitStatus) StopSignal() int +func (w WaitStatus) Signal() Signal +func (w WaitStatus) StopSignal() Signal func (w WaitStatus) TrapCause() int //sys Mkfifo(path string, mode uint32) (err error) @@ -138,7 +138,7 @@ func (w WaitStatus) TrapCause() int //sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) //select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) int -const nfdbits = unsafe.Sizeof(fds_bits_type) * 8 +const nfdbits = int(unsafe.Sizeof(fds_bits_type) * 8) type FdSet struct { Bits [(FD_SETSIZE + nfdbits - 1) / nfdbits]fds_bits_type @@ -253,7 +253,7 @@ func Gettimeofday(tv *Timeval) (err error) { //sysnb Getuid() (uid int) //getuid() Uid_t -//sysnb Kill(pid int, sig int) (err error) +//sysnb Kill(pid int, sig Signal) (err error) //kill(pid Pid_t, sig int) int //sys Lchown(path string, uid int, gid int) (err error) @@ -268,7 +268,7 @@ func Gettimeofday(tv *Timeval) (err error) { //sys Mknod(path string, mode uint32, dev int) (err error) //mknod(path *byte, mode Mode_t, dev _dev_t) int -//sys Mount(source string, target string, fstype string, flags int, data string) (err error) +//sys Mount(source string, target string, fstype string, flags uintptr, data string) (err error) //mount(source *byte, target *byte, fstype *byte, flags _C_long, data *byte) int //sys Nanosleep(time *Timespec, leftover *Timespec) (err error) |