- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 743 for unixOS (0.34 sec)
-
internal/http/dial_linux.go
// Enable custom socket send/recv buffers. if opts.SendBufSize > 0 { _ = unix.SetsockoptInt(fd, unix.SOL_SOCKET, unix.SO_SNDBUF, opts.SendBufSize) } if opts.RecvBufSize > 0 { _ = unix.SetsockoptInt(fd, unix.SOL_SOCKET, unix.SO_RCVBUF, opts.RecvBufSize) } // Enable TCP open // https://lwn.net/Articles/508865/ - 32k queue size.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 22 23:07:14 UTC 2024 - 4.8K bytes - Viewed (0) -
src/os/user/cgo_lookup_syscall.go
var result *_C_struct_group errno = unix.Getgrgid(gid, &grp, buf, size, &result) return grp, result != nil, errno } const ( _C__SC_GETPW_R_SIZE_MAX = unix.SC_GETPW_R_SIZE_MAX _C__SC_GETGR_R_SIZE_MAX = unix.SC_GETGR_R_SIZE_MAX )
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/net/cgo_unix_syscall.go
package net import ( "internal/syscall/unix" "runtime" "syscall" "unsafe" ) const ( _C_AF_INET = syscall.AF_INET _C_AF_INET6 = syscall.AF_INET6 _C_AF_UNSPEC = syscall.AF_UNSPEC _C_EAI_AGAIN = unix.EAI_AGAIN _C_EAI_NONAME = unix.EAI_NONAME _C_EAI_SERVICE = unix.EAI_SERVICE _C_EAI_NODATA = unix.EAI_NODATA _C_EAI_OVERFLOW = unix.EAI_OVERFLOW _C_EAI_SYSTEM = unix.EAI_SYSTEM
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 07 23:50:56 UTC 2024 - 3K bytes - Viewed (0) -
src/net/cgo_darwin.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package net import "internal/syscall/unix"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 07 21:05:53 UTC 2022 - 298 bytes - Viewed (0) -
src/net/file_unix_test.go
// license that can be found in the LICENSE file. //go:build unix package net import ( "internal/syscall/unix" "testing" ) // For backward compatibility, opening a net.Conn, turning it into an os.File, // and calling the Fd method should return a blocking descriptor. func TestFileFdBlocks(t *testing.T) { if !testableNetwork("unix") { t.Skipf("skipping: unix sockets not supported") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 22 16:48:53 UTC 2023 - 2.1K bytes - Viewed (0) -
tools/istio-iptables/pkg/validation/vld_unix.go
return conn.Control(func(descriptor uintptr) { err := unix.SetsockoptInt(int(descriptor), unix.SOL_SOCKET, unix.SO_REUSEADDR, 1) if err != nil { log.Errorf("Fail to set fd %d SO_REUSEADDR with error %v", descriptor, err) } err = unix.SetsockoptInt(int(descriptor), unix.SOL_SOCKET, unix.SO_REUSEPORT, 1) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 08 03:52:24 UTC 2024 - 3K bytes - Viewed (0) -
src/net/unixsock_windows_test.go
if !windows.SupportUnixSocket() { t.Skip("unix test") } handler := func(ls *localServer, ln Listener) {} for _, laddr := range []string{"", testUnixAddr(t)} { laddr := laddr taddr := testUnixAddr(t) ta, err := ResolveUnixAddr("unix", taddr) if err != nil { t.Fatal(err) } ln, err := ListenUnix("unix", ta) if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 12 17:24:57 UTC 2024 - 1.8K bytes - Viewed (0) -
pkg/util/flock/flock_unix.go
limitations under the License. */ package flock import "golang.org/x/sys/unix" // Acquire acquires a lock on a file for the duration of the process. This method // is reentrant. func Acquire(path string) error { fd, err := unix.Open(path, unix.O_CREAT|unix.O_RDWR|unix.O_CLOEXEC, 0600) if err != nil { return err } // We don't need to close the fd since we should hold
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 1.1K bytes - Viewed (0) -
src/internal/testpty/pty_darwin.go
package testpty import ( "internal/syscall/unix" "os" "syscall" ) func open() (pty *os.File, processTTY string, err error) { m, err := unix.PosixOpenpt(syscall.O_RDWR) if err != nil { return nil, "", ptyError("posix_openpt", err) } if err := unix.Grantpt(m); err != nil { syscall.Close(m) return nil, "", ptyError("grantpt", err) } if err := unix.Unlockpt(m); err != nil { syscall.Close(m)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 16 19:00:19 UTC 2022 - 790 bytes - Viewed (0) -
pilot/cmd/pilot-agent/app/fds_unix.go
// limitations under the License. package app import "golang.org/x/sys/unix" func raiseFileLimits() (uint64, error) { rlimit := unix.Rlimit{} if err := unix.Getrlimit(unix.RLIMIT_NOFILE, &rlimit); err != nil { return 0, err } rlimit.Cur = rlimit.Max if err := unix.Setrlimit(unix.RLIMIT_NOFILE, &rlimit); err != nil { return 0, err } return rlimit.Cur, nil
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 06 22:16:26 UTC 2024 - 1.1K bytes - Viewed (0)