From 6bb246e5a2d8ebd424feae8c5e9632902b287473 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 9 Mar 2000 03:58:40 +0000 Subject: [PATCH] twiddling with the lock (i hope) --- winsup/sys/dirent.h | 58 --------------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 winsup/sys/dirent.h diff --git a/winsup/sys/dirent.h b/winsup/sys/dirent.h deleted file mode 100644 index 3c0ec4e..0000000 --- a/winsup/sys/dirent.h +++ /dev/null @@ -1,58 +0,0 @@ -/* Posix dirent.h for WIN32. */ - -/* Including this file should not require any Windows headers. */ - -#ifndef _SYS_DIRENT_H -#define _SYS_DIRENT_H - -#include - -struct dirent -{ - long __d_reserved[4]; - ino_t d_ino; /* Just for compatibility, it's junk */ - char d_name[256]; /* FIXME: use NAME_MAX? */ -}; - -#define __DIRENT_COOKIE 0xdede4242 - -typedef struct -{ - /* This is first to set alignment in non _COMPILING_NEWLIB case. */ - unsigned long __d_cookie; - struct dirent *__d_dirent; - char *__d_dirname; /* directory name with trailing '*' */ - off_t __d_position; /* used by telldir/seekdir */ - unsigned long __d_dirhash; /* hash of directory name for use by - readdir */ - union - { -#ifdef _COMPILING_NEWLIB - struct - { - HANDLE __handle; - char __open_p; - } __d_data; -#endif - char __d_filler[16]; - } __d_u; -} DIR; - -DIR *opendir (const char *); -struct dirent *readdir (DIR *); -void rewinddir (DIR *); -int closedir (DIR *); - -#ifndef _POSIX_SOURCE -off_t telldir (DIR *); -void seekdir (DIR *, 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); -#endif /* _POSIX_SOURCE */ - -#endif