summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--otherlibs/unix/unix.ml2
-rw-r--r--otherlibs/unix/unix.mli2
-rw-r--r--otherlibs/unix/unixsupport.c6
3 files changed, 5 insertions, 5 deletions
diff --git a/otherlibs/unix/unix.ml b/otherlibs/unix/unix.ml
index 451588f81..018de678a 100644
--- a/otherlibs/unix/unix.ml
+++ b/otherlibs/unix/unix.ml
@@ -13,7 +13,7 @@
type error =
E2BIG
- | EACCESS
+ | EACCES
| EAGAIN
| EBADF
| EBUSY
diff --git a/otherlibs/unix/unix.mli b/otherlibs/unix/unix.mli
index 5634ad745..36556a93f 100644
--- a/otherlibs/unix/unix.mli
+++ b/otherlibs/unix/unix.mli
@@ -18,7 +18,7 @@
type error =
(* Errors defined in the POSIX standard *)
E2BIG (* Argument list too long *)
- | EACCESS (* Permission denied *)
+ | EACCES (* Permission denied *)
| EAGAIN (* Resource temporarily unavailable; try again *)
| EBADF (* Bad file descriptor *)
| EBUSY (* Resource unavailable *)
diff --git a/otherlibs/unix/unixsupport.c b/otherlibs/unix/unixsupport.c
index 1141d2c9d..9e07366d1 100644
--- a/otherlibs/unix/unixsupport.c
+++ b/otherlibs/unix/unixsupport.c
@@ -23,8 +23,8 @@
#ifndef E2BIG
#define E2BIG (-1)
#endif
-#ifndef EACCESS
-#define EACCESS (-1)
+#ifndef EACCES
+#define EACCES (-1)
#endif
#ifndef EAGAIN
#define EAGAIN (-1)
@@ -227,7 +227,7 @@
#endif
int error_table[] = {
- E2BIG, EACCESS, EAGAIN, EBADF, EBUSY, ECHILD, EDEADLK, EDOM,
+ E2BIG, EACCES, EAGAIN, EBADF, EBUSY, ECHILD, EDEADLK, EDOM,
EEXIST, EFAULT, EFBIG, EINTR, EINVAL, EIO, EISDIR, EMFILE, EMLINK,
ENAMETOOLONG, ENFILE, ENODEV, ENOENT, ENOEXEC, ENOLCK, ENOMEM, ENOSPC,
ENOSYS, ENOTDIR, ENOTEMPTY, ENOTTY, ENXIO, EPERM, EPIPE, ERANGE,