]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/Include/dirent.h
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / StdLib / Include / dirent.h
diff --git a/StdLib/Include/dirent.h b/StdLib/Include/dirent.h
deleted file mode 100644 (file)
index d67a9e7..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-/** @file\r
-    Declarations pertaining to directory entries under the UEFI environment.\r
-\r
-    The information is based upon the EFI_FILE_INFO structure\r
-    in MdePkg/Include/Guid/FileInfo.h.\r
-\r
-    Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
-    This program and the accompanying materials\r
-    are licensed and made available under the terms and conditions of the BSD License\r
-    which accompanies this distribution.  The full text of the license may be found at\r
-    http://opensource.org/licenses/bsd-license.php\r
-\r
-    THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-    WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-    Copyright (c) 1989, 1993\r
-    The Regents of the University of California.  All rights reserved.\r
-\r
-    Redistribution and use in source and binary forms, with or without\r
-    modification, are permitted provided that the following conditions\r
-    are met:\r
-    1. Redistributions of source code must retain the above copyright\r
-      notice, this list of conditions and the following disclaimer.\r
-    2. Redistributions in binary form must reproduce the above copyright\r
-      notice, this list of conditions and the following disclaimer in the\r
-      documentation and/or other materials provided with the distribution.\r
-    3. Neither the name of the University nor the names of its contributors\r
-      may be used to endorse or promote products derived from this software\r
-      without specific prior written permission.\r
-\r
-    THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\r
-    ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
-    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
-    ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\r
-    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
-    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
-    OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
-    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
-    LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
-    OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
-    SUCH DAMAGE.\r
-\r
-    NetBSD: dirent.h,v 1.30 2008/01/09 20:55:03 christos Exp\r
-    @(#)dirent.h  8.2 (Berkeley) 7/28/94\r
-**/\r
-#ifndef _DIRENT_H_\r
-#define _DIRENT_H_\r
-\r
-#include <sys/featuretest.h>\r
-#include <sys/types.h>\r
-\r
-#include <sys/dirent.h>\r
-\r
-typedef struct _dirdesc DIR;\r
-\r
-/* definitions for library routines operating on directories. */\r
-#define DIRBLKSIZ 1024\r
-\r
-/* structure describing an open directory. */\r
-struct _dirdesc {\r
-  int     dd_fd;          /* file descriptor associated with directory */\r
-  long    dd_loc;         /* offset in current buffer */\r
-  long    dd_size;        /* amount of data returned by getdents */\r
-  char   *dd_buf;         /* data buffer */\r
-  int     dd_len;         /* size of data buffer */\r
-  off_t   dd_seek;        /* magic cookie returned by getdents */\r
-  void   *dd_internal;    /* state for seekdir/telldir */\r
-  int     dd_flags;       /* flags for readdir */\r
-  void   *dd_lock;        /* lock for concurrent access */\r
-};\r
-\r
-#define dirfd(dirp) ((dirp)->dd_fd)\r
-\r
-/* flags for __opendir2() */\r
-#define DTF_HIDEW       0x0001  /* hide whiteout entries */\r
-#define DTF_NODUP       0x0002  /* don't return duplicate names */\r
-#define DTF_REWIND      0x0004  /* rewind after reading union stack */\r
-#define __DTF_READALL   0x0008  /* everything has been read */\r
-\r
-#include <sys/cdefs.h>\r
-\r
-__BEGIN_DECLS\r
-  int             closedir(DIR *);\r
-  void            rewinddir(DIR *);\r
-\r
-  DIR            *opendir(const char *)                                       __RENAME(__opendir30);\r
-  struct dirent  *readdir(DIR *)                                              __RENAME(__readdir30);\r
-  int             readdir_r(DIR * __restrict, struct dirent * __restrict,\r
-                            struct dirent ** __restrict)                      __RENAME(__readdir_r30);\r
-\r
-  void            seekdir(DIR *, long);\r
-  long            telldir(DIR *);\r
-  DIR            *__opendir2(const char *, int)                               __RENAME(__opendir230);\r
-\r
-  //#ifndef __LIBC12_SOURCE__\r
-  //int             scandir(const char *, struct dirent ***,\r
-  //                        int (*)(const struct dirent *), int (*)(const void *,\r
-  //                        const void *))  __RENAME(__scandir30);\r
-  //int             getdents(int, char *, size_t) __RENAME(__getdents30);\r
-  //#endif\r
-\r
-  //int             alphasort(const void *, const void *);\r
-__END_DECLS\r
-\r
-\r
-#endif /* _DIRENT_H_ */\r