summaryrefslogtreecommitdiff
path: root/dirent/dirent.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-08-18 18:44:33 +0000
committerUlrich Drepper <drepper@redhat.com>1999-08-18 18:44:33 +0000
commit70b2845f71c1fb6bd5ec3ef325974b6a90cdb45c (patch)
tree8f3322b07a111d14b3ff960a5abd5d48422358b1 /dirent/dirent.h
parentad1b5f19680f923691a5674c132c4c36e9b162f5 (diff)
downloadglibc-70b2845f71c1fb6bd5ec3ef325974b6a90cdb45c.tar.gz
Update.
1999-08-18 Ulrich Drepper <drepper@cygnus.com> * ctype/ctype.h: Avoid useless #endif #if pairs. * dirent/dirent.h: Define ino_t and ino64_t if not done already. (seekdir): Fix type of second parameter. * sysdeps/generic/seekdir.c: Likewise. * sysdeps/mach/hurd/seekdir.c: Likewise. * sysdeps/unix/seekdir.c: Likewise. * dlfcn/dlfcn.h: Define RTLD_NEXT and RTLD_DEFAULT only if __USE_GNU.
Diffstat (limited to 'dirent/dirent.h')
-rw-r--r--dirent/dirent.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/dirent/dirent.h b/dirent/dirent.h
index 472b4804af..7154b52c85 100644
--- a/dirent/dirent.h
+++ b/dirent/dirent.h
@@ -29,6 +29,20 @@ __BEGIN_DECLS
#include <bits/types.h>
+#ifdef __USE_XOPEN
+# ifndef __ino_t_defined
+# ifndef __USE_FILE_OFFSET64
+typedef __ino_t ino_t;
+# else
+typedef __ino64_t ino_t;
+# endif
+# define __ino_t_defined
+# endif
+# ifdef __USE_LARGEFILE64
+typedef __ino64_t ino64_t;
+# endif
+#endif
+
/* This file defines `struct dirent'.
It defines the macro `_DIRENT_HAVE_D_NAMLEN' iff there is a `d_namlen'
@@ -171,7 +185,7 @@ extern void rewinddir __P ((DIR *__dirp));
# include <bits/types.h>
/* Seek to position POS on DIRP. */
-extern void seekdir __P ((DIR *__dirp, __off_t __pos));
+extern void seekdir __P ((DIR *__dirp, long int __pos));
/* Return the current position of DIRP. */
extern long int telldir __P ((DIR *__dirp));