]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/Include/sys/types.h
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / StdLib / Include / sys / types.h
diff --git a/StdLib/Include/sys/types.h b/StdLib/Include/sys/types.h
deleted file mode 100644 (file)
index 54ae008..0000000
+++ /dev/null
@@ -1,301 +0,0 @@
-/** @file\r
-    System type declarations.\r
-\r
-    Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
-    This program and the accompanying materials are licensed and made available\r
-    under the terms and conditions of the BSD License that accompanies this\r
-    distribution.  The full text of the license may be found at\r
-    http://opensource.org/licenses/bsd-license.\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) 1990, 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
-      - Redistributions of source code must retain the above copyright\r
-        notice, this list of conditions and the following disclaimer.\r
-      - 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
-      - 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 COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"\r
-    AND 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 COPYRIGHT HOLDERS OR CONTRIBUTORS BE\r
-    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r
-    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r
-    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
-    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r
-    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r
-    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
-    POSSIBILITY OF SUCH DAMAGE.\r
-\r
-    NetBSD: types.h,v 1.71.12.1 2007/09/27 13:40:47 xtraeme Exp\r
-    types.h 8.4 (Berkeley) 1/21/94\r
-**/\r
-#ifndef _SYS_TYPES_H_\r
-#define _SYS_TYPES_H_\r
-\r
-#include  <sys/EfiCdefs.h>\r
-\r
-/* Machine type dependent parameters. */\r
-#include  <machine/types.h>\r
-\r
-#include  <machine/ansi.h>\r
-#include  <machine/int_types.h>\r
-\r
-\r
-#include  <sys/ansi.h>\r
-\r
-#ifndef int8_t\r
-  typedef __int8_t  int8_t;\r
-  #define int8_t    __int8_t\r
-#endif\r
-\r
-#ifndef uint8_t\r
-  typedef __uint8_t uint8_t;\r
-  #define uint8_t   __uint8_t\r
-#endif\r
-\r
-#ifndef int16_t\r
-  typedef __int16_t int16_t;\r
-  #define int16_t   __int16_t\r
-#endif\r
-\r
-#ifndef uint16_t\r
-  typedef __uint16_t  uint16_t;\r
-  #define uint16_t  __uint16_t\r
-#endif\r
-\r
-#ifndef int32_t\r
-  typedef __int32_t int32_t;\r
-  #define int32_t   __int32_t\r
-#endif\r
-\r
-#ifndef uint32_t\r
-  typedef __uint32_t  uint32_t;\r
-  #define uint32_t  __uint32_t\r
-#endif\r
-\r
-#ifndef int64_t\r
-  typedef __int64_t int64_t;\r
-  #define int64_t   __int64_t\r
-#endif\r
-\r
-#ifndef uint64_t\r
-  typedef __uint64_t  uint64_t;\r
-  #define uint64_t  __uint64_t\r
-#endif\r
-\r
-typedef uint8_t   u_int8_t;\r
-typedef uint16_t  u_int16_t;\r
-typedef uint32_t  u_int32_t;\r
-typedef uint64_t  u_int64_t;\r
-\r
-#include <machine/endian.h>\r
-\r
-#if defined(_NETBSD_SOURCE)\r
-  typedef UINT8   u_char;\r
-  typedef UINT16  u_short;\r
-  typedef UINTN   u_int;\r
-  typedef ULONGN  u_long;\r
-\r
-  typedef UINT8   unchar;   /* Sys V compatibility */\r
-  typedef UINT16  ushort;   /* Sys V compatibility */\r
-  typedef UINTN   uint;     /* Sys V compatibility */\r
-  typedef ULONGN  ulong;    /* Sys V compatibility */\r
-\r
-  typedef u_long    cpuid_t;\r
-#endif\r
-\r
-typedef uint64_t  u_quad_t; /* quads */\r
-typedef int64_t   quad_t;\r
-typedef quad_t *  qaddr_t;\r
-\r
-/*\r
- * The types longlong_t and u_longlong_t exist for use with the\r
- * Sun-derived XDR routines involving these types, and their usage\r
- * in other contexts is discouraged.  Further note that these types\r
- * may not be equivalent to "long long" and "unsigned long long",\r
- * they are only guaranteed to be signed and unsigned 64-bit types\r
- * respectively.  Portable programs that need 64-bit types should use\r
- * the C99 types int64_t and uint64_t instead.\r
- */\r
-\r
-typedef int64_t   longlong_t; /* for XDR */\r
-typedef uint64_t  u_longlong_t; /* for XDR */\r
-\r
-typedef int64_t   blkcnt_t; /* fs block count */\r
-typedef uint32_t  blksize_t;  /* fs optimal block size */\r
-\r
-#ifndef fsblkcnt_t\r
-  typedef __fsblkcnt_t  fsblkcnt_t; /* fs block count (statvfs) */\r
-  #define fsblkcnt_t  __fsblkcnt_t\r
-#endif\r
-\r
-#ifndef fsfilcnt_t\r
-  typedef __fsfilcnt_t  fsfilcnt_t; /* fs file count */\r
-  #define fsfilcnt_t  __fsfilcnt_t\r
-#endif\r
-\r
-#ifndef caddr_t\r
-  typedef __caddr_t caddr_t;  /* core address */\r
-  #define caddr_t   __caddr_t\r
-#endif\r
-\r
-#ifdef __daddr_t\r
-  typedef __daddr_t daddr_t;  /* disk address */\r
-  #undef __daddr_t\r
-#else\r
-  typedef int64_t   daddr_t;  /* disk address */\r
-#endif\r
-\r
-typedef uint32_t  dev_t;    /* device number */\r
-typedef uint32_t  fixpt_t;  /* fixed point number */\r
-\r
-#ifndef gid_t\r
-  typedef __gid_t   gid_t;    /* group id */\r
-  #define gid_t   __gid_t\r
-#endif\r
-\r
-typedef uint32_t  id_t;   /* group id, process id or user id */\r
-typedef uint64_t  ino_t;    /* inode number */\r
-typedef EFI_LONG_T    key_t;    /* IPC key (for Sys V IPC) */\r
-\r
-#ifndef mode_t\r
-  typedef __mode_t  mode_t;   /* permissions */\r
-  #define mode_t    __mode_t\r
-#endif\r
-\r
-typedef uint32_t  nlink_t;  /* link count */\r
-\r
-#ifndef off_t\r
-  typedef __off_t   off_t;    /* file offset */\r
-  #define off_t   __off_t\r
-#endif\r
-\r
-#ifndef pid_t\r
-  typedef __pid_t   pid_t;    /* process id */\r
-  #define pid_t   __pid_t\r
-#endif\r
-typedef int32_t   lwpid_t;  /* LWP id */\r
-typedef quad_t    rlim_t;   /* resource limit */\r
-typedef int32_t   segsz_t;  /* segment size */\r
-typedef int32_t   swblk_t;  /* swap offset */\r
-\r
-#ifndef uid_t\r
-  typedef __uid_t   uid_t;    /* user id */\r
-  #define uid_t   __uid_t\r
-#endif\r
-\r
-typedef int64_t   dtime_t;  /* on-disk time_t */\r
-\r
-#if defined(_LIBC)\r
-  /*\r
-   * semctl(2)'s argument structure.  This is here for the benefit of\r
-   * <sys/syscallargs.h>.  It is not in the user's namespace in SUSv2.\r
-   * The SUSv2 semctl(2) takes variable arguments.\r
-   */\r
-  union __semun {\r
-    int   val;    /* value for SETVAL */\r
-    struct semid_ds *buf;   /* buffer for IPC_STAT & IPC_SET */\r
-    unsigned short  *array;   /* array for GETALL & SETALL */\r
-  };\r
-  /* For the same reason as above */\r
-  #include <sys/stdint.h>\r
-  typedef intptr_t semid_t;\r
-#endif /* _LIBC */\r
-\r
-/*\r
- * These belong in EfiSysCall.h, but are also placed here to ensure that\r
- * long arguments will be promoted to off_t if the program fails to\r
- * include that header or explicitly cast them to off_t.\r
- */\r
-#ifndef __OFF_T_SYSCALLS_DECLARED\r
-  #define __OFF_T_SYSCALLS_DECLARED\r
-  __BEGIN_DECLS\r
-  extern off_t    lseek     (int, off_t, int);\r
-  extern int      truncate  (const char *, off_t);\r
-  extern int      ftruncate (int, off_t);\r
-  __END_DECLS\r
-#endif /* __OFF_T_SYSCALLS_DECLARED */\r
-\r
-#if defined(_NETBSD_SOURCE)\r
-  /* Major, minor numbers, dev_t's. */\r
-  #define major(x)  ((int32_t)((((x) & 0x000fff00) >>  8)))\r
-  #define minor(x)  ((int32_t)((((x) & 0xfff00000) >> 12) | \\r
-             (((x) & 0x000000ff) >>  0)))\r
-  #define makedev(x,y)  ((dev_t)((((x) <<  8) & 0x000fff00) | \\r
-           (((y) << 12) & 0xfff00000) | \\r
-           (((y) <<  0) & 0x000000ff)))\r
-#endif\r
-\r
-#if   defined(_BSD_CLOCK_T_) && defined(_EFI_CLOCK_T)\r
-  typedef _EFI_CLOCK_T      clock_t;\r
-  #undef  _BSD_CLOCK_T_\r
-  #undef  _EFI_CLOCK_T\r
-#endif\r
-\r
-#ifdef  _EFI_SIZE_T_\r
-  typedef _EFI_SIZE_T_      size_t;\r
-  #define _SIZE_T\r
-  #undef  _BSD_SIZE_T_\r
-  #undef  _EFI_SIZE_T_\r
-#endif\r
-\r
-#ifdef  _BSD_SSIZE_T_\r
-  typedef _BSD_SSIZE_T_   ssize_t;\r
-  #undef  _BSD_SSIZE_T_\r
-#endif\r
-\r
-#if   defined(_BSD_TIME_T_) && defined(_EFI_TIME_T)\r
-  typedef _EFI_TIME_T     time_t;\r
-  #undef  _BSD_TIME_T_\r
-  #undef  _EFI_TIME_T\r
-#endif\r
-\r
-#ifdef  _BSD_CLOCKID_T_\r
-  typedef _BSD_CLOCKID_T_   clockid_t;\r
-  #undef  _BSD_CLOCKID_T_\r
-#endif\r
-\r
-#ifdef  _BSD_TIMER_T_\r
-  typedef _BSD_TIMER_T_   timer_t;\r
-  #undef  _BSD_TIMER_T_\r
-#endif\r
-\r
-#ifdef  _BSD_SUSECONDS_T_\r
-  typedef _BSD_SUSECONDS_T_ suseconds_t;\r
-  #undef  _BSD_SUSECONDS_T_\r
-#endif\r
-\r
-#ifdef  _BSD_USECONDS_T_\r
-  typedef _BSD_USECONDS_T_  useconds_t;\r
-  #undef  _BSD_USECONDS_T_\r
-#endif\r
-\r
-#ifdef _NETBSD_SOURCE\r
-  #include <sys/fd_set.h>\r
-  #define NBBY  __NBBY\r
-\r
-  typedef struct kauth_cred *kauth_cred_t;\r
-\r
-#endif\r
-\r
-#if 0\r
-  #if !defined(_KERNEL) && !defined(_STANDALONE)\r
-    #if (_POSIX_C_SOURCE - 0L) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \\r
-         defined(_NETBSD_SOURCE)\r
-      #include <pthread_types.h>\r
-    #endif\r
-  #endif\r
-#endif  /* if 0 */\r
-\r
-#endif /* !_SYS_TYPES_H_ */\r