From f0af695b6c3289a041e8fce8926721063796c596 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Wed, 22 Nov 2023 21:06:33 +0100 Subject: Meta: Use dirent as a general include file This include file is shared by the kernel and libc --- userland/libc/include/dirent.h | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 userland/libc/include/dirent.h (limited to 'userland/libc/include/dirent.h') diff --git a/userland/libc/include/dirent.h b/userland/libc/include/dirent.h deleted file mode 100644 index 9f25cbf..0000000 --- a/userland/libc/include/dirent.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef DIRENT_H -#define DIRENT_H -#include -#include -#include -#include -#include -#include - -#define S_ISREG(_m) (_m & (STAT_REG)) -#define S_ISDIR(_m) (_m & (STAT_DIR)) - -struct dirent { - ino_t d_ino; // File serial number. - char d_name[PATH_MAX]; // Filename string of entry. -}; - -typedef struct { - int fd; - struct dirent internal_direntry; - int dir_num; -} DIR; - -DIR *opendir(const char *dirname); -struct dirent *readdir(DIR *dir); -int closedir(DIR *dirp); -int alphasort(const struct dirent **d1, const struct dirent **d2); -int scandir(const char *dir, struct dirent ***namelist, - int (*sel)(const struct dirent *), - int (*compar)(const struct dirent **, const struct dirent **)); -#endif -- cgit v1.2.3