Lines Matching defs:error
82 int error = 0;
95 error = 0;
111 error = 3;
124 error = 1; // absolute root
126 error = 2; // detached or not attached yet
131 error = prepend_name(&bptr, &blen, &dentry->d_name);
132 if (error)
153 if (error >= 0 && bptr == *buffer) {
155 error = -ENAMETOOLONG;
161 return error;
173 * Returns a pointer into the buffer or an error code if the
185 int error;
188 error = prepend_path(path, root, &res, &buflen);
190 if (error < 0)
191 return ERR_PTR(error);
192 if (error > 0)
202 int error;
205 error = prepend_path(path, &root, &res, &buflen);
207 if (error > 1)
208 error = -EINVAL;
209 if (error < 0)
210 return ERR_PTR(error);
223 int error = prepend(buf, buflen, " (deleted)", 10);
224 if (error)
225 return error;
255 * Returns a pointer into the buffer or an error code if the path was
266 int error;
285 error = path_with_deleted(path, &root, &res, &buflen);
288 if (error < 0)
289 res = ERR_PTR(error);
334 int error = 0;
353 error = prepend_name(&end, &len, &dentry->d_name);
354 if (error)
367 if (error)
416 * error value. So libc would do something like
431 int error;
441 error = -ENOENT;
448 error = prepend_path(&pwd, &root, &cwd, &buflen);
451 if (error < 0)
455 if (error > 0) {
456 error = prepend_unreachable(&cwd, &buflen);
457 if (error)
461 error = -ERANGE;
464 error = len;
466 error = -EFAULT;
474 return error;