Lines Matching defs:error

122  * error means that you now don't see any of the other names
125 * And if you return an error, what error do you use? Several
126 * filesystems seem to have decided on EUCLEAN being the error
127 * code for EFSCORRUPTED, and that may be the error to use. Or
131 * caller might want to make this a "soft" error: skip the
132 * entry, and return the error at the end instead.
138 * filename length, and the above "soft error" worry means
219 int error;
229 error = iterate_dir(f.file, &buf.ctx);
231 error = buf.result;
234 return error;
255 int error;
269 buf->error = verify_dirent_name(name, namlen);
270 if (unlikely(buf->error))
272 buf->error = -EINVAL; /* only used if we fail.. */
277 buf->error = -EOVERFLOW;
303 buf->error = -EFAULT;
316 int error;
322 error = iterate_dir(f.file, &buf.ctx);
323 if (error >= 0)
324 error = buf.error;
330 error = -EFAULT;
332 error = count - buf.count;
335 return error;
343 int error;
356 buf->error = verify_dirent_name(name, namlen);
357 if (unlikely(buf->error))
359 buf->error = -EINVAL; /* only used if we fail.. */
386 buf->error = -EFAULT;
399 int error;
405 error = iterate_dir(f.file, &buf.ctx);
406 if (error >= 0)
407 error = buf.error;
414 error = -EFAULT;
416 error = count - buf.count;
419 return error;
477 int error;
487 error = iterate_dir(f.file, &buf.ctx);
489 error = buf.result;
492 return error;
507 int error;
521 buf->error = verify_dirent_name(name, namlen);
522 if (unlikely(buf->error))
524 buf->error = -EINVAL; /* only used if we fail.. */
529 buf->error = -EOVERFLOW;
554 buf->error = -EFAULT;
567 int error;
573 error = iterate_dir(f.file, &buf.ctx);
574 if (error >= 0)
575 error = buf.error;
581 error = -EFAULT;
583 error = count - buf.count;
586 return error;