summaryrefslogtreecommitdiff
path: root/libc/unistd
diff options
context:
space:
mode:
Diffstat (limited to 'libc/unistd')
-rw-r--r--libc/unistd/daemon.c5
-rw-r--r--libc/unistd/fpathconf.c2
-rw-r--r--libc/unistd/pathconf.c2
-rw-r--r--libc/unistd/sysconf.c4
4 files changed, 2 insertions, 11 deletions
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 <sys/stat.h>
#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;