summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include/sys
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2006-11-07 17:59:54 +0000
committerCorinna Vinschen <corinna@vinschen.de>2006-11-07 17:59:54 +0000
commit86bc8fadff6523470b68b9838fe7af2e55f3b5a3 (patch)
treede07bfefd0e7e3edcdc284d5670fc40a5f674d88 /winsup/cygwin/include/sys
parentb1755fe736898400c88fa030a9667b576fa7e88c (diff)
downloadcygnal-86bc8fadff6523470b68b9838fe7af2e55f3b5a3.tar.gz
cygnal-86bc8fadff6523470b68b9838fe7af2e55f3b5a3.tar.bz2
cygnal-86bc8fadff6523470b68b9838fe7af2e55f3b5a3.zip
* fhandler.cc (check_posix_perm): Moved here from syscalls.cc.
(fhandler_base::fpathconf): New method implementing (f)pathconf. * fhandler.h (class fhandler_base): Declare fpathconf method. * path.cc (path_conv::check): Replace MAX_LINK_DEPTH with SYMLOOP_MAX. * path.h (MAX_LINK_DEPTH): Delete. * syscalls.cc (check_posix_perm): Move to fhandler.cc. (fpathconf): Call fhandler's fpathconf method. (pathconf): Build fhandler and call fhandler's fpathconf method. * sysconf.cc (sysconf): Reorder switch according to order of flags in sys/unistd.h. Add handling for some missing flags. * include/limits.h: Reorder according to SUSv3 description. Add some missing definitions. Add comments. * include/sys/syslimits.h: New file overriding newlib's syslimits.h file.
Diffstat (limited to 'winsup/cygwin/include/sys')
-rw-r--r--winsup/cygwin/include/sys/syslimits.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/winsup/cygwin/include/sys/syslimits.h b/winsup/cygwin/include/sys/syslimits.h
new file mode 100644
index 000000000..b501de81e
--- /dev/null
+++ b/winsup/cygwin/include/sys/syslimits.h
@@ -0,0 +1,20 @@
+/* sys/syslimits.h
+
+ Copyright 2006 Red Hat, Inc.
+
+This file is part of Cygwin.
+
+This software is a copyrighted work licensed under the terms of the
+Cygwin license. Please consult the file "CYGWIN_LICENSE" for
+details. */
+
+#ifndef _SYS_SYSLIMITS_H
+#define _SYS_SYSLIMITS_H
+
+#ifdef _COMPILING_NEWLIB
+# include <limits.h>
+#else
+# error "Do not include sys/syslimits.h from applications directly."
+#endif
+
+#endif /*_SYS_SYSLIMITS_H */