- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 225 for _C_int (0.12 sec)
-
src/syscall/syscall_dragonfly.go
Type uint8 Nlen uint8 Alen uint8 Slen uint8 Data [12]int8 Rcf uint16 Route [16]uint16 raw RawSockaddrDatalink } // Translate "kern.hostname" to []_C_int{0,1,2,3}. func nametomib(name string) (mib []_C_int, err error) { const siz = unsafe.Sizeof(mib[0]) // NOTE(rsc): It seems strange to set the buffer to have // size CTL_MAXNAME+2 but use only CTL_MAXNAME
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 18:12:35 UTC 2023 - 8.5K bytes - Viewed (0) -
src/syscall/exec_bsd.go
goto childerror } } if sys.Foreground { // This should really be pid_t, however _C_int (aka int32) is // generally equivalent. pgrp = _C_int(sys.Pgid) if pgrp == 0 { r1, _, err1 = RawSyscall(SYS_GETPID, 0, 0, 0) if err1 != 0 { goto childerror } pgrp = _C_int(r1) } // Place process group in foreground.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 29 18:51:35 UTC 2023 - 7.9K bytes - Viewed (0) -
src/internal/syscall/unix/tcsetpgrp_linux.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package unix import ( "syscall" "unsafe" ) // Note that pgid should really be pid_t, however _C_int (aka int32) is // generally equivalent. func Tcsetpgrp(fd int, pgid int32) (err error) { _, _, errno := syscall.Syscall6(syscall.SYS_IOCTL, uintptr(fd), uintptr(syscall.TIOCSPGRP), uintptr(unsafe.Pointer(&pgid)), 0, 0, 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 10:09:15 UTC 2024 - 537 bytes - Viewed (0) -
src/os/user/cgo_lookup_syscall.go
// license that can be found in the LICENSE file. //go:build !osusergo && darwin package user import ( "internal/syscall/unix" "syscall" ) type _C_char = byte type _C_int = int32 type _C_gid_t = uint32 type _C_uid_t = uint32 type _C_size_t = uintptr type _C_struct_group = unix.Group type _C_struct_passwd = unix.Passwd type _C_long = int64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 11 04:31:34 UTC 2022 - 2.2K bytes - Viewed (0) -
src/syscall/exec_freebsd.go
goto childerror } } if sys.Foreground { // This should really be pid_t, however _C_int (aka int32) is // generally equivalent. pgrp = _C_int(sys.Pgid) if pgrp == 0 { r1, _, err1 = RawSyscall(SYS_GETPID, 0, 0, 0) if err1 != 0 { goto childerror } pgrp = _C_int(r1) } // Place process group in foreground.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 29 18:51:35 UTC 2023 - 8.4K bytes - Viewed (0) -
src/internal/syscall/unix/tcsetpgrp_bsd.go
package unix import ( "syscall" "unsafe" ) //go:linkname ioctlPtr syscall.ioctlPtr func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) // Note that pgid should really be pid_t, however _C_int (aka int32) is // generally equivalent. func Tcsetpgrp(fd int, pgid int32) (err error) { return ioctlPtr(fd, syscall.TIOCSPGRP, unsafe.Pointer(&pgid))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 10:09:15 UTC 2024 - 588 bytes - Viewed (0) -
src/syscall/syscall_openbsd1.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 18:12:35 UTC 2023 - 534 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_darwin.go
} //sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS_SYSCTL func Uname(uname *Utsname) error { mib := []_C_int{CTL_KERN, KERN_OSTYPE} n := unsafe.Sizeof(uname.Sysname) if err := sysctl(mib, &uname.Sysname[0], &n, nil, 0); err != nil { return err } mib = []_C_int{CTL_KERN, KERN_HOSTNAME} n = unsafe.Sizeof(uname.Nodename)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 10 16:32:44 UTC 2023 - 20.7K bytes - Viewed (0) -
src/syscall/exec_libc2.go
goto childerror } } if sys.Foreground { // This should really be pid_t, however _C_int (aka int32) is // generally equivalent. pgrp = _C_int(sys.Pgid) if pgrp == 0 { r1, _, err1 = rawSyscall(abi.FuncPCABI0(libc_getpid_trampoline), 0, 0, 0) if err1 != 0 { goto childerror } pgrp = _C_int(r1) } // Place process group in foreground.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 29 18:51:35 UTC 2023 - 8.2K bytes - Viewed (0) -
src/syscall/syscall_darwin.go
Family uint8 Index uint16 Type uint8 Nlen uint8 Alen uint8 Slen uint8 Data [12]int8 raw RawSockaddrDatalink } // Translate "kern.hostname" to []_C_int{0,1,2,3}. func nametomib(name string) (mib []_C_int, err error) { const siz = unsafe.Sizeof(mib[0]) // NOTE(rsc): It seems strange to set the buffer to have // size CTL_MAXNAME+2 but use only CTL_MAXNAME
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:50 UTC 2024 - 11K bytes - Viewed (0)