Commit a9e42c5a authored by simonmar's avatar simonmar
Browse files

[project @ 2002-09-25 15:24:06 by simonmar]

Re-instate the checking for the values of errno constants at configure
time.  The problem with doing it using foreign calls is simply that
this tickles a bad case in the code gen machinery, which in this case
results in an extra 10-20k of goop ending up in pretty much every
binary, and it impacts GC performance too.

This has some portability implications, but the situation is no worse
than before.  To reliably cross-compile for a new platform you need to
build a set of .hc files for the libraries using a config.h generated on
the *target* machine.  (at some point we'll formalise the
cross-compilation story, but that's another thing on the todo list...)
parent 28e69a6b
......@@ -54,6 +54,300 @@
/* Define to alignment constraint on void pointers */
#undef ALIGNMENT_VOID_P
/* The value of E2BIG. */
#undef CCONST_E2BIG
/* The value of EACCES. */
#undef CCONST_EACCES
/* The value of EADDRINUSE. */
#undef CCONST_EADDRINUSE
/* The value of EADDRNOTAVAIL. */
#undef CCONST_EADDRNOTAVAIL
/* The value of EADV. */
#undef CCONST_EADV
/* The value of EAFNOSUPPORT. */
#undef CCONST_EAFNOSUPPORT
/* The value of EAGAIN. */
#undef CCONST_EAGAIN
/* The value of EALREADY. */
#undef CCONST_EALREADY
/* The value of EBADF. */
#undef CCONST_EBADF
/* The value of EBADMSG. */
#undef CCONST_EBADMSG
/* The value of EBADRPC. */
#undef CCONST_EBADRPC
/* The value of EBUSY. */
#undef CCONST_EBUSY
/* The value of ECHILD. */
#undef CCONST_ECHILD
/* The value of ECOMM. */
#undef CCONST_ECOMM
/* The value of ECONNABORTED. */
#undef CCONST_ECONNABORTED
/* The value of ECONNREFUSED. */
#undef CCONST_ECONNREFUSED
/* The value of ECONNRESET. */
#undef CCONST_ECONNRESET
/* The value of EDEADLK. */
#undef CCONST_EDEADLK
/* The value of EDESTADDRREQ. */
#undef CCONST_EDESTADDRREQ
/* The value of EDIRTY. */
#undef CCONST_EDIRTY
/* The value of EDOM. */
#undef CCONST_EDOM
/* The value of EDQUOT. */
#undef CCONST_EDQUOT
/* The value of EEXIST. */
#undef CCONST_EEXIST
/* The value of EFAULT. */
#undef CCONST_EFAULT
/* The value of EFBIG. */
#undef CCONST_EFBIG
/* The value of EFTYPE. */
#undef CCONST_EFTYPE
/* The value of EHOSTDOWN. */
#undef CCONST_EHOSTDOWN
/* The value of EHOSTUNREACH. */
#undef CCONST_EHOSTUNREACH
/* The value of EIDRM. */
#undef CCONST_EIDRM
/* The value of EILSEQ. */
#undef CCONST_EILSEQ
/* The value of EINPROGRESS. */
#undef CCONST_EINPROGRESS
/* The value of EINTR. */
#undef CCONST_EINTR
/* The value of EINVAL. */
#undef CCONST_EINVAL
/* The value of EIO. */
#undef CCONST_EIO
/* The value of EISCONN. */
#undef CCONST_EISCONN
/* The value of EISDIR. */
#undef CCONST_EISDIR
/* The value of ELOOP. */
#undef CCONST_ELOOP
/* The value of EMFILE. */
#undef CCONST_EMFILE
/* The value of EMLINK. */
#undef CCONST_EMLINK
/* The value of EMSGSIZE. */
#undef CCONST_EMSGSIZE
/* The value of EMULTIHOP. */
#undef CCONST_EMULTIHOP
/* The value of ENAMETOOLONG. */
#undef CCONST_ENAMETOOLONG
/* The value of ENETDOWN. */
#undef CCONST_ENETDOWN
/* The value of ENETRESET. */
#undef CCONST_ENETRESET
/* The value of ENETUNREACH. */
#undef CCONST_ENETUNREACH
/* The value of ENFILE. */
#undef CCONST_ENFILE
/* The value of ENOBUFS. */
#undef CCONST_ENOBUFS
/* The value of ENODATA. */
#undef CCONST_ENODATA
/* The value of ENODEV. */
#undef CCONST_ENODEV
/* The value of ENOENT. */
#undef CCONST_ENOENT
/* The value of ENOEXEC. */
#undef CCONST_ENOEXEC
/* The value of ENOLCK. */
#undef CCONST_ENOLCK
/* The value of ENOLINK. */
#undef CCONST_ENOLINK
/* The value of ENOMEM. */
#undef CCONST_ENOMEM
/* The value of ENOMSG. */
#undef CCONST_ENOMSG
/* The value of ENONET. */
#undef CCONST_ENONET
/* The value of ENOPROTOOPT. */
#undef CCONST_ENOPROTOOPT
/* The value of ENOSPC. */
#undef CCONST_ENOSPC
/* The value of ENOSR. */
#undef CCONST_ENOSR
/* The value of ENOSTR. */
#undef CCONST_ENOSTR
/* The value of ENOSYS. */
#undef CCONST_ENOSYS
/* The value of ENOTBLK. */
#undef CCONST_ENOTBLK
/* The value of ENOTCONN. */
#undef CCONST_ENOTCONN
/* The value of ENOTDIR. */
#undef CCONST_ENOTDIR
/* The value of ENOTEMPTY. */
#undef CCONST_ENOTEMPTY
/* The value of ENOTSOCK. */
#undef CCONST_ENOTSOCK
/* The value of ENOTTY. */
#undef CCONST_ENOTTY
/* The value of ENXIO. */
#undef CCONST_ENXIO
/* The value of EOPNOTSUPP. */
#undef CCONST_EOPNOTSUPP
/* The value of EPERM. */
#undef CCONST_EPERM
/* The value of EPFNOSUPPORT. */
#undef CCONST_EPFNOSUPPORT
/* The value of EPIPE. */
#undef CCONST_EPIPE
/* The value of EPROCLIM. */
#undef CCONST_EPROCLIM
/* The value of EPROCUNAVAIL. */
#undef CCONST_EPROCUNAVAIL
/* The value of EPROGMISMATCH. */
#undef CCONST_EPROGMISMATCH
/* The value of EPROGUNAVAIL. */
#undef CCONST_EPROGUNAVAIL
/* The value of EPROTO. */
#undef CCONST_EPROTO
/* The value of EPROTONOSUPPORT. */
#undef CCONST_EPROTONOSUPPORT
/* The value of EPROTOTYPE. */
#undef CCONST_EPROTOTYPE
/* The value of ERANGE. */
#undef CCONST_ERANGE
/* The value of EREMCHG. */
#undef CCONST_EREMCHG
/* The value of EREMOTE. */
#undef CCONST_EREMOTE
/* The value of EROFS. */
#undef CCONST_EROFS
/* The value of ERPCMISMATCH. */
#undef CCONST_ERPCMISMATCH
/* The value of ERREMOTE. */
#undef CCONST_ERREMOTE
/* The value of ESHUTDOWN. */
#undef CCONST_ESHUTDOWN
/* The value of ESOCKTNOSUPPORT. */
#undef CCONST_ESOCKTNOSUPPORT
/* The value of ESPIPE. */
#undef CCONST_ESPIPE
/* The value of ESRCH. */
#undef CCONST_ESRCH
/* The value of ESRMNT. */
#undef CCONST_ESRMNT
/* The value of ESTALE. */
#undef CCONST_ESTALE
/* The value of ETIME. */
#undef CCONST_ETIME
/* The value of ETIMEDOUT. */
#undef CCONST_ETIMEDOUT
/* The value of ETOOMANYREFS. */
#undef CCONST_ETOOMANYREFS
/* The value of ETXTBSY. */
#undef CCONST_ETXTBSY
/* The value of EUSERS. */
#undef CCONST_EUSERS
/* The value of EWOULDBLOCK. */
#undef CCONST_EWOULDBLOCK
/* The value of EXDEV. */
#undef CCONST_EXDEV
/* Define if code lives before data in memory */
#undef CODE_BEFORE_DATA
......@@ -75,18 +369,27 @@
/* Define if you need -ldl to get dlopen() */
#undef HAVE_LIBDL
/* Define if you have the mingwex library. */
#undef HAVE_MINGWEX
/* Define if struct msghdr contains msg_accrights field */
#undef HAVE_MSGHDR_MSG_ACCRIGHTS
/* Define if struct msghdr contains msg_control field */
#undef HAVE_MSGHDR_MSG_CONTROL
/* Define if RTLD_GLOBAL is available */
#undef HAVE_RTLDGLOBAL
/* Define if RTLD_LOCAL is available */
#undef HAVE_RTLDLOCAL
/* Define if we can see RTLD_NEXT in dlfcn.h */
#undef HAVE_RTLDNEXT
/* Define if RTLD_LOCAL is available */
#undef HAVE_RTLDLOCAL
/* Define if we can see RTLD_NOW in dlfcn.h */
#undef HAVE_RTLDNOW
/* Define if RTLD_GLOBAL is available */
#undef HAVE_RTLDGLOBAL
......@@ -123,6 +426,9 @@
/* Define if you have the WinExec function. */
#undef HAVE_WINEXEC
/* Define to Haskell type for blkcnt_t */
#undef HTYPE_BLKCNT_T
/* Define to Haskell type for cc_t */
#undef HTYPE_CC_T
......
......@@ -865,6 +865,8 @@ FPTOOLS_CHECK_HTYPE(GLdouble)
FPTOOLS_CHECK_HTYPE(GLclampd)
fi
FPTOOLS_CHECK_CCONSTS(E2BIG EACCES EADDRINUSE EADDRNOTAVAIL EADV EAFNOSUPPORT EAGAIN EALREADY EBADF EBADMSG EBADRPC EBUSY ECHILD ECOMM ECONNABORTED ECONNREFUSED ECONNRESET EDEADLK EDESTADDRREQ EDIRTY EDOM EDQUOT EEXIST EFAULT EFBIG EFTYPE EHOSTDOWN EHOSTUNREACH EIDRM EILSEQ EINPROGRESS EINTR EINVAL EIO EISCONN EISDIR ELOOP EMFILE EMLINK EMSGSIZE EMULTIHOP ENAMETOOLONG ENETDOWN ENETRESET ENETUNREACH ENFILE ENOBUFS ENODATA ENODEV ENOENT ENOEXEC ENOLCK ENOLINK ENOMEM ENOMSG ENONET ENOPROTOOPT ENOSPC ENOSR ENOSTR ENOSYS ENOTBLK ENOTCONN ENOTDIR ENOTEMPTY ENOTSOCK ENOTTY ENXIO EOPNOTSUPP EPERM EPFNOSUPPORT EPIPE EPROCLIM EPROCUNAVAIL EPROGMISMATCH EPROGUNAVAIL EPROTO EPROTONOSUPPORT EPROTOTYPE ERANGE EREMCHG EREMOTE EROFS ERPCMISMATCH ERREMOTE ESHUTDOWN ESOCKTNOSUPPORT ESPIPE ESRCH ESRMNT ESTALE ETIME ETIMEDOUT ETOOMANYREFS ETXTBSY EUSERS EWOULDBLOCK EXDEV)
dnl ** can we open files in binary mode?
FPTOOLS_O_BINARY
......
......@@ -55,6 +55,300 @@
/* Define to alignment constraint on void pointers */
#undef ALIGNMENT_VOID_P
/* The value of E2BIG. */
#undef CCONST_E2BIG
/* The value of EACCES. */
#undef CCONST_EACCES
/* The value of EADDRINUSE. */
#undef CCONST_EADDRINUSE
/* The value of EADDRNOTAVAIL. */
#undef CCONST_EADDRNOTAVAIL
/* The value of EADV. */
#undef CCONST_EADV
/* The value of EAFNOSUPPORT. */
#undef CCONST_EAFNOSUPPORT
/* The value of EAGAIN. */
#undef CCONST_EAGAIN
/* The value of EALREADY. */
#undef CCONST_EALREADY
/* The value of EBADF. */
#undef CCONST_EBADF
/* The value of EBADMSG. */
#undef CCONST_EBADMSG
/* The value of EBADRPC. */
#undef CCONST_EBADRPC
/* The value of EBUSY. */
#undef CCONST_EBUSY
/* The value of ECHILD. */
#undef CCONST_ECHILD
/* The value of ECOMM. */
#undef CCONST_ECOMM
/* The value of ECONNABORTED. */
#undef CCONST_ECONNABORTED
/* The value of ECONNREFUSED. */
#undef CCONST_ECONNREFUSED
/* The value of ECONNRESET. */
#undef CCONST_ECONNRESET
/* The value of EDEADLK. */
#undef CCONST_EDEADLK
/* The value of EDESTADDRREQ. */
#undef CCONST_EDESTADDRREQ
/* The value of EDIRTY. */
#undef CCONST_EDIRTY
/* The value of EDOM. */
#undef CCONST_EDOM
/* The value of EDQUOT. */
#undef CCONST_EDQUOT
/* The value of EEXIST. */
#undef CCONST_EEXIST
/* The value of EFAULT. */
#undef CCONST_EFAULT
/* The value of EFBIG. */
#undef CCONST_EFBIG
/* The value of EFTYPE. */
#undef CCONST_EFTYPE
/* The value of EHOSTDOWN. */
#undef CCONST_EHOSTDOWN
/* The value of EHOSTUNREACH. */
#undef CCONST_EHOSTUNREACH
/* The value of EIDRM. */
#undef CCONST_EIDRM
/* The value of EILSEQ. */
#undef CCONST_EILSEQ
/* The value of EINPROGRESS. */
#undef CCONST_EINPROGRESS
/* The value of EINTR. */
#undef CCONST_EINTR
/* The value of EINVAL. */
#undef CCONST_EINVAL
/* The value of EIO. */
#undef CCONST_EIO
/* The value of EISCONN. */
#undef CCONST_EISCONN
/* The value of EISDIR. */
#undef CCONST_EISDIR
/* The value of ELOOP. */
#undef CCONST_ELOOP
/* The value of EMFILE. */
#undef CCONST_EMFILE
/* The value of EMLINK. */
#undef CCONST_EMLINK
/* The value of EMSGSIZE. */
#undef CCONST_EMSGSIZE
/* The value of EMULTIHOP. */
#undef CCONST_EMULTIHOP
/* The value of ENAMETOOLONG. */
#undef CCONST_ENAMETOOLONG
/* The value of ENETDOWN. */
#undef CCONST_ENETDOWN
/* The value of ENETRESET. */
#undef CCONST_ENETRESET
/* The value of ENETUNREACH. */
#undef CCONST_ENETUNREACH
/* The value of ENFILE. */
#undef CCONST_ENFILE
/* The value of ENOBUFS. */
#undef CCONST_ENOBUFS
/* The value of ENODATA. */
#undef CCONST_ENODATA
/* The value of ENODEV. */
#undef CCONST_ENODEV
/* The value of ENOENT. */
#undef CCONST_ENOENT
/* The value of ENOEXEC. */
#undef CCONST_ENOEXEC
/* The value of ENOLCK. */
#undef CCONST_ENOLCK
/* The value of ENOLINK. */
#undef CCONST_ENOLINK
/* The value of ENOMEM. */
#undef CCONST_ENOMEM
/* The value of ENOMSG. */
#undef CCONST_ENOMSG
/* The value of ENONET. */
#undef CCONST_ENONET
/* The value of ENOPROTOOPT. */
#undef CCONST_ENOPROTOOPT
/* The value of ENOSPC. */
#undef CCONST_ENOSPC
/* The value of ENOSR. */
#undef CCONST_ENOSR
/* The value of ENOSTR. */
#undef CCONST_ENOSTR
/* The value of ENOSYS. */
#undef CCONST_ENOSYS
/* The value of ENOTBLK. */
#undef CCONST_ENOTBLK
/* The value of ENOTCONN. */
#undef CCONST_ENOTCONN
/* The value of ENOTDIR. */
#undef CCONST_ENOTDIR
/* The value of ENOTEMPTY. */
#undef CCONST_ENOTEMPTY
/* The value of ENOTSOCK. */
#undef CCONST_ENOTSOCK
/* The value of ENOTTY. */
#undef CCONST_ENOTTY
/* The value of ENXIO. */
#undef CCONST_ENXIO
/* The value of EOPNOTSUPP. */
#undef CCONST_EOPNOTSUPP
/* The value of EPERM. */
#undef CCONST_EPERM
/* The value of EPFNOSUPPORT. */
#undef CCONST_EPFNOSUPPORT
/* The value of EPIPE. */
#undef CCONST_EPIPE
/* The value of EPROCLIM. */
#undef CCONST_EPROCLIM
/* The value of EPROCUNAVAIL. */
#undef CCONST_EPROCUNAVAIL
/* The value of EPROGMISMATCH. */
#undef CCONST_EPROGMISMATCH
/* The value of EPROGUNAVAIL. */
#undef CCONST_EPROGUNAVAIL
/* The value of EPROTO. */
#undef CCONST_EPROTO
/* The value of EPROTONOSUPPORT. */
#undef CCONST_EPROTONOSUPPORT
/* The value of EPROTOTYPE. */
#undef CCONST_EPROTOTYPE
/* The value of ERANGE. */
#undef CCONST_ERANGE
/* The value of EREMCHG. */
#undef CCONST_EREMCHG
/* The value of EREMOTE. */
#undef CCONST_EREMOTE
/* The value of EROFS. */
#undef CCONST_EROFS
/* The value of ERPCMISMATCH. */
#undef CCONST_ERPCMISMATCH
/* The value of ERREMOTE. */
#undef CCONST_ERREMOTE
/* The value of ESHUTDOWN. */
#undef CCONST_ESHUTDOWN
/* The value of ESOCKTNOSUPPORT. */
#undef CCONST_ESOCKTNOSUPPORT
/* The value of ESPIPE. */
#undef CCONST_ESPIPE
/* The value of ESRCH. */
#undef CCONST_ESRCH
/* The value of ESRMNT. */
#undef CCONST_ESRMNT
/* The value of ESTALE. */
#undef CCONST_ESTALE
/* The value of ETIME. */
#undef CCONST_ETIME
/* The value of ETIMEDOUT. */
#undef CCONST_ETIMEDOUT
/* The value of ETOOMANYREFS. */
#undef CCONST_ETOOMANYREFS
/* The value of ETXTBSY. */
#undef CCONST_ETXTBSY
/* The value of EUSERS. */
#undef CCONST_EUSERS
/* The value of EWOULDBLOCK. */
#undef CCONST_EWOULDBLOCK
/* The value of EXDEV. */
#undef CCONST_EXDEV
/* Define if code lives before data in memory */
#undef CODE_BEFORE_DATA
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment