syscall: Change raw_ioctl cmd type to uintptr.
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 2 Nov 2015 19:58:15 +0000 (19:58 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 2 Nov 2015 19:58:15 +0000 (19:58 +0000)
    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

gcc/go/gofrontend/MERGE
libgo/go/syscall/exec_unix.go

index 6216047500b4bf8736ea67be5b9ab538dcc78336..8fe2b207c7501e5a3c4b67ad479a658ea0c5a505 100644 (file)
@@ -1,4 +1,4 @@
-6b4b969f552b8f9ac87a715d5ad06e52bd031b60
+e9550aa81d38ada037f675f50cbc09e6f1c35c12
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 7427c57b7031be683cafb848a4d2a957d5ed7f50..218d78cf146e529ff36db9da8b2197bb83cab4d3 100644 (file)
@@ -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)