Lines Matching +full:num +full:- +full:strings

4  *  Copyright (c) 2013-15 Stacey D. Son
28 * 0 means variable length for strings and structures
30 * Note: Not all types appear to be used in-tree.
64 * Limit the amount of available memory to be most of the 32-bit address
68 static const abi_ulong guest_max_mem = UINT32_MAX - 0x100c000 + 1;
106 * placeholder until bsd-user downstream upstreams this with its thread support
153 * For strings and node data, there's no conversion needed.
204 * 32-bit and 64-bit machines. All other integral types have the in h2g_old_sysctl()
238 size_t i, num = holdlen / sizeof(uint32_t); in sysctl_name2oid() local
240 for (i = 0; i < num; i++) { in sysctl_name2oid()
340 if (sysctl(mib, 2, &lvalue, &len, NULL, 0) == -1) { in do_freebsd_sysctl_oid()
341 ret = -1; in do_freebsd_sysctl_oid()
376 if (sysctlbyname("hw.availpages", &lvalue, &len, NULL, 0) == -1) { in do_freebsd_sysctl_oid()
377 ret = -1; in do_freebsd_sysctl_oid()
409 * For long and ulong with a 64-bit host and a 32-bit target we have to do in do_freebsd_sysctl_oid()
457 * For the 32-bit on 64-bit case, for longs we need to copy the in do_freebsd_sysctl_oid()
458 * now-converted buffer to the target and free the buffer. in do_freebsd_sysctl_oid()
476 * really provide it in bsd-user. Notably, we must always translate the names
485 abi_long ret = -TARGET_EFAULT; in do_freebsd_sysctlbyname()
492 /* oldlenp is read/write, pre-check here for write */ in do_freebsd_sysctlbyname()
519 ret = -TARGET_EINVAL; in do_freebsd_sysctlbyname()
527 * writeability pre-checked above. __sysctl(2) returns ENOMEM and updates in do_freebsd_sysctlbyname()
530 if (oldlenp && (ret == 0 || ret == -TARGET_ENOMEM)) { in do_freebsd_sysctlbyname()
544 abi_long ret = -TARGET_EFAULT; in do_freebsd_sysctl()
550 /* oldlenp is read/write, pre-check here for write */ in do_freebsd_sysctl()
582 * writeability pre-checked above. __sysctl(2) returns ENOMEM and updates in do_freebsd_sysctl()
585 if (oldlenp && (ret == 0 || ret == -TARGET_ENOMEM)) { in do_freebsd_sysctl()