Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 145 for syscall (0.25 sec)

  1. cmd/xl-storage-errors_test.go

    package cmd
    
    import (
    	"os"
    	"runtime"
    	"syscall"
    	"testing"
    )
    
    func TestSysErrors(t *testing.T) {
    	pathErr := &os.PathError{Err: syscall.ENAMETOOLONG}
    	ok := isSysErrTooLong(pathErr)
    	if !ok {
    		t.Fatalf("Unexpected error expecting %s", syscall.ENAMETOOLONG)
    	}
    	pathErr = &os.PathError{Err: syscall.ENOTDIR}
    	ok = isSysErrNotDir(pathErr)
    	if !ok {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 1.7K bytes
    - Viewed (0)
  2. internal/http/dial_linux.go

    			_ = syscall.SetsockoptInt(fd, syscall.IPPROTO_TCP, syscall.TCP_KEEPCNT, 5)
    
    			// Wait time after successful probe in seconds.
    			// ~ cat /proc/sys/net/ipv4/tcp_keepalive_intvl (defaults to 75 secs, we reduce it to 15 secs)
    			_ = syscall.SetsockoptInt(fd, syscall.IPPROTO_TCP, syscall.TCP_KEEPINTVL, 15)
    
    			// Set tcp user timeout in addition to the keep-alive - tcp-keepalive is not enough to close a socket
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Jun 07 16:53:05 GMT 2023
    - 4.4K bytes
    - Viewed (3)
  3. api/go1.1.txt

    pkg syscall (darwin-386), const B115200 ideal-int
    pkg syscall (darwin-386), const B1200 = 1200
    pkg syscall (darwin-386), const B1200 ideal-int
    pkg syscall (darwin-386), const B134 = 134
    pkg syscall (darwin-386), const B134 ideal-int
    pkg syscall (darwin-386), const B14400 = 14400
    pkg syscall (darwin-386), const B14400 ideal-int
    pkg syscall (darwin-386), const B150 = 150
    pkg syscall (darwin-386), const B150 ideal-int
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
  4. misc/wasm/wasm_exec.js

    							this._ids.delete(v);
    							this._idPool.push(id);
    						}
    					},
    
    					// func stringVal(value string) ref
    					"syscall/js.stringVal": (sp) => {
    						sp >>>= 0;
    						storeValue(sp + 24, loadString(sp + 8));
    					},
    
    					// func valueGet(v ref, p string) ref
    					"syscall/js.valueGet": (sp) => {
    						sp >>>= 0;
    						const result = Reflect.get(loadValue(sp + 8), loadString(sp + 16));
    JavaScript
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  5. src/archive/tar/stat_actime1.go

    // license that can be found in the LICENSE file.
    
    //go:build aix || linux || dragonfly || openbsd || solaris
    
    package tar
    
    import (
    	"syscall"
    	"time"
    )
    
    func statAtime(st *syscall.Stat_t) time.Time {
    	return time.Unix(st.Atim.Unix())
    }
    
    func statCtime(st *syscall.Stat_t) time.Time {
    	return time.Unix(st.Ctim.Unix())
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Oct 28 18:17:57 GMT 2021
    - 431 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/issue1435.go

    }
    
    // test1435 test 9 glibc implemented setuid/gid syscall functions are
    // mapped.  This test is a slightly more expansive test than that of
    // src/syscall/syscall_linux_test.go:TestSetuidEtc() insofar as it
    // launches concurrent threads from C code via CGo and validates that
    // they are subject to the system calls being tested. For the actual
    // Go functionality being tested here, the syscall_linux_test version
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jul 28 21:31:41 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  7. cmd/os_unix.go

    	}
    	consumed = int(dirent.Reclen)
    	if direntInode(dirent) == 0 { // File absent in directory.
    		return
    	}
    	switch dirent.Type {
    	case syscall.DT_REG:
    		typ = 0
    	case syscall.DT_DIR:
    		typ = os.ModeDir
    	case syscall.DT_LNK:
    		typ = os.ModeSymlink
    	default:
    		// Skip all other file types. Revisit if/when this code needs
    		// to handle such files, MinIO is only interested in
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  8. src/bytes/boundary_test.go

    func dangerousSlice(t *testing.T) []byte {
    	pagesize := syscall.Getpagesize()
    	b, err := syscall.Mmap(0, 0, 3*pagesize, syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_ANONYMOUS|syscall.MAP_PRIVATE)
    	if err != nil {
    		t.Fatalf("mmap failed %s", err)
    	}
    	err = syscall.Mprotect(b[:pagesize], syscall.PROT_NONE)
    	if err != nil {
    		t.Fatalf("mprotect low failed %s\n", err)
    	}
    	err = syscall.Mprotect(b[2*pagesize:], syscall.PROT_NONE)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Nov 30 20:05:58 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  9. api/next/62254.txt

    pkg net, type ListenConfig struct, KeepAliveConfig KeepAliveConfig #62254
    pkg syscall (windows-386), const WSAENOPROTOOPT = 10042 #62254
    pkg syscall (windows-386), const WSAENOPROTOOPT Errno #62254
    pkg syscall (windows-amd64), const WSAENOPROTOOPT = 10042 #62254
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Feb 20 06:04:31 GMT 2024
    - 758 bytes
    - Viewed (0)
  10. internal/http/check_port_linux.go

    	lc := &net.ListenConfig{
    		Control: func(network, address string, c syscall.RawConn) error {
    			c.Control(func(fdPtr uintptr) {
    				if opts.Interface != "" {
    					// When interface is specified look for specifically port availability on
    					// the specified interface if any.
    					_ = syscall.SetsockoptString(int(fdPtr), syscall.SOL_SOCKET, syscall.SO_BINDTODEVICE, opts.Interface)
    				}
    			})
    			return nil
    		},
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed May 03 21:12:25 GMT 2023
    - 1.9K bytes
    - Viewed (0)
Back to top