diff options
author | Roland McGrath <roland@hack.frob.com> | 2012-08-07 14:47:34 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2012-08-07 14:47:34 -0700 |
commit | a281decc878cf26cae12a5bdf5f4c6e0297303d6 (patch) | |
tree | b28e5b00fdbeb4289346b0df64d6f75aaacece75 | |
parent | 22895b476794b69a9a42e6bb4ceb929dc6a43917 (diff) | |
download | glibc-a281decc878cf26cae12a5bdf5f4c6e0297303d6.tar.gz glibc-a281decc878cf26cae12a5bdf5f4c6e0297303d6.tar.xz glibc-a281decc878cf26cae12a5bdf5f4c6e0297303d6.zip |
Move common dirent implementation from sysdeps/unix to sysdeps/posix.
-rw-r--r-- | ChangeLog | 25 | ||||
-rw-r--r-- | sysdeps/posix/closedir.c (renamed from sysdeps/unix/closedir.c) | 0 | ||||
-rw-r--r-- | sysdeps/posix/dirfd.c (renamed from sysdeps/unix/dirfd.c) | 0 | ||||
-rw-r--r-- | sysdeps/posix/dirstream.h (renamed from sysdeps/unix/dirstream.h) | 0 | ||||
-rw-r--r-- | sysdeps/posix/fdopendir.c (renamed from sysdeps/unix/fdopendir.c) | 0 | ||||
-rw-r--r-- | sysdeps/posix/opendir.c (renamed from sysdeps/unix/opendir.c) | 0 | ||||
-rw-r--r-- | sysdeps/posix/readdir.c (renamed from sysdeps/unix/readdir.c) | 0 | ||||
-rw-r--r-- | sysdeps/posix/readdir_r.c (renamed from sysdeps/unix/readdir_r.c) | 0 | ||||
-rw-r--r-- | sysdeps/posix/rewinddir.c (renamed from sysdeps/unix/rewinddir.c) | 0 | ||||
-rw-r--r-- | sysdeps/posix/seekdir.c (renamed from sysdeps/unix/seekdir.c) | 0 | ||||
-rw-r--r-- | sysdeps/posix/telldir.c (renamed from sysdeps/unix/telldir.c) | 0 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/readdir64.c | 6 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/opendir.c | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/readdir64.c | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/wordsize-64/readdir.c | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c | 2 |
16 files changed, 32 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog index b2641ed4cd..1cd494b661 100644 --- 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. diff --git a/sysdeps/unix/closedir.c b/sysdeps/posix/closedir.c index 41abf28c6f..41abf28c6f 100644 --- a/sysdeps/unix/closedir.c +++ b/sysdeps/posix/closedir.c diff --git a/sysdeps/unix/dirfd.c b/sysdeps/posix/dirfd.c index 536c44e30e..536c44e30e 100644 --- a/sysdeps/unix/dirfd.c +++ b/sysdeps/posix/dirfd.c diff --git a/sysdeps/unix/dirstream.h b/sysdeps/posix/dirstream.h index 6ca290471d..6ca290471d 100644 --- a/sysdeps/unix/dirstream.h +++ b/sysdeps/posix/dirstream.h diff --git a/sysdeps/unix/fdopendir.c b/sysdeps/posix/fdopendir.c index beddcbe029..beddcbe029 100644 --- a/sysdeps/unix/fdopendir.c +++ b/sysdeps/posix/fdopendir.c diff --git a/sysdeps/unix/opendir.c b/sysdeps/posix/opendir.c index e093142f62..e093142f62 100644 --- a/sysdeps/unix/opendir.c +++ b/sysdeps/posix/opendir.c diff --git a/sysdeps/unix/readdir.c b/sysdeps/posix/readdir.c index be0fcaee9f..be0fcaee9f 100644 --- a/sysdeps/unix/readdir.c +++ b/sysdeps/posix/readdir.c diff --git a/sysdeps/unix/readdir_r.c b/sysdeps/posix/readdir_r.c index bfa2c0b8f5..bfa2c0b8f5 100644 --- a/sysdeps/unix/readdir_r.c +++ b/sysdeps/posix/readdir_r.c diff --git a/sysdeps/unix/rewinddir.c b/sysdeps/posix/rewinddir.c index f8eefea542..f8eefea542 100644 --- a/sysdeps/unix/rewinddir.c +++ b/sysdeps/posix/rewinddir.c diff --git a/sysdeps/unix/seekdir.c b/sysdeps/posix/seekdir.c index 88e34ee28f..88e34ee28f 100644 --- a/sysdeps/unix/seekdir.c +++ b/sysdeps/posix/seekdir.c diff --git a/sysdeps/unix/telldir.c b/sysdeps/posix/telldir.c index 4a3ad25b1d..4a3ad25b1d 100644 --- a/sysdeps/unix/telldir.c +++ b/sysdeps/posix/telldir.c diff --git a/sysdeps/unix/sysv/linux/i386/readdir64.c b/sysdeps/unix/sysv/linux/i386/readdir64.c index 570c74161c..2023fa5c5e 100644 --- a/sysdeps/unix/sysv/linux/i386/readdir64.c +++ b/sysdeps/unix/sysv/linux/i386/readdir64.c @@ -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 diff --git a/sysdeps/unix/sysv/linux/opendir.c b/sysdeps/unix/sysv/linux/opendir.c index b0bb80d397..614cba101d 100644 --- a/sysdeps/unix/sysv/linux/opendir.c +++ b/sysdeps/unix/sysv/linux/opendir.c @@ -17,4 +17,4 @@ #define O_DIRECTORY_WORKS 1 -#include <sysdeps/unix/opendir.c> +#include <sysdeps/posix/opendir.c> diff --git a/sysdeps/unix/sysv/linux/readdir64.c b/sysdeps/unix/sysv/linux/readdir64.c index e2c5002390..224f53db88 100644 --- a/sysdeps/unix/sysv/linux/readdir64.c +++ b/sysdeps/unix/sysv/linux/readdir64.c @@ -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) diff --git a/sysdeps/unix/sysv/linux/wordsize-64/readdir.c b/sysdeps/unix/sysv/linux/wordsize-64/readdir.c index 300ebb2629..e197d93b00 100644 --- a/sysdeps/unix/sysv/linux/wordsize-64/readdir.c +++ b/sysdeps/unix/sysv/linux/wordsize-64/readdir.c @@ -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 diff --git a/sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c b/sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c index 12ca1a1ef7..5ed8e955e2 100644 --- a/sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c +++ b/sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c @@ -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) |