diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-11-02 19:58:15 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-11-02 19:58:15 +0000 |
commit | ec3838a735f40f14d6ba6756080b63eb5d357474 (patch) | |
tree | 94239fb004a89b271f52619c1b46a269b9aa863b /libgo/go | |
parent | 525ce91010c1606b6d8cb0155ef23321bb556aad (diff) | |
download | gcc-ec3838a735f40f14d6ba6756080b63eb5d357474.zip gcc-ec3838a735f40f14d6ba6756080b63eb5d357474.tar.gz gcc-ec3838a735f40f14d6ba6756080b63eb5d357474.tar.bz2 |
syscall: Change raw_ioctl cmd type to uintptr.
Attempt to fix a build bug report:
../../../../libgo/go/syscall/exec_linux.go:185:37: error: integer constant overflow
_, err1 = raw_ioctl_ptr(sys.Ctty, TIOCSPGRP, unsafe.Pointer(&pgrp))
Reviewed-on: https://go-review.googlesource.com/16539
From-SVN: r229674
Diffstat (limited to 'libgo/go')
-rw-r--r-- | libgo/go/syscall/exec_unix.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/syscall/exec_unix.go b/libgo/go/syscall/exec_unix.go index 7427c57..218d78c 100644 --- a/libgo/go/syscall/exec_unix.go +++ b/libgo/go/syscall/exec_unix.go @@ -41,10 +41,10 @@ import ( //sysnb raw_close(fd int) (err Errno) //close(fd _C_int) _C_int -//sysnb raw_ioctl(fd int, cmd int, val int) (rval int, err Errno) +//sysnb raw_ioctl(fd int, cmd uintptr, val int) (rval int, err Errno) //__go_ioctl(fd _C_int, cmd _C_int, val _C_int) _C_int -//sysnb raw_ioctl_ptr(fd int, cmd int, val unsafe.Pointer) (rval int, err Errno) +//sysnb raw_ioctl_ptr(fd int, cmd uintptr, val unsafe.Pointer) (rval int, err Errno) //__go_ioctl_ptr(fd _C_int, cmd _C_int, val unsafe.Pointer) _C_int //sysnb raw_execve(argv0 *byte, argv **byte, envv **byte) (err Errno) |