summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* fix unterminated commentAndrew MacIntyre2004-12-181-1/+1
|
* OS/2 specific fixes related to SF bug # 1003471.Andrew MacIntyre2004-12-121-68/+67
| | | | | Also revise a related function to minimise file handle/pipe leakage and improve reliability.
* Patch 977343, Solaris likes sys/loadavg.h. Added support for sys/loadavg.hAnthony Baxter2004-10-131-0/+4
| | | | detection to configure &c.
* Patch #975056 - fixes for restartable signals on *BSD. In addition,Anthony Baxter2004-10-131-4/+4
| | | | a few remaining calls to signal() were converted to PyOS_setsig().
* Patch #1009075, bug #952953: allow execve with empty 2nd argumentArmin Rigo2004-09-271-12/+0
|
* win32_urandom(): There's no need to copy the generated byte string, soTim Peters2004-08-301-17/+11
| | | | don't.
* win32_urandom(): pass the function name to PyArg_ParseTuple, for betterTim Peters2004-08-301-1/+1
| | | | error msgs.
* win32_urandom(): Raise ValueError if the argument is negative.Tim Peters2004-08-301-0/+3
|
* win32_urandom(): Rewrite to Python C standards (hard tabs, function nameTim Peters2004-08-301-52/+59
| | | | in first column, no parens around return value).
* Patch #934711: Expose platform-specific entropy.Martin v. Löwis2004-08-291-1/+72
|
* Return unicode strings from _getfullpathname even on W9X. Fixes #924703 .Martin v. Löwis2004-06-151-0/+4
|
* Ensure path is initialized to prevent freeing random memoryNeal Norwitz2004-06-091-4/+2
| | | | | (reported by Thomas Heller). If have_unicode_filename is set, path looks like it will not be used, so there's no need to free it.
* Plug a few memory leaks in utime(). path is allocated from withinNeal Norwitz2004-06-061-4/+12
| | | | | | | PyArg_ParseTuple() since the format is "et" This change should be reviewed carefully. Bugfix candidate.
* Patch #954115: Fix os.stat handling of UNC roots.Martin v. Löwis2004-06-021-18/+94
| | | | Will backport to 2.3.
* Fix [ 947405 ] os.utime() raises bad exception for unicode filenamesMark Hammond2004-05-041-1/+6
|
* OS/2 has support for spawnvp() and spawnvpe() in the C libraries suppliedAndrew MacIntyre2004-04-041-0/+229
| | | | | | | with major C compilers (VACPP, EMX+gcc and [Open]Watcom). Also tidy up the export of spawn*() symbols in the os module to match what is found/implemented.
* OS/2 VACPP build updates/fixesAndrew MacIntyre2004-03-291-1/+1
|
* Fix docstrings to mention the correct functionNeal Norwitz2004-02-161-2/+2
|
* remove support for missing ANSI C header files (limits.h, stddef.h, etc).Skip Montanaro2004-02-101-2/+0
|
* Remove support for SunOS 4.Skip Montanaro2004-01-171-19/+0
| | | | Remove BAD_EXEC_PROTOYPE (leftover from IRIX 4 demolition).
* Make parameter names in docstring more mnemonicAndrew M. Kuchling2004-01-161-1/+1
|
* FIx unicodefilename support of posix.uname(). This fixes test_unicode_fileHye-Shik Chang2004-01-041-1/+2
| | | | failure on FreeBSD.
* Fix [ 846133 ] os.chmod/os.utime/shutil do not work with unicode filenamesMark Hammond2003-12-031-3/+50
|
* Patch #839038: Add getsid(2).Martin v. Löwis2003-11-101-0/+22
|
* Patch #788404: ignore "b" and "t" mode modifiers in posix_popen.Martin v. Löwis2003-10-311-0/+5
| | | | Fixes #703198. Backported to 2.3.
* Fix a bunch of typos in documentation, docstrings and comments.Walter Dörwald2003-10-201-1/+1
| | | | (From SF patch #810751)
* Simplify and speedup uses of Py_BuildValue():Raymond Hettinger2003-10-121-4/+4
| | | | | | * Py_BuildValue("(OOO)",a,b,c) --> PyTuple_Pack(3,a,b,c) * Py_BuildValue("()",a) --> PyTuple_New(0) * Py_BuildValue("O", a) --> Py_INCREF(a)
* Patch #730597: Disable POPEN for RTEMS.Martin v. Löwis2003-09-201-0/+2
|
* Patch #790000: Allow os.access to handle Unicode file name.Martin v. Löwis2003-09-121-0/+16
|
* SF patch #798534: Windows os.popen needlessly gets a reference to tuple ()Raymond Hettinger2003-09-011-3/+1
| | | | | | (Contributed by Andrew Gaul.) Fixes a minor leak.
* Demonstrate and fix [ 783882 ] os.lstat crashes with Unicode filename.Mark Hammond2003-08-061-1/+1
| | | | Will also check in on the 2.3 branch.
* 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
|