AppPkg/.../Python-2.7.10: AppPkg.dsc, pyconfig.h, PyMod-2.7.10
Apply UEFI-specific changes to files to make them equivalent to the Python 2.7.2 versions. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel <edk2-lists@mc2research.org> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com> --- AppPkg/AppPkg.dsc | 5 +- .../Python/Python-2.7.10/Ia32/pyconfig.h | 93 ++++++++---- .../Python-2.7.10/PyMod-2.7.10/Lib/ntpath.py | 30 +++- .../Python/Python-2.7.10/PyMod-2.7.10/Lib/os.py | 35 ++++- .../Python/Python-2.7.10/PyMod-2.7.10/Lib/pydoc.py | 17 +++ .../Python/Python-2.7.10/PyMod-2.7.10/Lib/site.py | 165 ++++++--------------- .../Python-2.7.10/PyMod-2.7.10/Modules/_sre.c | 150 ++++++++++--------- .../Python-2.7.10/PyMod-2.7.10/Modules/addrinfo.h | 101 +++++++------ .../PyMod-2.7.10/Modules/errnomodule.c | 57 ++++++- .../PyMod-2.7.10/Modules/expat/expat_external.h | 4 +- .../Python-2.7.10/PyMod-2.7.10/Modules/getpath.c | 143 +++++------------- .../Python-2.7.10/PyMod-2.7.10/Modules/main.c | 61 ++++---- .../PyMod-2.7.10/Modules/selectmodule.c | 43 ++++-- .../PyMod-2.7.10/Modules/zlib/gzguts.h | 10 +- .../PyMod-2.7.10/Modules/zlib/zutil.h | 11 +- .../PyMod-2.7.10/Objects/longobject.c | 14 +- .../PyMod-2.7.10/Objects/stringlib/localeutil.h | 17 ++- .../PyMod-2.7.10/Python/getcopyright.c | 24 ++- .../Python-2.7.10/PyMod-2.7.10/Python/marshal.c | 21 ++- .../Python-2.7.10/PyMod-2.7.10/Python/random.c | 32 +++- .../Python/Python-2.7.10/X64/pyconfig.h | 63 ++++++-- 21 files changed, 640 insertions(+), 456 deletions(-) git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19462 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
committed by
darylm503
parent
5285ac3eba
commit
d11973f1ca
@@ -1,5 +1,14 @@
|
||||
/* Errno module
|
||||
|
||||
/* Errno module */
|
||||
Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
*/
|
||||
|
||||
#include "Python.h"
|
||||
|
||||
@@ -783,8 +792,52 @@ initerrno(void)
|
||||
#ifdef WSAN
|
||||
inscode(d, ds, de, "WSAN", WSAN, "Error WSAN");
|
||||
#endif
|
||||
|
||||
/* These symbols are added for EDK II support. */
|
||||
#ifdef EMINERRORVAL
|
||||
inscode(d, ds, de, "EMINERRORVAL", EMINERRORVAL, "Lowest valid error value");
|
||||
#endif
|
||||
#ifdef ENOTSUP
|
||||
inscode(d, ds, de, "ENOTSUP", ENOTSUP, "Operation not supported");
|
||||
inscode(d, ds, de, "ENOTSUP", ENOTSUP, "Operation not supported");
|
||||
#endif
|
||||
#ifdef EBADRPC
|
||||
inscode(d, ds, de, "EBADRPC", EBADRPC, "RPC struct is bad");
|
||||
#endif
|
||||
#ifdef ERPCMISMATCH
|
||||
inscode(d, ds, de, "ERPCMISMATCH", ERPCMISMATCH, "RPC version wrong");
|
||||
#endif
|
||||
#ifdef EPROGUNAVAIL
|
||||
inscode(d, ds, de, "EPROGUNAVAIL", EPROGUNAVAIL, "RPC prog. not avail");
|
||||
#endif
|
||||
#ifdef EPROGMISMATCH
|
||||
inscode(d, ds, de, "EPROGMISMATCH", EPROGMISMATCH, "Program version wrong");
|
||||
#endif
|
||||
#ifdef EPROCUNAVAIL
|
||||
inscode(d, ds, de, "EPROCUNAVAIL", EPROCUNAVAIL, "Bad procedure for program");
|
||||
#endif
|
||||
#ifdef EFTYPE
|
||||
inscode(d, ds, de, "EFTYPE", EFTYPE, "Inappropriate file type or format");
|
||||
#endif
|
||||
#ifdef EAUTH
|
||||
inscode(d, ds, de, "EAUTH", EAUTH, "Authentication error");
|
||||
#endif
|
||||
#ifdef ENEEDAUTH
|
||||
inscode(d, ds, de, "ENEEDAUTH", ENEEDAUTH, "Need authenticator");
|
||||
#endif
|
||||
#ifdef ECANCELED
|
||||
inscode(d, ds, de, "ECANCELED", ECANCELED, "Operation canceled");
|
||||
#endif
|
||||
#ifdef ENOATTR
|
||||
inscode(d, ds, de, "ENOATTR", ENOATTR, "Attribute not found");
|
||||
#endif
|
||||
#ifdef EDOOFUS
|
||||
inscode(d, ds, de, "EDOOFUS", EDOOFUS, "Programming Error");
|
||||
#endif
|
||||
#ifdef EBUFSIZE
|
||||
inscode(d, ds, de, "EBUFSIZE", EBUFSIZE, "Buffer too small to hold result");
|
||||
#endif
|
||||
#ifdef EMAXERRORVAL
|
||||
inscode(d, ds, de, "EMAXERRORVAL", EMAXERRORVAL, "One more than the highest defined error value");
|
||||
#endif
|
||||
|
||||
Py_DECREF(de);
|
||||
|
Reference in New Issue
Block a user