Lines Matching refs:newlen
299 if ((req->newlen == sizeof(int)) && (valueSize == sizeof(long long))) {
304 } else if ((req->newlen == sizeof(long long)) && (valueSize == sizeof(int))) {
355 if (req->newlen >= valueSize)
359 error = SYSCTL_IN(req, pValue, req->newlen);
360 pValue[req->newlen] = '\0';
656 if (!req->newlen)
658 if (req->newlen >= MAXPATHLEN) /* XXX arbitrary, undocumented */
661 MALLOC(p, char *,req->newlen+1, M_TEMP, M_WAITOK);
665 error = SYSCTL_IN(req, p, req->newlen);
671 p [req->newlen] = '\0';
869 if (req->newlen - req->newidx < l)
877 kernel_sysctl(struct proc *p, int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen)
891 if (newlen) {
892 req.newlen = newlen;
948 if (req->newlen - req->newidx < l)
1078 size_t newlen;
1098 CAST_USER_ADDR_T(uap->new), uap->newlen, &j);
1115 size_t *oldlenp, int inkernel, user_addr_t newp, size_t newlen,
1139 if (newlen) {
1140 req.newlen = newlen;
1181 sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp, size_t newlen)
1184 return(kernel_sysctl(current_proc(), name, namelen, oldp, oldlenp, newp, newlen));
1205 sysctlbyname(const char *name, void *oldp, size_t *oldlenp, void *newp, size_t newlen)
1217 error = sysctl(oid, oidlen, oldp, oldlenp, newp, newlen);