aboutsummaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-05-10 15:55:50 -0700
committerRoland McGrath <roland@hack.frob.com>2012-05-10 15:57:29 -0700
commitf42d41d10769f9bf465348e6cf6960364d47e10b (patch)
treeb5b0e748309ebe5ff44bf0f506bd5e838a688fe7 /io
parentHurd: Fix paths in paths.h (diff)
downloadglibc-f42d41d10769f9bf465348e6cf6960364d47e10b.tar.gz
glibc-f42d41d10769f9bf465348e6cf6960364d47e10b.tar.bz2
glibc-f42d41d10769f9bf465348e6cf6960364d47e10b.zip
Hurd: Define some posix types
Diffstat (limited to 'io')
-rw-r--r--io/fcntl.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/io/fcntl.h b/io/fcntl.h
index 8b8726a440..c7d5e6972c 100644
--- a/io/fcntl.h
+++ b/io/fcntl.h
@@ -1,5 +1,4 @@
-/* Copyright (C) 1991,1992,1994-2001,2003-2007,2009-2011,2012
- Free Software Foundation, Inc.
+/* Copyright (C) 1991-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -32,6 +31,29 @@ __BEGIN_DECLS
numbers and flag bits for `open', `fcntl', et al. */
#include <bits/fcntl.h>
+#if defined __USE_XOPEN || defined __USE_XOPEN2K
+/* The Single Unix specification says that some more types are
+ available here. */
+# ifndef __mode_t_defined
+typedef __mode_t mode_t;
+# define __mode_t_defined
+# endif
+
+# ifndef __off_t_defined
+# ifndef __USE_FILE_OFFSET64
+typedef __off_t off_t;
+# else
+typedef __off64_t off_t;
+# endif
+# define __off_t_defined
+# endif
+
+# ifndef __pid_t_defined
+typedef __pid_t pid_t;
+# define __pid_t_defined
+# endif
+#endif /* X/Open */
+
/* For XPG all symbols from <sys/stat.h> should also be available. */
#if defined __USE_XOPEN || defined __USE_XOPEN2K8
# include <bits/types.h> /* For __mode_t and __dev_t. */