diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-10-08 11:49:26 +0300 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-10-11 09:29:16 +0300 |
commit | da418955f5dca2f8570561c5dd6e79e25ebaeba2 (patch) | |
tree | 856527f26261ad35824ead82f9876f79f61e6b08 /newlib/libc/sys | |
parent | 61fc64ed975d0c47582c23e5ce47a4af51c66733 (diff) |
Move common <sys/dirent.h> content to <dirent.h>
Move common content of the various <sys/dirent.h> and the latest FreeBSD
<dirent.h> to <dirent.h>.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diffstat (limited to 'newlib/libc/sys')
-rw-r--r-- | newlib/libc/sys/decstation/sys/dirent.h | 7 | ||||
-rw-r--r-- | newlib/libc/sys/phoenix/sys/dirent.h | 13 | ||||
-rw-r--r-- | newlib/libc/sys/rtems/include/sys/dirent.h | 20 | ||||
-rw-r--r-- | newlib/libc/sys/sparc64/sys/dirent.h | 7 | ||||
-rw-r--r-- | newlib/libc/sys/sun4/sys/dirent.h | 7 | ||||
-rw-r--r-- | newlib/libc/sys/sysvi386/sys/dirent.h | 7 |
6 files changed, 0 insertions, 61 deletions
diff --git a/newlib/libc/sys/decstation/sys/dirent.h b/newlib/libc/sys/decstation/sys/dirent.h index c3abda639..f5febb077 100644 --- a/newlib/libc/sys/decstation/sys/dirent.h +++ b/newlib/libc/sys/decstation/sys/dirent.h @@ -23,13 +23,6 @@ typedef struct __dirdesc { # define __dirfd(dp) ((dp)->dd_fd) -DIR *opendir (const char *); -struct dirent *readdir (DIR *); -int readdir_r (DIR *__restrict, struct dirent *__restrict, - struct dirent **__restrict); -void rewinddir (DIR *); -int closedir (DIR *); - #include <sys/types.h> #define MAXNAMLEN 255 diff --git a/newlib/libc/sys/phoenix/sys/dirent.h b/newlib/libc/sys/phoenix/sys/dirent.h index f8c72de02..3db267372 100644 --- a/newlib/libc/sys/phoenix/sys/dirent.h +++ b/newlib/libc/sys/phoenix/sys/dirent.h @@ -45,19 +45,6 @@ typedef struct { #define __dirfd(dir) (dir)->dd_fd -DIR *opendir(const char *name); -struct dirent *readdir(DIR *dirp); -void rewinddir(DIR *dirp); -int closedir(DIR *dirp); - -long telldir(DIR *dirp); -void seekdir(DIR *dirp, off_t loc); -int scandir(const char *__dir, - struct dirent ***__namelist, - int (*select) (const struct dirent *), - int (*compar) (const struct dirent **, const struct dirent **)); -int alphasort(const struct dirent **__a, const struct dirent **__b); - #define _seekdir seekdir /* Declare which dirent fields are available in Phoenix-RTOS. */ diff --git a/newlib/libc/sys/rtems/include/sys/dirent.h b/newlib/libc/sys/rtems/include/sys/dirent.h index bedb4e484..cb64307f9 100644 --- a/newlib/libc/sys/rtems/include/sys/dirent.h +++ b/newlib/libc/sys/rtems/include/sys/dirent.h @@ -24,19 +24,6 @@ typedef struct _dirdesc { # define __dirfd(dp) ((dp)->dd_fd) -DIR *opendir(const char *); -struct dirent *readdir(DIR *); -int readdir_r(DIR *__restrict, struct dirent *__restrict, - struct dirent **__restrict); -void rewinddir(DIR *); -int closedir(DIR *); -void seekdir(DIR *dir, long loc); -long telldir(DIR *dir); - -#ifdef _COMPILING_NEWLIB -void _seekdir(DIR *dir, long offset); -#endif - #include <sys/types.h> #include <limits.h> @@ -54,13 +41,6 @@ struct dirent { #define MAXNAMLEN NAME_MAX #endif -int alphasort(const struct dirent **, const struct dirent **); -int scandir ( const char *dirname, - struct dirent *** namelist, - int (*select)(const struct dirent *), - int (*dcomp)(const struct dirent **, const struct dirent **) -); - #ifdef __cplusplus } #endif diff --git a/newlib/libc/sys/sparc64/sys/dirent.h b/newlib/libc/sys/sparc64/sys/dirent.h index cb933b457..ec6df0c83 100644 --- a/newlib/libc/sys/sparc64/sys/dirent.h +++ b/newlib/libc/sys/sparc64/sys/dirent.h @@ -19,13 +19,6 @@ typedef struct __dirdesc { # define __dirfd(dp) ((dp)->dd_fd) -DIR *opendir (const char *); -struct dirent *readdir (DIR *); -int readdir_r (DIR *__restrict, struct dirent *__restrict, - struct dirent **__restrict); -void rewinddir (DIR *); -int closedir (DIR *); - #include <sys/types.h> #undef MAXNAMLEN /* from unistd.h */ diff --git a/newlib/libc/sys/sun4/sys/dirent.h b/newlib/libc/sys/sun4/sys/dirent.h index 2e6fc456f..02943fe6d 100644 --- a/newlib/libc/sys/sun4/sys/dirent.h +++ b/newlib/libc/sys/sun4/sys/dirent.h @@ -21,13 +21,6 @@ typedef struct __dirdesc { # define __dirfd(dp) ((dp)->dd_fd) -DIR *opendir (const char *); -struct dirent *readdir (DIR *); -int readdir_r (DIR *__restrict, struct dirent *__restrict, - struct dirent **__restrict); -void rewinddir (DIR *); -int closedir (DIR *); - #include <sys/types.h> #define MAXNAMLEN 255 diff --git a/newlib/libc/sys/sysvi386/sys/dirent.h b/newlib/libc/sys/sysvi386/sys/dirent.h index 06af4faac..7851390c0 100644 --- a/newlib/libc/sys/sysvi386/sys/dirent.h +++ b/newlib/libc/sys/sysvi386/sys/dirent.h @@ -18,13 +18,6 @@ typedef struct _dirdesc { # define __dirfd(dp) ((dp)->dd_fd) -DIR *opendir (const char *); -struct dirent *readdir (DIR *); -int readdir_r (DIR *__restrict, struct dirent *__restrict, - struct dirent **__restrict); -void rewinddir (DIR *); -int closedir (DIR *); - #include <sys/types.h> struct dirent { |