You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
U8, UINT, ULONG, and LONG types cause errors in FreeBSD 13.0-RELEASE with i386 arch:
% python
Python 3.7.9 (default, Feb 28 2021, 01:41:41)
[Clang 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c on freebsd13
>>> from freebsd_sysctl import Sysctl
>>> a = Sysctl("vm.kmem_size")
>>> print(a.value)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.7/site-packages/freebsd_sysctl/__init__.py", line 103, in value
return self.raw_value.value
File "/usr/local/lib/python3.7/site-packages/freebsd_sysctl/types.py", line 51, in value
self.data
struct.error: unpack requires a buffer of 8 bytes
kern.poweroff_on_panic is U8
kern.maxvnodes is UINT
vm.kvm_size is LONG
vm.kmem_size is ULONG
U8, UINT, ULONG, and LONG types cause errors in FreeBSD 13.0-RELEASE with i386 arch:
kern.poweroff_on_panic is U8
kern.maxvnodes is UINT
vm.kvm_size is LONG
vm.kmem_size is ULONG
freebsd-sysctl was installed via pkg:
long and ulong are 4 bytes on i386 but 8 bytes conversion is specified, q and Q.
The text was updated successfully, but these errors were encountered: