summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/misc.c b/misc.c
index 5305220..ef754e5 100644
--- a/misc.c
+++ b/misc.c
@@ -828,35 +828,3 @@ get_path_max (void)
return value;
}
#endif
-
-
-#ifdef HAVE_BROKEN_RESTART
-
-#undef stat
-#undef readdir
-
-int
-atomic_stat (const char *file, struct stat *buf)
-{
- int r;
-
- while ((r = stat (file, buf)) < 0)
- if (errno != EINTR)
- break;
-
- return r;
-}
-
-struct dirent *
-atomic_readdir (DIR *dir)
-{
- struct dirent *r;
-
- while ((r = readdir (dir)) == NULL)
- if (errno != EINTR)
- break;
-
- return r;
-}
-
-#endif /* HAVE_BROKEN_RESTART */