Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for sysconf (0.12 sec)

  1. src/os/exec_unix_test.go

    	if runtime.GOOS == "solaris" || runtime.GOOS == "illumos" {
    		// Solaris/Illumos have a lower limit, above which wait returns
    		// EINVAL (see waitid in usr/src/uts/common/os/exit.c in
    		// illumos). This is configurable via sysconf(_SC_MAXPID), but
    		// we'll just take the default.
    		pid = 30000-1
    	}
    
    	p, err := FindProcess(pid)
    	if err != nil {
    		t.Fatalf("FindProcess(math.MaxInt32) got err %v, want nil", err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. src/runtime/os_aix.go

    		throw("sem_post")
    	}
    }
    
    func osinit() {
    	// Call miniterrno so that we can safely make system calls
    	// before calling minit on m0.
    	miniterrno()
    
    	ncpu = int32(sysconf(__SC_NPROCESSORS_ONLN))
    	physPageSize = sysconf(__SC_PAGE_SIZE)
    }
    
    // newosproc0 is a version of newosproc that can be called before the runtime
    // is initialized.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. src/internal/poll/writev.go

    	}
    	defer fd.writeUnlock()
    	if err := fd.pd.prepareWrite(fd.isFile); err != nil {
    		return 0, err
    	}
    
    	var iovecs []syscall.Iovec
    	if fd.iovecs != nil {
    		iovecs = *fd.iovecs
    	}
    	// TODO: read from sysconf(_SC_IOV_MAX)? The Linux default is
    	// 1024 and this seems conservative enough for now. Darwin's
    	// UIO_MAXIOV also seems to be 1024.
    	maxVec := 1024
    	if runtime.GOOS == "aix" || runtime.GOOS == "solaris" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. src/runtime/os3_solaris.go

    //go:cgo_import_dynamic libc_sigaction sigaction "libc.so"
    //go:cgo_import_dynamic libc_sigaltstack sigaltstack "libc.so"
    //go:cgo_import_dynamic libc_sigprocmask sigprocmask "libc.so"
    //go:cgo_import_dynamic libc_sysconf sysconf "libc.so"
    //go:cgo_import_dynamic libc_usleep usleep "libc.so"
    //go:cgo_import_dynamic libc_write write "libc.so"
    //go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so"
    
    //go:linkname libc____errno libc____errno
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. go.mod

    	github.com/safchain/ethtool v0.3.0 // indirect
    	github.com/shoenig/go-m1cpu v0.1.6 // indirect
    	github.com/tidwall/match v1.1.1 // indirect
    	github.com/tidwall/pretty v1.2.1 // indirect
    	github.com/tklauser/go-sysconf v0.3.14 // indirect
    	github.com/tklauser/numcpus v0.8.0 // indirect
    	github.com/unrolled/secure v1.14.0 // indirect
    	github.com/vbauerster/mpb/v8 v8.7.3 // indirect
    	github.com/xdg/stringprep v1.0.3 // indirect
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:53:53 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  6. go.sum

    github.com/tinylib/msgp v1.1.9 h1:SHf3yoO2sGA0veCJeCBYLHuttAVFHGm2RHgNodW7wQU=
    github.com/tinylib/msgp v1.1.9/go.mod h1:BCXGB54lDD8qUEPmiG0cQQUANC4IUQyB2ItS2UDlO/k=
    github.com/tklauser/go-sysconf v0.3.14 h1:g5vzr9iPFFz24v2KZXs/pvpvh8/V9Fw6vQK5ZZb78yU=
    github.com/tklauser/go-sysconf v0.3.14/go.mod h1:1ym4lWMLUOhuBOPGtRcJm7tEGX4SCYNEEEtghGG/8uY=
    github.com/tklauser/numcpus v0.8.0 h1:Mx4Wwe/FjZLeQsK/6kt2EOepwwSl7SmJrK5bV/dXYgY=
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:53:53 UTC 2024
    - 85.8K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    	if r0 != 0 {
    		err = errnoErr2(e1, e2)
    	}
    	return
    }
    
    func ClockGettime(clockid int32, ts *Timespec) error {
    
    	var ticks_per_sec uint32 = 100 //TODO(kenan): value is currently hardcoded; need sysconf() call otherwise
    	var nsec_per_sec int64 = 1000000000
    
    	if ts == nil {
    		return EFAULT
    	}
    	if clockid == CLOCK_REALTIME || clockid == CLOCK_MONOTONIC {
    		var nanotime int64 = runtime.Nanotime1()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  8. src/net/conf.go

    	// than fallbackOrder to use the Go resolver with that order.
    
    	dnsConf = getSystemDNSConfig()
    
    	if canUseCgo && dnsConf.err != nil && !errors.Is(dnsConf.err, fs.ErrNotExist) && !errors.Is(dnsConf.err, fs.ErrPermission) {
    		// We can't read the resolv.conf file, so use cgo if we can.
    		return hostLookupCgo, dnsConf
    	}
    
    	if canUseCgo && dnsConf.unknownOpt {
    		// We didn't recognize something in resolv.conf,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  9. src/net/conf_test.go

    	order, _ = cnf.addrLookupOrder(nil, "192.0.2.1")
    	if order != hostLookupCgo {
    		t.Errorf("addrLookupOrder returned: %v, want cgo", order)
    	}
    
    }
    
    func setSystemNSS(nss *nssConf, addDur time.Duration) {
    	nssConfig.mu.Lock()
    	nssConfig.nssConf = nss
    	nssConfig.mu.Unlock()
    	nssConfig.acquireSema()
    	nssConfig.lastChecked = time.Now().Add(addDur)
    	nssConfig.releaseSema()
    }
    
    func TestSystemConf(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:46:36 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. testing/integ-test/src/integTest/groovy/org/gradle/integtests/DependencyResolutionFromTaskContextIntegrationTest.groovy

                    @OutputFile
                    abstract RegularFileProperty getOutputFile()
    
                    @Internal
                    Set<File> classpath = project.configurations["myconf"].files
                    BadTask() {
                        println("creating bad task")
                    }
                    @TaskAction
                    void printIt() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top