Home
last modified time | relevance | path

Searched refs:oldlenp (Results 1 – 25 of 36) sorted by relevance

12

/freebsd/lib/libc/gen/
H A Dsysctl.c43 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 Dsysctlbyname.c34 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/tools/build/cross-build/
H A Dfake_sysctl.c45 __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 Dctl.h96 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 Dctl.c51 void *oldp, size_t *oldlenp, void *newp, size_t newlen);
1292 ctl_byname(tsd_t *tsd, const char *name, void *oldp, size_t *oldlenp, in ctl_byname() argument
1313 ret = node->ctl(tsd, mib, depth, oldp, oldlenp, newp, newlen); in ctl_byname()
1339 size_t *oldlenp, void *newp, size_t newlen) { in ctl_bymib() argument
1376 ret = node->ctl(tsd, mib, miblen, oldp, oldlenp, newp, newlen); in ctl_bymib()
1424 if (oldp != NULL || oldlenp != NULL) { \
1431 if ((oldp != NULL && oldlenp != NULL) && (newp != NULL || \
1439 if (oldp != NULL && oldlenp != NULL) { \
1440 if (*oldlenp != sizeof(t)) { \
1441 size_t copylen = (sizeof(t) <= *oldlenp) \
[all …]
/freebsd/libexec/rtld-elf/rtld-libc/
H A Drtld_libc.c109 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 Dmalloc_np.h81 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 Dkern_sysctl.c2108 size_t *oldlenp, void *new, size_t newlen, size_t *retval, int flags)
2118 if (oldlenp) { in kernel_sysctl()
2119 req.oldlen = *oldlenp; in kernel_sysctl()
2154 kernel_sysctlbyname(struct thread *td, char *name, void *old, size_t *oldlenp,
2170 error = kernel_sysctl(td, oid, plen / sizeof(int), old, oldlenp, in kernel_sysctlbyname()
2417 size_t *oldlenp;
2436 uap->old, uap->oldlenp, 0, in sys___sysctl()
2440 if (uap->oldlenp) { in sys___sysctl()
2441 i = copyout(&j, uap->oldlenp, sizeof(j)); in sys___sysctl()
2450 void *old, size_t *oldlenp, voi
2110 kernel_sysctl(struct thread * td,int * name,u_int namelen,void * old,size_t * oldlenp,void * new,size_t newlen,size_t * retval,int flags) kernel_sysctl() argument
2156 kernel_sysctlbyname(struct thread * td,char * name,void * old,size_t * oldlenp,void * new,size_t newlen,size_t * retval,int flags) kernel_sysctlbyname() argument
2419 size_t *oldlenp; global() member
2452 kern___sysctlbyname(struct thread * td,const char * oname,size_t namelen,void * old,size_t * oldlenp,void * new,size_t newlen,size_t * retval,int flags,bool inkernel) kern___sysctlbyname() argument
2491 size_t *oldlenp; global() member
2518 userland_sysctl(struct thread * td,int * name,u_int namelen,void * old,size_t * oldlenp,int inkernel,const void * new,size_t newlen,size_t * retval,int flags) userland_sysctl() argument
2832 db_sysctl(struct sysctl_oid * oidp,int * name,u_int namelen,void * old,size_t * oldlenp,size_t * retval,int flags) db_sysctl() argument
[all...]
/freebsd/sys/compat/linux/
H A Dlinux_sysctl.c84 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 Dsanitizer_netbsd.cpp308 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 Dsanitizer_posix.h70 uptr *oldlenp, const void *newp, uptr newlen);
71 int internal_sysctlbyname(const char *sname, void *oldp, uptr *oldlenp,
H A Dsanitizer_mac.cpp257 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 Dsanitizer_linux.cpp899 uptr *oldlenp, const void *newp, uptr newlen) { in internal_sysctl() argument
901 (size_t *)oldlenp, newp, (size_t)newlen); in internal_sysctl()
904 int internal_sysctlbyname(const char *sname, void *oldp, uptr *oldlenp, in internal_sysctlbyname() argument
914 internal_strlen(sname), oldp, (size_t *)oldlenp, newp, in internal_sysctlbyname()
927 return internal_sysctl(oid, len, oldp, oldlenp, newp, newlen); in internal_sysctlbyname()
H A Dsanitizer_platform_limits_freebsd.h101 uptr *oldlenp; member
/freebsd/lib/libc/arm/gen/
H A Darm_initfini.c49 extern int __sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp,
/freebsd/lib/libc/secure/
H A Dlibc_stack_protector.c53 size_t *oldlenp, void *newp, size_t newlen);
/freebsd/contrib/jemalloc/include/jemalloc/
H A Djemalloc.h262 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 Dlinux.h90 l_uintptr_t oldlenp; member
/freebsd/sys/amd64/linux/
H A Dlinux.h100 l_uintptr_t oldlenp; member
/freebsd/sys/sys/
H A Dsysctl.h1183 size_t *oldlenp, void *new, size_t newlen, size_t *retval,
1186 size_t *oldlenp, void *new, size_t newlen, size_t *retval,
1189 size_t *oldlenp, int inkernel, const void *new, size_t newlen,
1197 size_t namelen, void *old, size_t *oldlenp, void *new,
/freebsd/sys/i386/linux/
H A Dlinux.h107 l_size_t *oldlenp; member
/freebsd/sys/amd64/linux32/
H A Dlinux.h116 l_uintptr_t oldlenp; member
/freebsd/contrib/unbound/compat/
H A Dgetentropy_linux.c284 .oldlenp = &chunk, in getentropy_sysctl()
/freebsd/sys/compat/freebsd32/
H A Dfreebsd32_misc.c2662 if (uap->oldlenp) { in freebsd32___sysctl()
2663 error = fueword32(uap->oldlenp, &tmp); in freebsd32___sysctl()
2675 if (uap->oldlenp != NULL && suword32(uap->oldlenp, j) != 0) in freebsd32___sysctl()
2688 if (uap->oldlenp != NULL) { in freebsd32___sysctlbyname()
2689 error = fueword32(uap->oldlenp, &tmp); in freebsd32___sysctlbyname()
2700 if (uap->oldlenp != NULL && suword32(uap->oldlenp, rv) != 0) in freebsd32___sysctlbyname()
/freebsd/usr.bin/vmstat/
H A Dvmstat.c395 mysysctl(const char *name, void *oldp, size_t *oldlenp) in mysysctl() argument
399 error = sysctlbyname(name, oldp, oldlenp, NULL, 0); in mysysctl()

12