Lines Matching refs:errno
39 #include <errno.h>
177 * On success return the converted string and on failure return NULL with errno
186 errno = EINVAL;
206 errno = EINVAL;
219 * string and on failure return -1 with errno set to the error code.
226 errno = EINVAL;
285 * On success return the converted string and on failure return NULL with errno
300 errno = EINVAL;
350 i = errno;
353 errno = i;
456 errno = ENOSPC;
462 errno = ENOMEM;
527 errno = ENOSPC;
530 errno = ENOMEM;
657 olderrno = errno;
660 if (!found && (errno != ENOENT)) {
664 /* restore errno to avoid misinterpretation */
665 errno = olderrno;
715 if (!found && (errno != ENOENT)) {
719 /* restore errno */
720 errno = olderrno;
758 errno = EIO;
859 olderrno = errno;
862 if (!found && (errno != ENOENT))
865 /* restore errno to avoid misinterpretation */
866 errno = olderrno;
915 errno = res;
970 errno = EIO;
1034 errno = EIO;
1106 errno = EIO;
1523 * consistent and errno is not set.
1846 if (errno != ENOENT)
1851 errno = EIO;
2164 * returns size or -errno if there is a problem
2165 * if size was too small, no copy is done and errno is not set,
2185 errno = ENOTSUP;
2261 errno = EACCES;
2279 errno = EIO;
2287 return (outsize ? (int)outsize : -errno);
2410 * Returns size or -errno if there is a problem
2411 * if size was too small, no copy is done and errno is not set,
2430 return (outsize ? (int)outsize : -errno);
2714 * errno set by ntfs_build_descr()
2783 * errno set by ntfs_build_descr()
2852 * errno set by ntfs_build_descr()
2992 * errno set by ntfs_build_descr()
3004 * if not, errno tells why
3057 errno = EPERM;
3071 * Returns 0, or -1 if there is a problem which errno describes
3136 errno = (exist ? EEXIST : ENODATA);
3147 errno = EINVAL;
3164 errno = EPERM;
3173 * Returns 0, or -1 if there is a problem which errno describes
3235 errno = ENOMEM;
3237 errno = EINVAL;
3249 * -1 on failure, with errno = EIO
3339 errno = EPERM;
3349 errno = EIO;
3433 * 0 and sets errno if there is a problem or if access
3506 errno = res;
3546 errno = res;
3572 * Sets errno if there is a problem or if not allowed
3617 return (allow); /* errno is set if not allowed */
3728 errno = EPERM;
3741 errno = EIO;
3844 errno = EPERM;
3853 errno = EIO;
4083 * Returns 0 if OK, -1 (and errno set) if error
4113 errno = ENOMEM;
4131 * Returns 0 if OK, -1 (and errno set) if error
4406 errno = EINVAL;
4409 return (outsize ? (int)outsize : -errno);
4460 errno = EEXIST;
4462 errno = EINVAL;
4471 * -1 with errno set if it fails and the volume is NTFS v3.0+
4488 errno = EINVAL;
4522 * -1 with errno set if it fails
4637 errno = EINVAL;
4914 errno = ENOENT;
4917 errno = EINVAL; /* do not clear *psize */
4986 errno = EINVAL;
4988 errno = EINVAL;
5026 errno = ENOENT;
5028 errno = EINVAL; /* do not clear *psize */
5092 errno = ENOENT;
5115 errno = ENOTDIR;
5118 errno = ENOENT;
5120 errno = EINVAL; /* do not clear *psize */
5141 errno = EOPNOTSUPP;
5143 errno = EINVAL;
5170 if (!found && (errno == ENOENT))
5175 errno = ENODATA;
5177 errno = EOPNOTSUPP;
5179 errno = EINVAL;
5207 if (!found && (errno == ENOENT))
5212 errno = ENODATA;
5213 } else errno = ENOTSUP;
5215 errno = EINVAL;
5223 * returns the size of the SID, or zero and errno set if not found
5239 errno = ENODATA;
5241 errno = EINVAL;
5249 * returns the size of the SID, or zero and errno set if not found
5265 errno = ENODATA;
5267 errno = EINVAL;
5289 errno = ENODATA;
5293 errno = EINVAL;
5315 errno = ENODATA;
5319 errno = EINVAL;
5365 errno = ENOMEM;
5372 errno = EPERM;
5374 errno = EBUSY;