summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Clarify docstring for symlink.Brett Cannon2003-06-111-1/+1
|
* Patch #708495: Port more stuff to OpenVMS.Martin v. Löwis2003-05-031-82/+2
|
* Enable os.fsync() for Windows, mapping it to MS's _commit() there. TheTim Peters2003-04-231-16/+18
| | | | | | docs here are best-guess: the MS docs I could find weren't clear, and some even claimed _commit() has no effect on Win32 systems (which is easily shown to be false just by trying it).
* apply Mark Hammond's PEP 311 changes to the EMX ripoff of the WindowsAndrew MacIntyre2003-04-211-51/+6
| | | | popen[234]() code
* - DosSetExtLIBPATH objects to a NULL pointer, but a pointer to a NULLAndrew MacIntyre2003-04-211-7/+1
| | | | | | | string does what is expected (ie unset [BEGIN|END]LIBPATH) - set the size of the DosQuerySysInfo buffer correctly; it was safe, but incorrect (allowing a 1 element overrun)
* New PyGILState_ API - implements pep 311, from patch 684256.Mark Hammond2003-04-191-50/+6
|
* Rename LONG_LONG to PY_LONG_LONG. Fixes #710285.Martin v. Löwis2003-03-291-13/+13
|
* Get rid of warning on IRIXNeal Norwitz2003-03-211-1/+2
|
* Add support for os.openpty() on AIX which uses /dev/ptc instead of /dev/ptmx.Neal Norwitz2003-03-211-3/+11
|
* Patch #696645: Remove VMS code with uncertain authorship.Martin v. Löwis2003-03-051-209/+52
|
* os.listdir(): Fall back to the original byte string if conversion to unicodeJust van Rossum2003-03-041-6/+8
| | | | fails, as discussed in patch #683592.
* plugged leak noted by nnorwitz: the 'et' format returns allocated memoryJust van Rossum2003-03-031-2/+4
|
* Patch #683592 revisited, after discussions with MvL:Just van Rossum2003-03-031-10/+8
| | | | | | | | | | | | | | | | | | - Implement the behavior as specified in PEP 277, meaning os.listdir() will only return unicode strings if it is _called_ with a unicode argument. - And then return only unicode, don't attempt to convert to ASCII. - Don't switch on Py_FileSystemDefaultEncoding, but simply use the default encoding if Py_FileSystemDefaultEncoding is NULL. This means os.listdir() can now raise UnicodeDecodeError if the default encoding can't represent the directory entry. (This seems better than silcencing the error and fall back to a byte string.) - Attempted to decribe the above in Doc/lib/libos.tex. - Reworded the Misc/NEWS items to reflect the current situation. This checkin also fixes bug #696261, which was due to os.listdir() not using Py_FileSystemDefaultEncoding, like all file system calls are supposed to.
* Patch #683592: unicode support for os.listdir()Just van Rossum2003-02-251-0/+24
| | | | | os.listdir() may now return unicode strings on platforms that set Py_FileSystemDefaultEncoding.
* os.mkdir() would crash with a Unicode filename and mode param.Mark Hammond2003-02-191-1/+1
|
* Added test_posix (hopefully it works on Windows).Neal Norwitz2003-02-171-130/+64
| | | | | Remove PyArg_ParseTuple() for methods which take no args, use METH_NOARGS instead
* Add more missing PyErr_NoMemory() after failled memory allocsNeal Norwitz2003-02-111-2/+2
|
* Fix memory leak of newstr when putenv() failsNeal Norwitz2003-02-101-0/+1
|
* Get rid of compiler warningsNeal Norwitz2003-01-101-17/+17
|
* all_ins(): EX_OK and friends, constants from sysexits.hBarry Warsaw2003-01-071-0/+57
|
* Expose I_ constants. Auto-detect stropts.h. Properly configure the slave ↵Martin v. Löwis2003-01-011-2/+2
| | | | terminal.
* Fix compilation errors on HPUX11Neal Norwitz2002-12-311-3/+3
|
* Restore signalhandler in case of error. Fix type of signal handler.Martin v. Löwis2002-12-311-3/+9
|
* Patch #656590: /dev/ptmx support for ptys.Martin v. Löwis2002-12-311-7/+39
|
* Patch #657889: Implement posix.getloadavg.Martin v. Löwis2002-12-271-0/+25
|
* execve(), spawnve(): add some extra sanity checking to env;Guido van Rossum2002-12-131-18/+50
| | | | | | | | | PyMapping_Check() doesn't guarantee that PyMapping_Size() won't raise an exception, nor that keys and values are lists. Also folded some long lines and did a little whitespace normalization. Probably a 2.2 backport candidate.
* Patch #614055: Support OpenVMS.Martin v. Löwis2002-12-061-2/+264
|
* Fix --disable-unicode compilation problems.Martin v. Löwis2002-11-211-0/+5
|
* Comment out the getcwdu implementation for --disable-unicode buildsWalter Dörwald2002-11-211-0/+4
|
* Enforce valid filemode. Fixes SF Bug #623464.Thomas Heller2002-11-071-0/+6
|
* Remove extra argument in mknod. Fixes #632628.Martin v. Löwis2002-11-021-1/+1
|
* Patch #623780: Replace obsolete struct macros.Martin v. Löwis2002-10-161-9/+9
|
* Add PyStructSequence_UnnamedField. Add stat_float_times.Martin v. Löwis2002-10-161-5/+75
| | | | Use integers in stat tuple, optionally floats in named fields.
* posix_execve(): add missing argument for "et" format in PyArg_Parse()Guido van Rossum2002-10-161-0/+1
| | | | | call. This caused mysterious crashes (hard to debug because it was happening in a child process).
* Fix a few docstrings, remove extra commasNeal Norwitz2002-10-111-3/+3
|
* Patch #569139: Implementation of major, minor and makedev.Martin v. Löwis2002-10-101-8/+59
|
* Apply file system default encoding to exec and spawn path and arguments.Martin v. Löwis2002-10-071-23/+68
|
* s/_alloca/alloca/g; Windows doesn't need the former, at least not unlessTim Peters2002-10-051-3/+3
| | | | __STDC__ is defined (or something like that ...).
* Trivial fix to the pep277 checkin: ensure that exceptions always have a ↵Mark Hammond2002-10-031-1/+1
| | | | filename attribute (previously did only when string filenames were passed, but not when unicode)
* Patch 594001: PEP 277 - Unicode file name support for Windows NT.Mark Hammond2002-10-031-19/+372
|
* Patch #608999: Fix portability problems with MIPSPro 7.xMartin v. Löwis2002-09-191-0/+6
|
* I think it makes more sense that the pseudo filename used by fdopen()Guido van Rossum2002-09-151-1/+1
| | | | be "<fdopen>" rather than "(fdopen)".
* extract_time(): Squash compiler warning about possibly information-Tim Peters2002-09-101-1/+1
| | | | losing implicit double->long cast.
* Add missing return statement.Martin v. Löwis2002-09-101-0/+1
|
* Use utimes(2) where available to support microsecond timestamps.Martin v. Löwis2002-09-101-5/+48
|
* Always generate floats for stat_result; fix configure test.Martin v. Löwis2002-09-091-9/+1
|
* Patch #606592: Subsecond timestamps in stat_result.Martin v. Löwis2002-09-091-10/+26
|
* SF bug 601775 - some int results that should be bool.Guido van Rossum2002-09-011-1/+1
|
* SF bug 595919: popenN return only text mode pipesTim Peters2002-08-191-2/+2
| | | | | popen2() and popen3() created text-mode pipes even when binary mode was asked for. This was specific to Windows.
* Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototypeMark Hammond2002-08-021-2/+13
| | | | | | for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches.