Lines Matching refs:searchblock
6187 struct user_fssearchblock searchblock;
6201 error = copyin(uap->searchblock, (caddr_t) &searchblock, sizeof(searchblock));
6205 error = copyin(uap->searchblock, (caddr_t) &tmp_searchblock, sizeof(tmp_searchblock));
6207 searchblock.returnattrs = CAST_USER_ADDR_T(tmp_searchblock.returnattrs);
6208 searchblock.returnbuffer = CAST_USER_ADDR_T(tmp_searchblock.returnbuffer);
6209 searchblock.returnbuffersize = tmp_searchblock.returnbuffersize;
6210 searchblock.maxmatches = tmp_searchblock.maxmatches;
6211 searchblock.timelimit.tv_sec = tmp_searchblock.timelimit.tv_sec;
6212 searchblock.timelimit.tv_usec = tmp_searchblock.timelimit.tv_usec;
6213 searchblock.searchparams1 = CAST_USER_ADDR_T(tmp_searchblock.searchparams1);
6214 searchblock.sizeofsearchparams1 = tmp_searchblock.sizeofsearchparams1;
6215 searchblock.searchparams2 = CAST_USER_ADDR_T(tmp_searchblock.searchparams2);
6216 searchblock.sizeofsearchparams2 = tmp_searchblock.sizeofsearchparams2;
6217 searchblock.searchattrs = tmp_searchblock.searchattrs;
6224 if (searchblock.sizeofsearchparams1 > SEARCHFS_MAX_SEARCHPARMS ||
6225 searchblock.sizeofsearchparams2 > SEARCHFS_MAX_SEARCHPARMS)
6233 mallocsize = searchblock.sizeofsearchparams1 + searchblock.sizeofsearchparams2 +
6240 searchparams2 = (void *) (((caddr_t) searchparams1) + searchblock.sizeofsearchparams1);
6241 returnattrs = (struct attrlist *) (((caddr_t) searchparams2) + searchblock.sizeofsearchparams2);
6246 if ((error = copyin(searchblock.searchparams1, searchparams1, searchblock.sizeofsearchparams1)))
6249 if ((error = copyin(searchblock.searchparams2, searchparams2, searchblock.sizeofsearchparams2)))
6252 if ((error = copyin(searchblock.returnattrs, (caddr_t) returnattrs, sizeof(struct attrlist))))
6262 uio_addiov(auio, searchblock.returnbuffer, searchblock.returnbuffersize);
6278 * If searchblock.maxmatches == 0, then skip the search. This has happened
6281 if (searchblock.maxmatches == 0) {
6297 &searchblock.searchattrs,
6298 searchblock.maxmatches,
6299 &searchblock.timelimit,