Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for sysctlMib (0.21 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/syscall_bsd.go

    	}
    	if len(events) > 0 {
    		event = unsafe.Pointer(&events[0])
    	}
    	return kevent(kq, change, len(changes), event, len(events), timeout)
    }
    
    // sysctlmib translates name to mib number and appends any additional args.
    func sysctlmib(name string, args ...int) ([]_C_int, error) {
    	// Translate name to mib number.
    	mib, err := nametomib(name)
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 15K bytes
    - Viewed (0)
  2. src/syscall/syscall_openbsd.go

    }
    
    func nametomib(name string) (mib []_C_int, err error) {
    	// Perform lookup via a binary search
    	left := 0
    	right := len(sysctlMib) - 1
    	for {
    		idx := int(uint(left+right) >> 1)
    		switch {
    		case name == sysctlMib[idx].ctlname:
    			return sysctlMib[idx].ctloid, nil
    		case name > sysctlMib[idx].ctlname:
    			left = idx + 1
    		default:
    			right = idx - 1
    		}
    		if left > right {
    			break
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 10:34:00 UTC 2023
    - 7K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall_openbsd.go

    func nametomib(name string) (mib []_C_int, err error) {
    	i := sort.Search(len(sysctlMib), func(i int) bool {
    		return sysctlMib[i].ctlname >= name
    	})
    	if i < len(sysctlMib) && sysctlMib[i].ctlname == name {
    		return sysctlMib[i].ctloid, nil
    	}
    	return nil, EINVAL
    }
    
    func direntIno(buf []byte) (uint64, bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 11K bytes
    - Viewed (0)
  4. src/syscall/mksysctl_openbsd.pl

    print <<EOF;
    // mksysctl_openbsd.pl
    // Code generated by the command above; DO NOT EDIT.
    
    package syscall;
    
    type mibentry struct {
    	ctlname string
    	ctloid []_C_int
    }
    
    var sysctlMib = []mibentry {
    EOF
    
    foreach my $name (sort keys %sysctl) {
    	my @oid = @{$sysctl{$name}};
    	print "\t{ \"$name\", []_C_int{ ", join(', ', @oid), " } }, \n";
    }
    
    print <<EOF;
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 14 13:21:46 UTC 2018
    - 5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go

    // go run mksysctl_openbsd.go
    // Code generated by the command above; DO NOT EDIT.
    
    //go:build 386 && openbsd
    
    package unix
    
    type mibentry struct {
    	ctlname string
    	ctloid  []_C_int
    }
    
    var sysctlMib = []mibentry{
    	{"ddb.console", []_C_int{9, 6}},
    	{"ddb.log", []_C_int{9, 7}},
    	{"ddb.max_line", []_C_int{9, 3}},
    	{"ddb.max_width", []_C_int{9, 2}},
    	{"ddb.panic", []_C_int{9, 5}},
    	{"ddb.profile", []_C_int{9, 9}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm64.go

    // go run mksysctl_openbsd.go
    // Code generated by the command above; DO NOT EDIT.
    
    //go:build arm64 && openbsd
    
    package unix
    
    type mibentry struct {
    	ctlname string
    	ctloid  []_C_int
    }
    
    var sysctlMib = []mibentry{
    	{"ddb.console", []_C_int{9, 6}},
    	{"ddb.log", []_C_int{9, 7}},
    	{"ddb.max_line", []_C_int{9, 3}},
    	{"ddb.max_width", []_C_int{9, 2}},
    	{"ddb.panic", []_C_int{9, 5}},
    	{"ddb.profile", []_C_int{9, 9}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/zsysctl_openbsd_mips64.go

    // go run mksysctl_openbsd.go
    // Code generated by the command above; DO NOT EDIT.
    
    //go:build mips64 && openbsd
    
    package unix
    
    type mibentry struct {
    	ctlname string
    	ctloid  []_C_int
    }
    
    var sysctlMib = []mibentry{
    	{"ddb.console", []_C_int{9, 6}},
    	{"ddb.log", []_C_int{9, 7}},
    	{"ddb.max_line", []_C_int{9, 3}},
    	{"ddb.max_width", []_C_int{9, 2}},
    	{"ddb.panic", []_C_int{9, 5}},
    	{"ddb.profile", []_C_int{9, 9}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  8. src/syscall/zsysctl_openbsd.go

    // mksysctl_openbsd.pl
    // Code generated by the command above; DO NOT EDIT.
    
    package syscall
    
    type mibentry struct {
    	ctlname string
    	ctloid  []_C_int
    }
    
    var sysctlMib = []mibentry{
    	{"ddb.console", []_C_int{9, 6}},
    	{"ddb.log", []_C_int{9, 7}},
    	{"ddb.max_line", []_C_int{9, 3}},
    	{"ddb.max_width", []_C_int{9, 2}},
    	{"ddb.panic", []_C_int{9, 5}},
    	{"ddb.profile", []_C_int{9, 9}},
    	{"ddb.radix", []_C_int{9, 1}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 03:24:15 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go

    // go run mksysctl_openbsd.go
    // Code generated by the command above; DO NOT EDIT.
    
    //go:build amd64 && openbsd
    
    package unix
    
    type mibentry struct {
    	ctlname string
    	ctloid  []_C_int
    }
    
    var sysctlMib = []mibentry{
    	{"ddb.console", []_C_int{9, 6}},
    	{"ddb.log", []_C_int{9, 7}},
    	{"ddb.max_line", []_C_int{9, 3}},
    	{"ddb.max_width", []_C_int{9, 2}},
    	{"ddb.panic", []_C_int{9, 5}},
    	{"ddb.profile", []_C_int{9, 9}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go

    // go run mksysctl_openbsd.go
    // Code generated by the command above; DO NOT EDIT.
    
    //go:build arm && openbsd
    
    package unix
    
    type mibentry struct {
    	ctlname string
    	ctloid  []_C_int
    }
    
    var sysctlMib = []mibentry{
    	{"ddb.console", []_C_int{9, 6}},
    	{"ddb.log", []_C_int{9, 7}},
    	{"ddb.max_line", []_C_int{9, 3}},
    	{"ddb.max_width", []_C_int{9, 2}},
    	{"ddb.panic", []_C_int{9, 5}},
    	{"ddb.profile", []_C_int{9, 9}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 11.9K bytes
    - Viewed (0)
Back to top