Lines Matching refs:errno
44 #include <errno.h>
196 errno = EINVAL;
212 errno = EINVAL;
219 errno = EINVAL;
226 * Bogus errno, but this ensures that the
230 if (errno == ENOENT)
231 errno = EINVAL;
243 errno = EINVAL;
253 errno = EINVAL;
264 if (errno == ENOENT)
265 errno = ENOEXEC;
300 * feof(f) is false, errno is non-zero), the file ended with an
302 * feof(f) is true, errno is non-zero), or the end of the file was
304 * errno is zero).
306 if (ferror(f) || errno != 0)
313 serrno = errno;
315 errno = serrno;
318 serrno = errno;
326 errno = serrno;
335 * Returns -1 and sets errno to ENOENT if the file does not exist.
337 * Returns -1 and sets errno to some other non-zero value if the file
352 serrno = errno;
353 openpam_log(errno == ENOENT ? PAM_LOG_DEBUG : PAM_LOG_ERROR,
355 errno = serrno;
365 serrno = errno;
367 errno = serrno;
414 errno = ENAMETOOLONG;
420 errno = ENAMETOOLONG;
433 if (ret == -1 && errno != ENOENT)
441 errno = ENOENT;
464 if (errno != ENOENT)
477 serrno = errno;
479 errno = serrno;