Searched refs:oldlen (Results 1 - 13 of 13) sorted by relevance

/darwin-on-arm/xnu/bsd/kern/
H A Dkern_newsysctl.c414 ((req->oldlen == sizeof(int)) && (valueSize == sizeof(long long))))
463 if (trunc && req->oldptr && req->oldlen && (req->oldlen<strlen(pValue) + 1)) {
470 error = SYSCTL_OUT(req, pValue, req->oldlen-1);
1262 if (i > req->oldlen - req->oldidx)
1263 i = req->oldlen - req->oldidx;
1297 req.oldlen = *oldlenp;
1313 vsunlock(req.oldptr, (user_size_t)req.oldlen, B_WRITE);
1334 if (req->oldlen - req->oldidx < l)
1337 if (i > req->oldlen
[all...]
H A Dkern_sysctl.c380 size_t savelen = 0, oldlen = 0, newlen; local
457 oldlen = CAST_DOWN(size_t, oldlen64);
463 oldlen = 0xffffffffUL;
489 if (!useracc(uap->old, (user_size_t)oldlen, B_WRITE)) {
494 if (oldlen) {
495 if ((error = vslock(uap->old, (user_size_t)oldlen))) {
499 savelen = oldlen;
512 &oldlen, uap->new, newlen, p);
522 size_t tmp = oldlen;
524 uap->new, newlen, &oldlen);
[all...]
H A Dsubr_prof.c171 size_t *oldlenp = req->oldlen; /* user buffer copy out size */
214 req->oldidx += req->oldlen;
H A Dkern_credential.c5258 MALLOC( cred_listp, debug_ucred *, req->oldlen, M_TEMP, M_WAITOK );
5306 if ( space > req->oldlen ) {
5312 req->oldlen = space;
5313 error = SYSCTL_OUT(req, cred_listp, req->oldlen);
5353 if ( space > req->oldlen ) {
5357 MALLOC( bt_bufp, cred_debug_buffer *, req->oldlen, M_TEMP, M_WAITOK );
5375 req->oldlen = space;
5376 error = SYSCTL_OUT(req, bt_bufp, req->oldlen);
H A Dkern_proc.c1657 if (req->oldlen < sizeof(struct kinfo_lctx))
1676 if (req->oldlen < (sizeof(struct kinfo_lctx) * alllctx_cnt)) {
/darwin-on-arm/xnu/SETUP/md/
H A Dmd.c573 register int oldlen = OLDSALUTATIONLEN; local
582 ! strncmp(makbuf, OLDSALUTATION, oldlen))
/darwin-on-arm/xnu/bsd/security/audit/
H A Daudit_bsd.c129 if (req->oldlen < AU_MALLOC_DBINFO_SZ)
161 req->oldlen = sz;
H A Daudit_session.c513 if (req->oldlen < (entry_cnt * sizeof(au_sentry_debug_t))) {
559 req->oldlen = sz;
/darwin-on-arm/xnu/SETUP/config/
H A Dmkmakefile.c1174 register int oldlen = (sizeof OLDSALUTATION - 1); local
1177 if (! strncmp(makbuf, OLDSALUTATION, oldlen))
1181 if (oldlen != 0)
1186 oldlen = 0;
/darwin-on-arm/xnu/bsd/netinet6/
H A Dudp6_usrreq.c651 if (req->oldlen != sizeof(*(kauth_cred_t)0))
/darwin-on-arm/xnu/bsd/sys/
H A Dsysctl.h196 size_t oldlen; /* user buffer length (also returned) */ member in struct:sysctl_req
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_subr.c3259 space = req->oldlen;
3260 req->oldlen = sysctl_vfs_getvfscnt() * sizeof(fsid_t);
3263 if (space < req->oldlen)
3266 MALLOC(fsidlst, fsid_t *, req->oldlen, M_TEMP, M_WAITOK);
3271 error = sysctl_vfs_getvfslist(fsidlst, req->oldlen / sizeof(fsid_t),
3279 req->oldlen = space;
/darwin-on-arm/xnu/bsd/netinet/
H A Dtcp_input.c4913 req->oldlen= (size_t)sizeof(struct tcpstat);
4916 error = SYSCTL_OUT(req, &tcpstat, MIN(sizeof (tcpstat), req->oldlen));

Completed in 108 milliseconds