aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/include/sys/param.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-05-12 11:06:27 +0000
committerCorinna Vinschen <corinna@vinschen.de>2003-05-12 11:06:27 +0000
commit194d9eb318403b1618c3f77eba6de4e17b7c900d (patch)
tree2c7028f9a5a1f8c1c60e37a6556aa9d8e1556cf7 /winsup/cygwin/include/sys/param.h
parent01859fc441c2f253f258bbe13de1e77ba2ffe8bd (diff)
downloadnewlib-194d9eb318403b1618c3f77eba6de4e17b7c900d.zip
newlib-194d9eb318403b1618c3f77eba6de4e17b7c900d.tar.gz
newlib-194d9eb318403b1618c3f77eba6de4e17b7c900d.tar.bz2
* Makefile.in (CYGWIN_START): Define as crt0.o. Add to TARGET_LIBS.
* fhandler.h (fhandler_virtual::fstat): Remove useless declaration. * fhandler_virtual.cc: Remove _COMPILING_NEWLIB define. * ipc.cc (ftok): Use stat64. * syscalls.cc (_fstat64): Remove alias. (_fstat): Ditto. (_stat): Ditto. (_fstat64_r): New function. (_fstat_r): Ditto. (_stat64_r): Ditto. (stat_r): Ditto. * crt0.o: New file, moved from newlib. * include/sys/param.h: Ditto. * include/sys/utime.h: Ditto. * include/sys/utmp.h: Ditto. * include/sys/dirent.h: Ditto. Expose different struct dirent, dependening of the environment.
Diffstat (limited to 'winsup/cygwin/include/sys/param.h')
-rw-r--r--winsup/cygwin/include/sys/param.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/winsup/cygwin/include/sys/param.h b/winsup/cygwin/include/sys/param.h
new file mode 100644
index 0000000..09ef74e
--- /dev/null
+++ b/winsup/cygwin/include/sys/param.h
@@ -0,0 +1,51 @@
+/* sys/param.h
+
+ Copyright 2001 Red Hat, Inc.
+
+ This software is a copyrighted work licensed under the terms of the
+ Cygwin license. Please consult the file "CYGWIN_LICENSE" for
+ details. */
+
+#ifndef _SYS_PARAM_H
+#define _SYS_PARAM_H
+
+#include <sys/types.h>
+/* Linux includes limits.h, but this is not universally done. */
+#include <limits.h>
+
+/* Max number of open files. The Posix version is OPEN_MAX. */
+/* Number of fds is virtually unlimited in cygwin, but we must provide
+ some reasonable value for Posix conformance */
+#define NOFILE 8192
+
+/* Max number of groups; must keep in sync with NGROUPS_MAX in limits.h */
+#define NGROUPS 16
+
+/* Ticks/second for system calls such as times() */
+/* FIXME: is this the appropriate value? */
+#define HZ 1000
+
+/* Max hostname size that can be dealt with */
+/* FIXME: is this the appropriate value? */
+#define MAXHOSTNAMELEN 64
+
+/* This is defined to be the same as MAX_PATH which is used internally.
+ The Posix version is PATH_MAX. */
+#define MAXPATHLEN (260 - 1 /*NUL*/)
+
+/* Some autoconf'd packages check for endianness. When cross-building we
+ can't run programs on the target. Fortunately, autoconf supports the
+ definition of byte order in sys/param.h (that's us!).
+ The values here are the same as used in gdb/defs.h (are the more
+ appropriate values?). */
+#define BIG_ENDIAN 4321
+#define LITTLE_ENDIAN 1234
+
+/* All known win32 systems are little endian. */
+#define BYTE_ORDER LITTLE_ENDIAN
+
+#ifndef NULL
+#define NULL 0L
+#endif
+
+#endif