- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 79 for illumos (0.13 sec)
-
src/os/exec/read3.go
fmt.Printf("readlink(%q) = %q, %v\n", fdfile, link, err) var args []string switch runtime.GOOS { case "plan9": args = []string{fmt.Sprintf("/proc/%d/fd", os.Getpid())} case "aix", "solaris", "illumos": args = []string{fmt.Sprint(os.Getpid())} default: args = []string{"-p", fmt.Sprint(os.Getpid())} } // Determine which command to use to display open files. ofcmd := "lsof" switch runtime.GOOS {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 26 14:49:07 UTC 2022 - 2.2K bytes - Viewed (0) -
src/runtime/mem_bsd.go
const _sunosMAP_NORESERVE = 0x40 func sysReserveOS(v unsafe.Pointer, n uintptr) unsafe.Pointer { flags := int32(_MAP_ANON | _MAP_PRIVATE) if GOOS == "solaris" || GOOS == "illumos" { // Be explicit that we don't want to reserve swap space // for PROT_NONE anonymous mappings. This avoids an issue // wherein large mappings can cause fork to fail. flags |= _sunosMAP_NORESERVE }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 19:05:10 UTC 2023 - 2.2K bytes - Viewed (0) -
src/cmd/go/internal/lockedfile/internal/filelock/filelock_unix.go
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin || dragonfly || freebsd || illumos || linux || netbsd || openbsd package filelock import ( "io/fs" "syscall" ) type lockType int16 const ( readLock lockType = syscall.LOCK_SH writeLock lockType = syscall.LOCK_EX )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 17 02:24:35 UTC 2023 - 723 bytes - Viewed (0) -
src/runtime/security_issetugid.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin || dragonfly || freebsd || illumos || netbsd || openbsd || solaris package runtime // secureMode is only ever mutated in schedinit, so we don't need to worry about // synchronization primitives. var secureMode bool func initSecureMode() { secureMode = issetugid() == 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 06 18:49:01 UTC 2023 - 502 bytes - Viewed (0) -
src/runtime/pprof/pprof_rusage.go
func addMaxRSS(w io.Writer) { var rssToBytes uintptr switch runtime.GOOS { case "aix", "android", "dragonfly", "freebsd", "linux", "netbsd", "openbsd": rssToBytes = 1024 case "darwin", "ios": rssToBytes = 1 case "illumos", "solaris": rssToBytes = uintptr(syscall.Getpagesize()) default: panic("unsupported OS") } var rusage syscall.Rusage err := syscall.Getrusage(syscall.RUSAGE_SELF, &rusage) if err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 30 23:58:34 UTC 2022 - 792 bytes - Viewed (0) -
src/os/user/getgrouplist_unix.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build cgo && !osusergo && (dragonfly || freebsd || (!android && linux) || netbsd || openbsd || (solaris && !illumos)) package user /* #include <unistd.h> #include <sys/types.h> #include <grp.h> static int mygetgrouplist(const char* user, gid_t group, gid_t* groups, int* ngroups) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 11 04:31:34 UTC 2022 - 657 bytes - Viewed (0) -
src/runtime/cgo/gcc_stack_unix.c
#if defined(__GLIBC__) || (defined(__sun) && !defined(__illumos__)) // pthread_getattr_np is a GNU extension supported in glibc. // Solaris is not glibc but does support pthread_getattr_np // (and the fallback doesn't work...). Illumos does not. pthread_getattr_np(pthread_self(), &attr); // GNU extension pthread_attr_getstack(&attr, &addr, &size); // low address #elif defined(__illumos__) pthread_attr_get_np(pthread_self(), &attr);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 03:44:11 UTC 2024 - 1.5K bytes - Viewed (0) -
src/crypto/rand/rand_getrandom.go
// is returned by a single call to getrandom() on systems where int // has a size of 32 bits. maxGetRandomRead = (1 << 25) - 1 case "dragonfly", "freebsd", "illumos", "solaris": maxGetRandomRead = 1 << 8 default: panic("no maximum specified for GetRandom") } altGetRandom = batched(getRandom, maxGetRandomRead) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 00:26:43 UTC 2023 - 1.4K bytes - Viewed (0) -
src/net/tcpsockopt_unix.go
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build aix || dragonfly || freebsd || illumos || linux || netbsd package net import ( "runtime" "syscall" "time" ) func setKeepAliveIdle(fd *netFD, d time.Duration) error { if d == 0 { d = defaultTCPKeepAliveIdle } else if d < 0 { return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:17:21 UTC 2024 - 1.3K bytes - Viewed (0) -
src/net/tcpsock_unix.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build (!windows && !solaris) || illumos package net import "syscall" // SetKeepAliveConfig configures keep-alive messages sent by the operating system. func (c *TCPConn) SetKeepAliveConfig(config KeepAliveConfig) error { if !c.ok() { return syscall.EINVAL }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 03:10:07 UTC 2024 - 1.1K bytes - Viewed (0)