errno 109 usr/bin/cat/cat.c warn("%s @%d", filename, errno); errno 81 usr/bin/cp/cp.c if (r == -1 && errno != ENOENT) errno 81 usr/bin/head/head.c err(0, "%s: %s", *argv, strerror(errno)); errno 105 usr/bin/head/head.c err(1, "stdout: %s", strerror(errno)); errno 290 usr/bin/ls/ls.c if (stat(buf, &st) == -1 && errno != EACCES) errno 98 usr/bin/mkdir/mkdir.c if (errno != ENOENT || errno 80 usr/bin/nice/nice.c errno = 0; errno 82 usr/bin/nice/nice.c if (errno) { errno 90 usr/bin/nice/nice.c err ((errno == ENOENT) ? 127 : 126, "%s", argv[0]); errno 88 usr/bin/sh/cmds.c return errno; errno 155 usr/bin/sh/sh.c errno = 0; errno 160 usr/bin/sh/sh.c strerror(errno)); errno 164 usr/bin/sh/sh.c if (errno == ENOENT) errno 166 usr/bin/sh/sh.c if (errno == ENOENT || errno == ENOTDIR) errno 168 usr/bin/sh/sh.c else if (errno == EACCES) errno 327 usr/bin/sh/sh.c error("%s: %s", args[0], strerror(errno)); errno 425 usr/bin/test/test.c errno = 0; errno 428 usr/bin/test/test.c if (errno != 0) errno 6 usr/include/errno.h extern int errno; /* global error number */ errno 30 usr/lib/libc/errno/errno.c int errno; errno 55 usr/lib/libc/gen/basename.c errno = ENAMETOOLONG; errno 49 usr/lib/libc/gen/confstr.c errno = EINVAL; errno 59 usr/lib/libc/gen/dirname.c errno = ENAMETOOLONG; errno 55 usr/lib/libc/gen/execvp.c errno = ENOENT; errno 98 usr/lib/libc/gen/execvp.c switch (errno) { errno 125 usr/lib/libc/gen/execvp.c errno = EACCES; errno 126 usr/lib/libc/gen/execvp.c else if (!errno) errno 127 usr/lib/libc/gen/execvp.c errno = ENOENT; errno 80 usr/lib/libc/gen/fts.c errno = EINVAL; errno 111 usr/lib/libc/gen/fts.c errno = ENOENT; errno 227 usr/lib/libc/gen/fts.c saved_errno = fchdir(sp->fts_rfd) ? errno : 0; errno 236 usr/lib/libc/gen/fts.c errno = saved_errno; errno 286 usr/lib/libc/gen/fts.c p->fts_errno = errno; errno 330 usr/lib/libc/gen/fts.c p->fts_errno = errno; errno 376 usr/lib/libc/gen/fts.c p->fts_errno = errno; errno 400 usr/lib/libc/gen/fts.c errno = 0; errno 419 usr/lib/libc/gen/fts.c saved_errno = errno; errno 421 usr/lib/libc/gen/fts.c errno = saved_errno; errno 448 usr/lib/libc/gen/fts.c errno = EINVAL; errno 462 usr/lib/libc/gen/fts.c errno = EINVAL; errno 473 usr/lib/libc/gen/fts.c errno = 0; errno 568 usr/lib/libc/gen/fts.c cur->fts_errno = errno; errno 609 usr/lib/libc/gen/fts.c cur->fts_errno = errno; errno 612 usr/lib/libc/gen/fts.c cderrno = errno; errno 653 usr/lib/libc/gen/fts.c mem1: saved_errno = errno; errno 658 usr/lib/libc/gen/fts.c errno = saved_errno; errno 795 usr/lib/libc/gen/fts.c saved_errno = errno; errno 797 usr/lib/libc/gen/fts.c errno = 0; errno 804 usr/lib/libc/gen/fts.c p->fts_errno = errno; errno 48 usr/lib/libc/gen/verr.c sverrno = errno; errno 46 usr/lib/libc/gen/vwarn.c sverrno = errno; errno 45 usr/lib/libc/stdio/fclose.c errno = EBADF; errno 56 usr/lib/libc/stdio/fdopen.c errno = EINVAL; errno 46 usr/lib/libc/stdio/fflush.c errno = EBADF; errno 69 usr/lib/libc/stdio/flags.c errno = EINVAL; errno 47 usr/lib/libc/stdio/fpurge.c errno = EBADF; errno 91 usr/lib/libc/stdio/freopen.c if (errno == ENFILE || errno == EMFILE) { errno 97 usr/lib/libc/stdio/freopen.c sverrno = errno; errno 119 usr/lib/libc/stdio/freopen.c errno = sverrno; /* restore in case _close clobbered */ errno 94 usr/lib/libc/stdio/fseek.c errno = EINVAL; errno 61 usr/lib/libc/stdio/mktemp.c extern int errno; errno 85 usr/lib/libc/stdio/mktemp.c errno = ENOTDIR; errno 98 usr/lib/libc/stdio/mktemp.c if (errno != EEXIST) errno 102 usr/lib/libc/stdio/mktemp.c return(errno == ENOENT ? 1 : 0); errno 43 usr/lib/libc/stdio/perror.c fputs(strerror(errno), stderr); errno 69 usr/lib/libc/stdio/refill.c errno = EBADF; errno 42 usr/lib/libc/stdio/rewind.c errno = 0; /* not required, but seems reasonable */ errno 75 usr/lib/libc/stdio/tempnam.c sverrno = errno; errno 77 usr/lib/libc/stdio/tempnam.c errno = sverrno; errno 66 usr/lib/libc/stdio/tmpfile.c sverrno = errno; errno 68 usr/lib/libc/stdio/tmpfile.c errno = sverrno; errno 121 usr/lib/libc/stdlib/strtol.c errno = ERANGE; errno 131 usr/lib/libc/stdlib/strtol.c errno = ERANGE; errno 92 usr/lib/libc/stdlib/strtoul.c errno = ERANGE; errno 58 usr/lib/libc/termios/tcflow.c errno = EINVAL; errno 57 usr/lib/libc/termios/tcflush.c errno = EINVAL; errno 58 usr/lib/libc/termios/tcsetattr.c errno = EINVAL; errno 111 usr/lib/posix/exec/execve.c errno = 0; errno 113 usr/lib/posix/exec/execve.c errno = EIO; errno 115 usr/lib/posix/exec/execve.c errno = msg.hdr.status; errno 44 usr/lib/posix/file/chdir.c errno = ENOENT; errno 40 usr/lib/posix/file/chmod.c errno = ENOSYS; errno 40 usr/lib/posix/file/chown.c errno = ENOSYS; errno 44 usr/lib/posix/file/getcwd.c errno = EINVAL; errno 57 usr/lib/posix/file/ioctl.c errno = EINVAL; errno 66 usr/lib/posix/file/ioctl.c errno = EFAULT; errno 44 usr/lib/posix/file/link.c errno = EINVAL; errno 49 usr/lib/posix/file/link.c errno = EINVAL; errno 44 usr/lib/posix/file/rename.c errno = EINVAL; errno 49 usr/lib/posix/file/rename.c errno = EINVAL; errno 44 usr/lib/posix/file/rmdir.c errno = EINVAL; errno 48 usr/lib/posix/file/rmdir.c errno = EINVAL; errno 44 usr/lib/posix/file/unlink.c errno = EINVAL; errno 48 usr/lib/posix/gen/__posix_call.c errno = ENOSYS; errno 57 usr/lib/posix/gen/__posix_call.c errno = (error == EINTR) ? EINTR : ENOSYS; errno 60 usr/lib/posix/gen/__posix_call.c errno = ((struct msg_header *)msg)->status; errno 98 usr/lib/posix/process/fork.c errno = error; errno 103 usr/lib/posix/process/fork.c errno = error; errno 99 usr/lib/posix/process/fork_nommu.c errno = error; errno 104 usr/lib/posix/process/fork_nommu.c errno = error; errno 48 usr/lib/posix/process/getpriority.c errno = EPERM; errno 54 usr/lib/posix/process/getpriority.c errno = EPERM; errno 59 usr/lib/posix/process/getpriority.c errno = EINVAL; errno 60 usr/lib/posix/process/kill.c errno = m.hdr.status; errno 46 usr/lib/posix/process/nice.c errno = 0; /* XXX: Do not set 0 in errno... */ errno 49 usr/lib/posix/process/nice.c if (pri == -1 && errno) errno 40 usr/lib/posix/process/setegid.c errno = EPERM; errno 40 usr/lib/posix/process/seteuid.c errno = EPERM; errno 40 usr/lib/posix/process/setgid.c errno = EPERM; errno 53 usr/lib/posix/process/setpriority.c errno = EPERM; errno 59 usr/lib/posix/process/setpriority.c errno = EPERM; errno 64 usr/lib/posix/process/setpriority.c errno = EINVAL; errno 77 usr/lib/posix/process/setpriority.c errno = error; errno 40 usr/lib/posix/process/setuid.c errno = EPERM; errno 67 usr/lib/posix/process/waitpid.c errno = m.hdr.status; errno 76 usr/lib/posix/process/waitpid.c errno = EINTR; errno 57 usr/lib/posix/signal/pause.c errno = EINTR; errno 47 usr/lib/posix/signal/sigaction.c errno = EINVAL; errno 41 usr/lib/posix/signal/signal.c errno = EINVAL; errno 42 usr/lib/posix/signal/sigpending.c errno = EFAULT; errno 62 usr/lib/posix/signal/sigprocmask.c errno = EINVAL; errno 43 usr/lib/posix/signal/sigsuspend.c errno = EINVAL; errno 58 usr/lib/posix/signal/sigsuspend.c errno = EINTR; errno 43 usr/lib/posix/time/gettimeofday.c errno = EPERM; errno 49 usr/lib/posix/time/gettimeofday.c errno = error; errno 76 usr/sbin/install/install.c if (r == -1 && errno != ENOENT) errno 343 usr/server/exec/exec_elf.c return errno; errno 100 usr/server/exec/exec_execve.c error = errno; errno 146 usr/server/exec/exec_execve.c error = errno; errno 64 usr/test/creat/creat.c if (errno != EINTR) {