Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 98 for sysconf (0.17 sec)

  1. src/runtime/os_illumos.go

    		}
    
    		// Swap the blocks around so that we can fetch the next value
    		t := rblk
    		rblk = rblkprev
    		rblkprev = t
    		flag = _RCTL_NEXT
    	}
    
    	return capval
    }
    
    func getncpu() int32 {
    	n := int32(sysconf(__SC_NPROCESSORS_ONLN))
    	if n < 1 {
    		return 1
    	}
    
    	if cents := int32(getcpucap()); cents > 0 {
    		// Convert from a percentage of CPUs to a number of CPUs,
    		// rounding up to make use of a fractional CPU
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 28 18:06:12 UTC 2019
    - 3.9K bytes
    - Viewed (0)
  2. src/runtime/os2_aix.go

    	if int32(r) == -1 {
    		println("syscall osyield failed: ", hex(err))
    		throw("syscall osyield")
    	}
    }
    
    //go:nosplit
    func sysconf(name int32) uintptr {
    	r, _ := syscall1(&libc_sysconf, uintptr(name))
    	if int32(r) == -1 {
    		throw("syscall sysconf")
    	}
    	return r
    }
    
    // pthread functions returns its error code in the main return value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go

    //go:cgo_import_dynamic libc_statvfs statvfs "libc.so"
    //go:cgo_import_dynamic libc_symlink symlink "libc.so"
    //go:cgo_import_dynamic libc_sync sync "libc.so"
    //go:cgo_import_dynamic libc_sysconf sysconf "libc.so"
    //go:cgo_import_dynamic libc_times times "libc.so"
    //go:cgo_import_dynamic libc_truncate truncate "libc.so"
    //go:cgo_import_dynamic libc_fsync fsync "libc.so"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 59.7K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_solaris.go

    //sys	Stat(path string, stat *Stat_t) (err error)
    //sys	Statvfs(path string, vfsstat *Statvfs_t) (err error)
    //sys	Symlink(path string, link string) (err error)
    //sys	Sync() (err error)
    //sys	Sysconf(which int) (n int64, err error)
    //sysnb	Times(tms *Tms) (ticks uintptr, err error)
    //sys	Truncate(path string, length int64) (err error)
    //sys	Fsync(fd int) (err error)
    //sys	Ftruncate(fd int, length int64) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 31.1K 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/main/webapp/js/admin/plugins/form-validator/jsconf.js

    !function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a){"use strict";a.formUtils.registerLoadedModule("jsconf"),a.setupValidation=function(b){var c=a(b.form||"form");a.each(b.validate||b.validation||{},function(b,d){var e;e="#"===b[0]?a(b):"."===b[0]?c.find(b):c.find('*[name="'+b+'"]'),e.attr("data-validation",d.validation),a.each(d,function(a,b){"valida...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Mon Jan 01 05:12:47 UTC 2018
    - 867 bytes
    - Viewed (0)
  8. 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)
  9. src/net/nss_test.go

    	t.Parallel()
    
    	tests := []struct {
    		name string
    		in   string
    		want *nssConf
    	}{
    		{
    			name: "no_newline",
    			in:   "foo: a b",
    			want: &nssConf{
    				sources: map[string][]nssSource{
    					"foo": {{source: "a"}, {source: "b"}},
    				},
    			},
    		},
    		{
    			name: "newline",
    			in:   "foo: a b\n",
    			want: &nssConf{
    				sources: map[string][]nssSource{
    					"foo": {{source: "a"}, {source: "b"}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:15:51 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  10. src/net/nss.go

    	mu      sync.Mutex // protects nssConf
    	nssConf *nssConf
    }
    
    func getSystemNSS() *nssConf {
    	nssConfig.tryUpdate()
    	nssConfig.mu.Lock()
    	conf := nssConfig.nssConf
    	nssConfig.mu.Unlock()
    	return conf
    }
    
    // init initializes conf and is only called via conf.initOnce.
    func (conf *nsswitchConfig) init() {
    	conf.nssConf = parseNSSConfFile("/etc/nsswitch.conf")
    	conf.lastChecked = time.Now()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:15:51 UTC 2022
    - 5.5K bytes
    - Viewed (0)
Back to top