/freebsd/lib/libc/gen/ |
H A D | sysctl.c | 43 size_t *oldlenp, const void *newp, size_t newlen); 65 sysctl(const int *name, u_int namelen, void *oldp, size_t *oldlenp, in sysctl() argument 71 orig_oldlen = oldlenp != NULL ? *oldlenp : 0; in sysctl() 72 retval = __sysctl(name, namelen, oldp, oldlenp, newp, newlen); in sysctl() 92 if (oldlenp == NULL || *oldlenp > sizeof("")) in sysctl() 94 return (set_user_str(oldp, oldlenp, _PATH_LOCALBASE, in sysctl() 106 return (set_user_str(oldp, oldlenp, _PATH_STDPATH, in sysctl() 110 if (oldp != NULL && *oldlenp < sizeof(int)) { in sysctl() 114 *oldlenp = sizeof(int); in sysctl()
|
H A D | sysctlbyname.c | 34 size_t *oldlenp, const void *newp, size_t newlen); 37 sysctlbyname(const char *name, void *oldp, size_t *oldlenp, in sysctlbyname() argument 45 return (__sysctlbyname(name, len, oldp, oldlenp, newp, in sysctlbyname() 51 return (sysctl(oid, (u_int)len, oldp, oldlenp, newp, in sysctlbyname()
|
/freebsd/lib/libcasper/services/cap_sysctl/ |
H A D | cap_sysctl.c | 158 if (oldlenp != NULL) in do_sysctl() 163 if (oldp == NULL && oldlenp != NULL) in do_sysctl() 165 else if (oldlenp != NULL) in do_sysctl() 180 if (oldp == NULL && oldlenp != NULL) { in do_sysctl() 185 if (oldlenp != NULL) in do_sysctl() 186 *oldlenp = oldlen; in do_sysctl() 196 size_t *oldlenp, const void *newp, size_t newlen) in cap_sysctl() argument 461 size_t *oldlenp; in sysctl_command() local 490 oldlenp = &oldlen; in sysctl_command() 500 oldlenp = &oldlen; in sysctl_command() [all …]
|
H A D | cap_sysctl.h | 52 size_t *oldlenp, const void *newp, size_t newlen); 54 size_t *oldlenp, const void *newp, size_t newlen); 70 void *oldp, size_t *oldlenp, const void *newp, size_t newlen) 73 return (sysctl(name, namelen, oldp, oldlenp, newp, newlen)); 78 void *oldp, size_t *oldlenp, const void *newp, size_t newlen) 81 return (sysctlbyname(name, oldp, oldlenp, newp, newlen));
|
/freebsd/tools/build/cross-build/ |
H A D | fake_sysctl.c | 45 __freebsd_sysctlbyname(const char *name, void *oldp, size_t *oldlenp, in __freebsd_sysctlbyname() argument 49 if (!oldp || !oldlenp) in __freebsd_sysctlbyname() 54 strlcpy(oldp, "none", *oldlenp); in __freebsd_sysctlbyname() 55 *oldlenp = strlen("none"); in __freebsd_sysctlbyname()
|
/freebsd/contrib/jemalloc/include/jemalloc/internal/ |
H A D | ctl.h | 96 int ctl_byname(tsd_t *tsd, const char *name, void *oldp, size_t *oldlenp, 101 size_t *oldlenp, void *newp, size_t newlen); 107 #define xmallctl(name, oldp, oldlenp, newp, newlen) do { \ argument 108 if (je_mallctl(name, oldp, oldlenp, newp, newlen) \ 125 #define xmallctlbymib(mib, miblen, oldp, oldlenp, newp, newlen) do { \ argument 126 if (je_mallctlbymib(mib, miblen, oldp, oldlenp, newp, \
|
/freebsd/contrib/jemalloc/src/ |
H A D | ctl.c | 1424 if (oldp != NULL || oldlenp != NULL) { \ 1439 if (oldp != NULL && oldlenp != NULL) { \ 1440 if (*oldlenp != sizeof(t)) { \ 1441 size_t copylen = (sizeof(t) <= *oldlenp) \ 1442 ? sizeof(t) : *oldlenp; \ 1636 size_t miblen, void *oldp, size_t *oldlenp, in background_thread_ctl() argument 2322 if (oldp != NULL && oldlenp != NULL) { in arena_i_decay_ms_ctl_impl() 2496 if (*oldlenp != sizeof(unsigned)) { in arenas_narenas_ctl() 2515 if (oldp != NULL && oldlenp != NULL) { in arenas_decay_ms_ctl_impl() 3238 if (oldp == NULL || oldlenp == NULL in experimental_utilization_query_ctl() [all …]
|
/freebsd/libexec/rtld-elf/rtld-libc/ |
H A D | rtld_libc.c | 109 size_t *oldlenp, const void *newp, size_t newlen); 112 sysctl(const int *name, u_int namelen, void *oldp, size_t *oldlenp, in sysctl() argument 118 retval = __sys___sysctl(name, namelen, oldp, oldlenp, newp, newlen); in sysctl()
|
/freebsd/include/ |
H A D | malloc_np.h | 81 int mallctl(const char *name, void *oldp, size_t *oldlenp, void *newp, 85 size_t *oldlenp, void *newp, size_t newlen); 111 int __mallctl(const char *name, void *oldp, size_t *oldlenp, void *newp, 115 size_t *oldlenp, void *newp, size_t newlen);
|
/freebsd/sys/kern/ |
H A D | kern_sysctl.c | 2118 if (oldlenp) { in kernel_sysctl() 2119 req.oldlen = *oldlenp; in kernel_sysctl() 2417 size_t *oldlenp; member 2440 if (uap->oldlenp) { in sys___sysctl() 2489 size_t *oldlenp; member 2504 if (uap->oldlenp != NULL) in sys___sysctlbyname() 2527 if (oldlenp) { in userland_sysctl() 2529 req.oldlen = *oldlenp; in userland_sysctl() 2531 error = copyin(oldlenp, &req.oldlen, sizeof(*oldlenp)); in userland_sysctl() 2841 if (oldlenp) { in db_sysctl() [all …]
|
/freebsd/sys/compat/linux/ |
H A D | linux_sysctl.c | 84 if (!error && la->oldlenp != 0) in handle_string() 85 error = copyout(&len, PTRIN(la->oldlenp), sizeof(len)); in handle_string()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_netbsd.cpp | 308 uptr *oldlenp, const void *newp, uptr newlen) { in internal_sysctl() argument 310 return __sysctl(name, namelen, oldp, (size_t *)oldlenp, newp, (size_t)newlen); in internal_sysctl() 313 int internal_sysctlbyname(const char *sname, void *oldp, uptr *oldlenp, in internal_sysctlbyname() argument 317 return _REAL(sysctlbyname, sname, oldp, (size_t *)oldlenp, newp, in internal_sysctlbyname()
|
H A D | sanitizer_posix.h | 70 uptr *oldlenp, const void *newp, uptr newlen); 71 int internal_sysctlbyname(const char *sname, void *oldp, uptr *oldlenp,
|
H A D | sanitizer_mac.cpp | 257 uptr *oldlenp, const void *newp, uptr newlen) { in internal_sysctl() argument 258 return sysctl(const_cast<int *>(name), namelen, oldp, (size_t *)oldlenp, in internal_sysctl() 262 int internal_sysctlbyname(const char *sname, void *oldp, uptr *oldlenp, in internal_sysctlbyname() argument 264 return sysctlbyname(sname, oldp, (size_t *)oldlenp, const_cast<void *>(newp), in internal_sysctlbyname()
|
H A D | sanitizer_linux.cpp | 830 uptr *oldlenp, const void *newp, uptr newlen) { in internal_sysctl() argument 832 (size_t *)oldlenp, newp, (size_t)newlen); in internal_sysctl() 835 int internal_sysctlbyname(const char *sname, void *oldp, uptr *oldlenp, in internal_sysctlbyname() argument 845 internal_strlen(sname), oldp, (size_t *)oldlenp, newp, in internal_sysctlbyname() 858 return internal_sysctl(oid, len, oldp, oldlenp, newp, newlen); in internal_sysctlbyname()
|
H A D | sanitizer_platform_limits_freebsd.h | 101 uptr *oldlenp; member
|
/freebsd/lib/libc/arm/gen/ |
H A D | arm_initfini.c | 49 extern int __sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp,
|
/freebsd/lib/libc/secure/ |
H A D | stack_protector.c | 53 size_t *oldlenp, void *newp, size_t newlen);
|
/freebsd/contrib/jemalloc/include/jemalloc/ |
H A D | jemalloc.h | 262 void *oldp, size_t *oldlenp, void *newp, size_t newlen); 266 size_t miblen, void *oldp, size_t *oldlenp, void *newp, size_t newlen);
|
/freebsd/sys/arm64/linux/ |
H A D | linux.h | 90 l_uintptr_t oldlenp; member
|
/freebsd/sys/amd64/linux/ |
H A D | linux.h | 100 l_uintptr_t oldlenp; member
|
/freebsd/sys/sys/ |
H A D | sysctl.h | 1182 size_t *oldlenp, void *new, size_t newlen, size_t *retval, 1185 size_t *oldlenp, void *new, size_t newlen, size_t *retval, 1188 size_t *oldlenp, int inkernel, const void *new, size_t newlen, 1196 size_t namelen, void *old, size_t *oldlenp, void *new,
|
/freebsd/sys/i386/linux/ |
H A D | linux.h | 107 l_size_t *oldlenp; member
|
/freebsd/sys/amd64/linux32/ |
H A D | linux.h | 116 l_uintptr_t oldlenp; member
|
/freebsd/contrib/unbound/compat/ |
H A D | getentropy_linux.c | 284 .oldlenp = &chunk, in getentropy_sysctl()
|