From 74ca8d6f5d2e29bb7cf4606531313ee8c52b9eda Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 27 Nov 2016 22:31:25 +0100 Subject: remove UCLIBC_HAS_LFS --- libc/unistd/daemon.c | 5 ----- libc/unistd/fpathconf.c | 2 +- libc/unistd/pathconf.c | 2 +- libc/unistd/sysconf.c | 4 ---- 4 files changed, 2 insertions(+), 11 deletions(-) (limited to 'libc/unistd') diff --git a/libc/unistd/daemon.c b/libc/unistd/daemon.c index 8fa292850..3b3a6261f 100644 --- a/libc/unistd/daemon.c +++ b/libc/unistd/daemon.c @@ -53,13 +53,8 @@ #include #endif -#ifdef __UCLIBC_HAS_LFS__ #define STAT stat64 #define FSTAT fstat64 -#else -#define STAT stat -#define FSTAT fstat -#endif #if defined __USE_BSD || (defined __USE_XOPEN && !defined __USE_UNIX98) diff --git a/libc/unistd/fpathconf.c b/libc/unistd/fpathconf.c index fe4bcea67..556343be2 100644 --- a/libc/unistd/fpathconf.c +++ b/libc/unistd/fpathconf.c @@ -202,7 +202,7 @@ long int fpathconf(int fd, int name) #endif case _PC_ASYNC_IO: -#if defined _POSIX_ASYNC_IO && defined __UCLIBC_HAS_LFS__ +#if defined _POSIX_ASYNC_IO { /* AIO is only allowed on regular files and block devices. */ struct stat st; diff --git a/libc/unistd/pathconf.c b/libc/unistd/pathconf.c index de78a83e9..c8d03a20b 100644 --- a/libc/unistd/pathconf.c +++ b/libc/unistd/pathconf.c @@ -149,7 +149,7 @@ pathconf (const char *path, int name) #endif case _PC_ASYNC_IO: -#if defined _POSIX_ASYNC_IO && defined __UCLIBC_HAS_LFS__ +#if defined _POSIX_ASYNC_IO { /* AIO is only allowed on regular files and block devices. */ struct stat st; diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c index 3d3b1a5ff..172794e9c 100644 --- a/libc/unistd/sysconf.c +++ b/libc/unistd/sysconf.c @@ -99,10 +99,6 @@ static int nprocessors_onln(void) return ret != 0 ? ret : 1; } -#if defined __UCLIBC__ && !defined __UCLIBC_HAS_LFS__ -# define readdir64 readdir -# define dirent64 dirent -#endif static int nprocessors_conf(void) { int ret = 0; -- cgit v1.2.3