Move common dirent implementation from sysdeps/unix to sysdeps/posix.
authorRoland McGrath <roland@hack.frob.com>
Tue, 7 Aug 2012 21:47:34 +0000 (14:47 -0700)
committerRoland McGrath <roland@hack.frob.com>
Tue, 7 Aug 2012 21:47:34 +0000 (14:47 -0700)
16 files changed:
ChangeLog
sysdeps/posix/closedir.c [moved from sysdeps/unix/closedir.c with 100% similarity]
sysdeps/posix/dirfd.c [moved from sysdeps/unix/dirfd.c with 100% similarity]
sysdeps/posix/dirstream.h [moved from sysdeps/unix/dirstream.h with 100% similarity]
sysdeps/posix/fdopendir.c [moved from sysdeps/unix/fdopendir.c with 100% similarity]
sysdeps/posix/opendir.c [moved from sysdeps/unix/opendir.c with 100% similarity]
sysdeps/posix/readdir.c [moved from sysdeps/unix/readdir.c with 100% similarity]
sysdeps/posix/readdir_r.c [moved from sysdeps/unix/readdir_r.c with 100% similarity]
sysdeps/posix/rewinddir.c [moved from sysdeps/unix/rewinddir.c with 100% similarity]
sysdeps/posix/seekdir.c [moved from sysdeps/unix/seekdir.c with 100% similarity]
sysdeps/posix/telldir.c [moved from sysdeps/unix/telldir.c with 100% similarity]
sysdeps/unix/sysv/linux/i386/readdir64.c
sysdeps/unix/sysv/linux/opendir.c
sysdeps/unix/sysv/linux/readdir64.c
sysdeps/unix/sysv/linux/wordsize-64/readdir.c
sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c

index b2641ed..1cd494b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,30 @@
 2012-08-07  Roland McGrath  <roland@hack.frob.com>
 
+       * sysdeps/unix/closedir.c: Renamed to ...
+       * sysdeps/posix/closedir.c: ... here.
+       * sysdeps/unix/dirfd.c: Renamed to ...
+       * sysdeps/posix/dirfd.c: ... here.
+       * sysdeps/unix/dirstream.h: Renamed to ...
+       * sysdeps/posix/dirstream.h: ... here.
+       * sysdeps/unix/fdopendir.c: Renamed to ...
+       * sysdeps/posix/fdopendir.c: ... here.
+       * sysdeps/unix/opendir.c: Renamed to ...
+       * sysdeps/posix/opendir.c: ... here.
+       * sysdeps/unix/readdir.c: Renamed to ...
+       * sysdeps/posix/readdir.c: ... here.
+       * sysdeps/unix/readdir_r.c: Renamed to ...
+       * sysdeps/posix/readdir_r.c: ... here.
+       * sysdeps/unix/rewinddir.c: Renamed to ...
+       * sysdeps/posix/rewinddir.c: ... here.
+       * sysdeps/unix/seekdir.c: Renamed to ...
+       * sysdeps/posix/seekdir.c: ... here.
+       * sysdeps/unix/telldir.c: Renamed to ...
+       * sysdeps/posix/telldir.c: ... here.
+       * sysdeps/unix/sysv/linux/opendir.c: Update #include.
+       * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
+       * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
+       * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
+
        * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
        * bits/fcntl.h: ... here.
 
similarity index 100%
rename from sysdeps/unix/dirfd.c
rename to sysdeps/posix/dirfd.c
index 570c741..2023fa5 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2004 Free Software Foundation, Inc.
+/* Copyright (C) 2000-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
@@ -19,7 +19,7 @@
 #define __GETDENTS __getdents64
 #define DIRENT_TYPE struct dirent64
 
-#include <sysdeps/unix/readdir.c>
+#include <sysdeps/posix/readdir.c>
 
 #include <shlib-compat.h>
 
@@ -37,7 +37,7 @@ versioned_symbol (libc, __readdir64, readdir64, GLIBC_2_2);
 #define __GETDENTS __old_getdents64
 #define DIRENT_TYPE struct __old_dirent64
 
-#include <sysdeps/unix/readdir.c>
+#include <sysdeps/posix/readdir.c>
 
 compat_symbol (libc, __old_readdir64, readdir64, GLIBC_2_1);
 #endif
index b0bb80d..614cba1 100644 (file)
@@ -17,4 +17,4 @@
 
 #define O_DIRECTORY_WORKS      1
 
-#include <sysdeps/unix/opendir.c>
+#include <sysdeps/posix/opendir.c>
index e2c5002..224f53d 100644 (file)
@@ -2,6 +2,6 @@
 #define __GETDENTS __getdents64
 #define DIRENT_TYPE struct dirent64
 
-#include <sysdeps/unix/readdir.c>
+#include <sysdeps/posix/readdir.c>
 
 weak_alias (__readdir64, readdir64)
index 300ebb2..e197d93 100644 (file)
@@ -1,6 +1,6 @@
 #define readdir64 __no_readdir64_decl
 #define __readdir64 __no___readdir64_decl
-#include <sysdeps/unix/readdir.c>
+#include <sysdeps/posix/readdir.c>
 #undef __readdir64
 strong_alias (__readdir, __readdir64)
 #undef readdir64
index 12ca1a1..5ed8e95 100644 (file)
@@ -1,5 +1,5 @@
 #define readdir64_r __no_readdir64_r_decl
 #define GETDENTS_64BIT_ALIGNED 1
-#include <sysdeps/unix/readdir_r.c>
+#include <sysdeps/posix/readdir_r.c>
 #undef readdir64_r
 weak_alias (__readdir_r, readdir64_r)