summaryrefslogtreecommitdiff
path: root/mint/errno.h
diff options
context:
space:
mode:
authorJesse Vincent <jesse@bestpractical.com>2009-08-01 19:42:50 +0100
committerJesse Vincent <jesse@bestpractical.com>2009-08-03 12:14:45 +0100
commitcd86ed9d430a95bb9cf370c699245e1b667c146d (patch)
tree94851f58db71d59caf0de5ae5b7af3c0499622c5 /mint/errno.h
parent1af1c0d6fc56624ceeee486b9d34f20643ac0ecd (diff)
downloadperl-cd86ed9d430a95bb9cf370c699245e1b667c146d.tar.gz
Remove the port to MiNT. It's a dead platform that hasn't had any love since 5.005
Diffstat (limited to 'mint/errno.h')
-rw-r--r--mint/errno.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/mint/errno.h b/mint/errno.h
deleted file mode 100644
index 5c19d0efa7..0000000000
--- a/mint/errno.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/* Wrapper around broken system errno.h. */
-
-#ifndef _PERL_WRAPPER_AROUND_ERRNO_H
-# define _PERL_WRAPPER_AROUND_ERRNO_H 1
-
-/* First include the system file. */
-#include_next <errno.h>
-
-/* Now add the missing stuff.
-#ifndef EAGAIN
-# define EAGAIN EWOULDBLOCK
-#endif
-
-/* This one is problematic. If you open() a directory with the
- MiNTLib you can't detect from errno if it is really a directory
- or if the file simply doesn't exist. You'll get ENOENT
- ("file not found") in either case.
-
- Defining EISDIR as ENOENT is actually a bad idea but works fine
- in general. In praxi, if code checks for errno == EISDIR it
- will attempt an opendir() call on the file in question and this
- call will also file if the file really can't be found. But
- you may get compile-time errors if the errno checking is embedded
- in a switch statement ("duplicate case value in switch").
-
- Anyway, here the define works alright. */
-#ifndef EISDIR
-# define EISDIR ENOENT
-#endif
-
-#endif
-