summaryrefslogtreecommitdiffstats
path: root/Modules/errnomodule.c
Commit message (Collapse)AuthorAgeFilesLines
* [3.11] gh-105375: Improve errnomodule error handling (#105590) (#105595)Erlend E. Aasland2023-06-091-2/+5
| | | | | | (cherry picked from commit eede1d2f48b4fe7f7918952d9ebeb744b58668c1) Bail immediately if an exception is set, to prevent exceptions from being overwritten.
* [3.11] gh-96005: Handle WASI ENOTCAPABLE in getpath (GH-96006) (GH-96034) ↵Christian Heimes2022-09-131-0/+4
| | | | | | | | (GH-96038) - On WASI `ENOTCAPABLE` is now mapped to `PermissionError`. - The `errno` modules exposes the new error number. - `getpath.py` now ignores `PermissionError` when it cannot open landmark files `pybuilddir.txt` and `pyenv.cfg`.
* [3.11] gh-95174: Handle missing dup() and constants in WASI (GH-95229) ↵Christian Heimes2022-07-311-0/+4
| | | | | (GH-95272) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-42971: Add errno.EQFULL (macOS) (GH-24419)Ronald Oussoren2021-08-061-0/+3
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-1635741: Port errno module to multiphase initialization (GH-19923)Dong-hee Na2020-05-071-310/+335
|
* Fix #13210. Port the Windows build from VS2008 to VS2010.Brian Curtin2012-05-131-0/+27
|
* Closes Issue 11916: Add a number of MacOSX specific definitions to the errno ↵Ronald Oussoren2011-05-071-0/+55
| | | | | | module. Patch by Pierre Carrier.
* Issue 9916: Add some missing errno symbols.Barry Warsaw2010-09-221-0/+30
|
* Issue #5737: Add Solaris-specific mnemonics in the errno module. Patch byAntoine Pitrou2010-08-181-1/+22
| | | | Matthew Ahrens.
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-262/+262
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* Merged revisions 64214 via svnmerge fromAmaury Forgeot d'Arc2008-06-131-1/+1
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r64214 | amaury.forgeotdarc | 2008-06-13 02:42:22 +0200 (ven., 13 juin 2008) | 6 lines Restore support for Microsoft VC6 compiler. Some functions in the msvcrt module are skipped, and socket.ioctl is enabled only when using a more recent Platform SDK. (and yes, there are still companies that use a 10-years old compiler) ........
* Implement PEP 3121: new module initialization and finalization API.Martin v. Löwis2008-06-111-4/+17
|
* Some VS 6.0 compatibility fixes from Hirokazu Yamamoto which are also useful ↵Christian Heimes2008-01-041-0/+1
| | | | for later versions of MSVC. VS6 claims that fortran is a reserved word
* Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases ↵Christian Heimes2007-12-021-1/+1
| | | | in intobject.h
* Use unicode for the errno.errorcode namesNeal Norwitz2007-08-241-2/+2
|
* Check return result from Py_InitModule*(). This API can fail.Neal Norwitz2006-01-191-0/+2
| | | | Probably should be backported.
* Getting rid of code dependent on GUSI or the MetroWerks compiler.Jack Jansen2003-11-191-5/+0
|
* Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototypeMark Hammond2002-08-021-1/+1
| | | | | | for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches.
* Patch #568124: Add doc string macros.Martin v. Löwis2002-06-131-2/+2
|
* Removed an XXX question (the answer is "yes" <wink>).Tim Peters2002-01-261-1/+1
|
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-011-9/+0
| | | | This should match the situation in the 1.6b1 tree.
* Do the absolute minimal amount of modifications to eradicateBarry Warsaw2000-09-011-12/+9
| | | | | | | | | | | | | | | Py_FatalError() from module initialization functions. The importing mechanism already checks for PyErr_Occurred() after module importation and it Does The Right Thing. Unfortunately, the following either were not compiled or tested by the regression suite, due to issues with my development platform: almodule.c cdmodule.c mpzmodule.c puremodule.c timingmodule.c
* Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',Thomas Wouters2000-07-211-1/+1
| | | | | | | | | | | | | | | | | | and a couple of functions that were missed in the previous batches. Not terribly tested, but very carefully scrutinized, three times. All these were found by the little findkrc.py that I posted to python-dev, which means there might be more lurking. Cases such as this: long func(a, b) long a; long b; /* flagword */ { and other cases where the last ; in the argument list isn't followed by a newline and an opening curly bracket. Regexps to catch all are welcome, of course ;)
* - ANSI-ficationFredrik Lundh2000-07-091-5/+1
| | | | (patch #100784 by Peter Schneider-Kamp)
* Change copyright notice - 2nd try.Guido van Rossum2000-06-301-6/+0
|
* Change copyright notice.Guido van Rossum2000-06-301-21/+6
|
* initerrno(): Nailed a not-so-tiny memory leak. The de dictionary isBarry Warsaw1999-01-271-1/+2
| | | | | put into the module dict, but is never DECREF'd in this function, so it and all its contents leak.
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-041-1/+1
| | | | on BeOS or Windows.
* Added a module docstring (that's all this module needs).Guido van Rossum1998-08-111-1/+15
|
* Got rid of the errorstr dictionary, which is redundant now thatGuido van Rossum1997-11-041-21/+9
| | | | there's os.strerror() -- also, it would form a locale liability.
* Changes submitted by Marc-Andre Lemburg to add two tables: errorcodeGuido van Rossum1997-09-281-368/+622
| | | | | | maps errno numbers to errno names (e.g. EINTR), and errorcode maps them to message strings. (The latter is redundant because the new call posix.strerror() now does the same, but alla...)
* (Jack:) Mac only: get GUSI errno.h values too.Guido van Rossum1997-04-111-0/+5
|
* Removed a #inlclude <errno.h> since it's implied with "Python.h"Roger E. Masse1996-12-131-2/+0
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-12/+19
|
* Added Sam Rushing's errno moduleGuido van Rossum1996-07-241-0/+561