NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/44582: 5.1 sysctl(8) fails to understand time_t and bool under current kernels

>Number:         44582
>Category:       kern
>Synopsis:       5.1's /sbin/sysctl fails to understand time_t and bool on 
>current kernels
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 15 23:40:01 +0000 2011
>Originator:     Taylor R Campbell <>
>Release:        NetBSD 5.99.44
System: NetBSD oberon.local 5.99.44 NetBSD 5.99.44 (RIAMONODEBUG) #0: Tue Feb  
1 20:55:46 UTC 2011 
Architecture: i386
Machine: i386

        When I run 5.1's /sbin/sysctl on a current kernel, it fails to
        understand a number of nodes, because of the introduction of
        CTLTYPE_BOOL and the transition to 64-bit time_t.  jmcneill
        says that COMPAT_50 should make this work.


        On a 5.1 kernel:

% sysctl kern.boottime
kern.boottime = Thu Feb  3 15:47:42 2011
% sysctl -M kern.boottime
kern.boottime (1.21): CTLTYPE_STRUCT, size 8, flags 0x200<READONLY,PERMANENT>, 
% sysctl machdep.acpi_vbios_reset
machdep.acpi_vbios_reset = 1
% sysctl -M machdep.acpi_vbios_reset
machdep.acpi_vbios_reset (7.1233): CTLTYPE_INT, size 4, flags 0x70<READWRITE>, 
func=0xc05c4470, ver=574

        On a current kernel:

% sysctl kern.boottime
sysctl: kern.boottime: sysctl() failed with Cannot allocate memory
% sysctl -M kern.boottime
kern.boottime (1.83): CTLTYPE_STRUCT, size 12, flags 0x200<READONLY,PERMANENT>, 
% sysctl machdep.acpi_vbios_reset
% sysctl -M machdep.acpi_vbios_reset
machdep.acpi_vbios_reset (7.1044): CTLTYPE_???, size 1, flags 0x70<READWRITE>, 
func=0xc0123eb0, ver=22


        Yes, please!

Home | Main Index | Thread Index | Old Index