]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/Include/sys/_posix.h
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / StdLib / Include / sys / _posix.h
diff --git a/StdLib/Include/sys/_posix.h b/StdLib/Include/sys/_posix.h
deleted file mode 100644 (file)
index 706cf7e..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-#ifndef _SYS__POSIX_H_\r
-#define _SYS__POSIX_H_\r
-\r
-/*-\r
- * Copyright (c) 1998 HD Associates, Inc.\r
- * All rights reserved.\r
- * contact: dufault@hda.com\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
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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
- *     $Id: _posix.h,v 1.1.1.1 2006/05/30 06:13:04 hhzhou Exp $\r
- */\r
-\r
-/*\r
- * This is a stand alone header file to set up for feature specification\r
- * defined to take place before the inclusion of any standard header.\r
- * It should only handle pre-processor defines.\r
- *\r
- * See section B.2.7 of 1003.1b-1993 \r
- *\r
- */\r
-\r
-#ifdef KERNEL\r
-\r
-#if !defined(ACTUALLY_LKM_NOT_KERNEL) && !defined(KLD_MODULE)\r
-#include "opt_posix.h"\r
-#endif\r
-\r
-/* Only kern_mib.c uses _POSIX_VERSION.  Introduce a kernel\r
- * one to avoid other pieces of the kernel getting dependant\r
- * on that.\r
- * XXX Complain if you think this dumb.\r
- */\r
-\r
-/* Make P1003 structures visible for the kernel if\r
- * the P1003_1B option is in effect.\r
- */\r
-#ifdef P1003_1B\r
-#define _P1003_1B_VISIBLE\r
-#ifndef _KPOSIX_VERSION\r
-#define        _KPOSIX_VERSION         199309L\r
-#endif\r
-#endif\r
-\r
-#ifndef _KPOSIX_VERSION\r
-#define        _KPOSIX_VERSION         199009L\r
-#endif\r
-\r
-#define _P1003_1B_VISIBLE_HISTORICALLY\r
-\r
-#else\r
-\r
-/* Default to existing user space version.\r
- */\r
-#ifndef _POSIX_VERSION\r
-#define        _POSIX_VERSION          199009L\r
-#endif\r
-\r
-/* Test for visibility of P1003.1B features:\r
- * If _POSIX_SOURCE and POSIX_C_SOURCE are completely undefined\r
- * they show up.\r
- *\r
- * If they specify a version including P1003.1B then they show up.\r
- *\r
- * (Two macros are added to permit hiding new extensions while \r
- * keeping historic BSD features - that is not done now)\r
- *\r
- */\r
-\r
-#if (!defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE)) || \\r
- (_POSIX_VERSION  >= 199309L && defined(_POSIX_C_SOURCE) && \\r
-  _POSIX_C_SOURCE >= 199309L)\r
-#define _P1003_1B_VISIBLE\r
-#define _P1003_1B_VISIBLE_HISTORICALLY\r
-#endif\r
-\r
-#endif /* not KERNEL */\r
-#endif /* _SYS__POSIX_H_ */\r