- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for SysctlUint32 (0.3 sec)
-
src/syscall/rlimit_darwin.go
func adjustFileLimit(lim *Rlimit) { // On older macOS, setrlimit(RLIMIT_NOFILE, lim) with lim.Cur = infinity fails. // Set to the value of kern.maxfilesperproc instead. n, err := SysctlUint32("kern.maxfilesperproc") if err != nil { return } if lim.Cur > uint64(n) { lim.Cur = uint64(n) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 15 17:18:32 UTC 2023 - 593 bytes - Viewed (0) -
src/vendor/golang.org/x/net/route/sys_dragonfly.go
ifanm := &wireFormat{extOff: sizeofIfAnnouncemsghdrDragonFlyBSD4, bodyOff: sizeofIfAnnouncemsghdrDragonFlyBSD4} ifanm.parse = ifanm.parseInterfaceAnnounceMessage rel, _ := syscall.SysctlUint32("kern.osreldate") if rel >= 500705 { // https://github.com/DragonFlyBSD/DragonFlyBSD/commit/43a373152df2d405c9940983e584e6a25e76632d // but only the size of struct ifa_msghdr actually changed rtmVersion = 7
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 05 19:54:32 UTC 2022 - 2.7K bytes - Viewed (0) -
src/syscall/exec_freebsd_test.go
t.Errorf("failed to cleanup jail: %v", err) } }) return int(id), root } func TestJailAttach(t *testing.T) { if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" { jailed, err := syscall.SysctlUint32("security.jail.jailed") if err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(2) } if jailed != 1 { t.Fatalf("jailed = %d, want 1", jailed) } return } testenv.MustHaveGoBuild(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 22 20:38:48 UTC 2023 - 2.4K bytes - Viewed (0) -
src/vendor/golang.org/x/net/route/sys_freebsd.go
ifmam = &wireFormat{extOff: sizeofIfmaMsghdrFreeBSD10, bodyOff: sizeofIfmaMsghdrFreeBSD10} ifanm = &wireFormat{extOff: sizeofIfAnnouncemsghdrFreeBSD10, bodyOff: sizeofIfAnnouncemsghdrFreeBSD10} } rel, _ := syscall.SysctlUint32("kern.osreldate") switch { case rel < 800000: if compatFreeBSD32 { ifm.bodyOff = sizeofIfMsghdrFreeBSD7Emu } else { ifm.bodyOff = sizeofIfMsghdrFreeBSD7 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 05 19:54:32 UTC 2022 - 4.7K bytes - Viewed (0) -
src/syscall/syscall_dragonfly.go
// http://lists.dragonflybsd.org/pipermail/users/2019-September/358280.html const _dragonflyABIChangeVersion = 500705 func supportsABI(ver uint32) bool { osreldateOnce.Do(func() { osreldate, _ = SysctlUint32("kern.osreldate") }) return osreldate >= ver } type SockaddrDatalink struct { Len uint8 Family uint8 Index uint16 Type uint8 Nlen uint8 Alen uint8 Slen uint8
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 18:12:35 UTC 2023 - 8.5K bytes - Viewed (0)