Source file
src/syscall/exec_solaris_test.go
Documentation: syscall
1
2
3
4
5
6
7
8 package syscall
9
10 import "unsafe"
11
12
13
14
15
16
17
18 var (
19 libc_Getpgid,
20 libc_Getpgrp libcFunc
21 )
22
23 func Getpgid(pid int) (pgid int, err error) {
24 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Getpgid)), 1, uintptr(pid), 0, 0, 0, 0, 0)
25 pgid = int(r0)
26 if e1 != 0 {
27 err = e1
28 }
29 return
30 }
31
32 func Getpgrp() (pgrp int) {
33 r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&libc_Getpgrp)), 0, 0, 0, 0, 0, 0, 0)
34 pgrp = int(r0)
35 return
36 }
37
38 var Ioctl = ioctl
39
View as plain text