Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 381 for unixOS (0.25 sec)

  1. src/cmd/dist/build.go

    func packagefile(pkg string) string {
    	return pathf("%s/pkg/obj/go-bootstrap/%s_%s/%s.a", goroot, goos, goarch, pkg)
    }
    
    // unixOS is the set of GOOS values matched by the "unix" build tag.
    // This is the same list as in go/build/syslist.go and
    // cmd/go/internal/imports/build.go.
    var unixOS = map[string]bool{
    	"aix":       true,
    	"android":   true,
    	"darwin":    true,
    	"dragonfly": true,
    	"freebsd":   true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  2. src/go/build/build.go

    		return true
    	}
    	if ctxt.GOOS == "illumos" && name == "solaris" {
    		return true
    	}
    	if ctxt.GOOS == "ios" && name == "darwin" {
    		return true
    	}
    	if name == "unix" && unixOS[ctxt.GOOS] {
    		return true
    	}
    	if name == "boringcrypto" {
    		name = "goexperiment.boringcrypto" // boringcrypto is an old name for goexperiment.boringcrypto
    	}
    
    	// other tags
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  3. pkg/util/filesystem/util_windows_test.go

    	// Replace the temporary file with an actual Unix domain socket file
    	os.Remove(testFile)
    	ta, err := net.ResolveUnixAddr("unix", testFile)
    	require.NoError(t, err, "Failed to ResolveUnixAddr.")
    	unixln, err := net.ListenUnix("unix", ta)
    	require.NoError(t, err, "Failed to ListenUnix.")
    
    	// Wait for the goroutine to finish, then close the socket
    	wg.Wait()
    	unixln.Close()
    }
    
    func TestAbsWithSlash(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 09:10:26 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. 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)
  5. pkg/serviceaccount/claims_test.go

    		{
    			name: "deleted now",
    			time: &metav1.Time{Time: time.Unix(nowUnix, 0)},
    		},
    		{
    			name: "deleted near past",
    			time: &metav1.Time{Time: time.Unix(nowUnix-1, 0)},
    		},
    		{
    			name: "deleted near future",
    			time: &metav1.Time{Time: time.Unix(nowUnix+1, 0)},
    		},
    		{
    			name: "deleted now-leeway",
    			time: &metav1.Time{Time: time.Unix(nowUnix-60, 0)},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. pkg/proxy/util/nfacct/handler.go

    		// netlink message header
    		// (definition: https://github.com/torvalds/linux/blob/v6.7/include/uapi/linux/netlink.h#L44-L58)
    		NlMsghdr: unix.NlMsghdr{
    			Len:   uint32(unix.SizeofNlMsghdr),
    			Type:  uint16(cmd | (unix.NFNL_SUBSYS_ACCT << 8)),
    			Flags: flags,
    		},
    		Sockets: map[int]*nl.SocketHandle{
    			unix.NETLINK_NETFILTER: {Socket: n.socket},
    		},
    		Data: []nl.NetlinkRequestData{
    			// netfilter generic message
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 06:47:50 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. pkg/util/filesystem/util_windows.go

    	"k8s.io/klog/v2"
    )
    
    const (
    	// Amount of time to wait between attempting to use a Unix domain socket.
    	// As detailed in https://github.com/kubernetes/kubernetes/issues/104584
    	// the first attempt will most likely fail, hence the need to retry
    	socketDialRetryPeriod = 1 * time.Second
    	// Overall timeout value to dial a Unix domain socket, including retries
    	socketDialTimeout = 4 * time.Second
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 17:13:59 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. src/os/stat_freebsd.go

    package os
    
    import (
    	"internal/filepathlite"
    	"syscall"
    	"time"
    )
    
    func fillFileStatFromSys(fs *fileStat, name string) {
    	fs.name = filepathlite.Base(name)
    	fs.size = fs.sys.Size
    	fs.modTime = time.Unix(fs.sys.Mtimespec.Unix())
    	fs.mode = FileMode(fs.sys.Mode & 0777)
    	switch fs.sys.Mode & syscall.S_IFMT {
    	case syscall.S_IFBLK:
    		fs.mode |= ModeDevice
    	case syscall.S_IFCHR:
    		fs.mode |= ModeDevice | ModeCharDevice
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  9. src/os/stat_linux.go

    package os
    
    import (
    	"internal/filepathlite"
    	"syscall"
    	"time"
    )
    
    func fillFileStatFromSys(fs *fileStat, name string) {
    	fs.name = filepathlite.Base(name)
    	fs.size = fs.sys.Size
    	fs.modTime = time.Unix(fs.sys.Mtim.Unix())
    	fs.mode = FileMode(fs.sys.Mode & 0777)
    	switch fs.sys.Mode & syscall.S_IFMT {
    	case syscall.S_IFBLK:
    		fs.mode |= ModeDevice
    	case syscall.S_IFCHR:
    		fs.mode |= ModeDevice | ModeCharDevice
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. src/os/stat_netbsd.go

    package os
    
    import (
    	"internal/filepathlite"
    	"syscall"
    	"time"
    )
    
    func fillFileStatFromSys(fs *fileStat, name string) {
    	fs.name = filepathlite.Base(name)
    	fs.size = fs.sys.Size
    	fs.modTime = time.Unix(fs.sys.Mtimespec.Unix())
    	fs.mode = FileMode(fs.sys.Mode & 0777)
    	switch fs.sys.Mode & syscall.S_IFMT {
    	case syscall.S_IFBLK:
    		fs.mode |= ModeDevice
    	case syscall.S_IFCHR:
    		fs.mode |= ModeDevice | ModeCharDevice
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top