| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Backport r45505, r45573, r45576 | Martin v. Löwis | 2006-10-09 | 1 | -6/+7 |
| | | | | | | | | | | | | | | | | | | | - reset errno before calling confstr - use confstr() doc to simplify checks afterwards - Correct implementation and documentation of os.confstr. Add a simple test case. I've yet to figure out how to provoke a None return I can test. - Address issues brought up by MvL on python-checkins. I tested this with valgrind on amd64. The man pages I found for diff architectures are inconsistent on this. I'm not entirely sure this change is correct for all architectures either. Perhaps we should just over-allocate and not worry about it? The change to return None instead of "" in case of unconfigured values has not been backported. | ||||
| * | Port of universal binary support for Mac OSX from python 2.5. This takes away | Ronald Oussoren | 2006-10-08 | 1 | -0/+49 |
| | | | | | | | | | the need for the out-of-tree universal binary support that was used to build the 2.4.3 installer. Missing here relative to that tree are some changes to IDLE, IMHO those patches aren't appropriate for the 2.4 branch and users are better of using 2.5's IDLE. | ||||
| * | [Backport r51223 | neal.norwitz] | Andrew M. Kuchling | 2006-10-05 | 1 | -0/+2 |
| | | | | | | | | | If _stat_float_times is false, we will try to INCREF ival which could be NULL. Return early in that case. The caller checks for PyErr_Occurred so this should be ok. Klocwork #297 | ||||
| * | [Backport rev. 39135 by mwh] | Andrew M. Kuchling | 2006-09-28 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | Fix bug [ 1232517 ] OverflowError in time.utime() causes strange traceback A needed error check was missing. (Actually, this error check may only have become necessary in fairly recent Python, not sure). Backport candidate. [A few lines below the code in 2.4 touched by the patch, there's already a similar check of (intval == -1 && PyErr_Occurred()), so I think this function can already report such errors, and therefore the fix still applies. Perhaps Michael can clarify what he was referring to. --amk] | ||||
| * | [Backport of rev. 42093 by neal.norwitz] | Andrew M. Kuchling | 2006-09-27 | 1 | -0/+2 |
| | | | | | | | Check return result from Py_InitModule*(). This API can fail. Probably should be backported. | ||||
| * | Bug #1551427: fix a wrong NULL pointer check in the win32 version | Georg Brandl | 2006-09-06 | 1 | -1/+1 |
| | | | | | | of os.urandom(). (backport from rev. 51762) | ||||
| * | Bug #1524310: Properly report errors from FindNextFile in os.listdir. | Martin v. Löwis | 2006-07-24 | 1 | -0/+14 |
| | | |||||
| * | Backport of 46010 | Martin v. Löwis | 2006-05-16 | 1 | -5/+5 |
| | | | | | | - Test for sys/statvfs.h before including it, as statvfs is present on some OSX installations, but its header file is not. | ||||
| * | Backport trunk's r45715: | Thomas Wouters | 2006-04-25 | 1 | -0/+4 |
| | | | | | | | | | | | Define MAXPATHLEN to be at least PATH_MAX, if that's defined. Python uses MAXPATHLEN-sized buffers for various output-buffers (like to realpath()), and that's correct on BSD platforms, but not Linux (which uses PATH_MAX, and does not define MAXPATHLEN.) Cursory googling suggests Linux is following a newer standard than BSD, but in cases like this, who knows. Using the greater of PATH_MAX and 1024 as a fallback for MAXPATHLEN seems to be the most portable solution. | ||||
| * | Clear errno before calling opendir() and readdir(). | Georg Brandl | 2006-04-11 | 1 | -0/+1 |
| | | | | | (backport from rev. 45262) | ||||
| * | Bug #1467952: backport: make os.listdir() raise if readdir() fails | Georg Brandl | 2006-04-11 | 1 | -0/+6 |
| | | |||||
| * | Backport trunk's r43510: In the fdopen(fd, 'a') case on UNIX, don't try to | Thomas Wouters | 2006-03-31 | 1 | -1/+1 |
| | | | | | set fd's flags to -1 if fcntl() and fdopen() both fail. | ||||
| * | Add guards against fcntl() not being available on Windows. | Georg Brandl | 2006-03-31 | 1 | -0/+4 |
| | | | | | (backport from rev. 43504) | ||||
| * | bug #1461855: make os.fdopen() add the O_APPEND flag if using "a" mode. | Georg Brandl | 2006-03-31 | 1 | -2/+13 |
| | | | | | | | | glibc, for example, does this already on its own, but it seems that the solaris libc doesn't. This leads to Python code being able to over- write file contents even though having specified "a" mode. (backport from rev. 43501) | ||||
| * | Bug #869197: setgroups rejects long integer argument | Georg Brandl | 2005-11-22 | 1 | -6/+31 |
| | | |||||
| * | Commit memory leaking fix. | Georg Brandl | 2005-09-25 | 1 | -2/+6 |
| | | |||||
| * | Fix problems reported by valgrind: | Neal Norwitz | 2005-09-19 | 1 | -1/+2 |
| | | | | | | | | * Fix memory leak in posix.access() * Fix use of uninitialized value in forkpty() - from the manpage it isn't clear if there are conditions where master_fd are uninitialized, but it's safer to initialize | ||||
| * | bug [ 1007046 ] os.startfile() doesn't accept Unicode filenames | Georg Brandl | 2005-09-14 | 1 | -1/+2 |
| | | |||||
| * | Backport of change to os.access to encode Unicode file names with | Martin v. Löwis | 2005-03-13 | 1 | -1/+2 |
| | | | | | the file system encoding. | ||||
| * | fix unterminated comment | Andrew MacIntyre | 2004-12-18 | 1 | -1/+1 |
| | | |||||
| * | OS/2 specific fixes related to SF bug # 1003471. | Andrew MacIntyre | 2004-12-12 | 1 | -68/+67 |
| | | | | | | | | Also revise a related function to minimise file handle/pipe leakage and improve reliability. Backported from -HEAD. | ||||
| * | Patch 977343, Solaris likes sys/loadavg.h. Added support for sys/loadavg.h | Anthony Baxter | 2004-10-13 | 1 | -0/+4 |
| | | | | | detection to configure &c. | ||||
| * | Patch #975056 - fixes for restartable signals on *BSD. In addition, | Anthony Baxter | 2004-10-13 | 1 | -4/+4 |
| | | | | | a few remaining calls to signal() were converted to PyOS_setsig(). | ||||
| * | Patch #1009075, bug #952953: allow execve with empty 2nd argument | Armin Rigo | 2004-09-27 | 1 | -12/+0 |
| | | |||||
| * | win32_urandom(): There's no need to copy the generated byte string, so | Tim Peters | 2004-08-30 | 1 | -17/+11 |
| | | | | | don't. | ||||
| * | win32_urandom(): pass the function name to PyArg_ParseTuple, for better | Tim Peters | 2004-08-30 | 1 | -1/+1 |
| | | | | | error msgs. | ||||
| * | win32_urandom(): Raise ValueError if the argument is negative. | Tim Peters | 2004-08-30 | 1 | -0/+3 |
| | | |||||
| * | win32_urandom(): Rewrite to Python C standards (hard tabs, function name | Tim Peters | 2004-08-30 | 1 | -52/+59 |
| | | | | | in first column, no parens around return value). | ||||
| * | Patch #934711: Expose platform-specific entropy. | Martin v. Löwis | 2004-08-29 | 1 | -1/+72 |
| | | |||||
| * | Return unicode strings from _getfullpathname even on W9X. Fixes #924703 . | Martin v. Löwis | 2004-06-15 | 1 | -0/+4 |
| | | |||||
| * | Ensure path is initialized to prevent freeing random memory | Neal Norwitz | 2004-06-09 | 1 | -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 within | Neal Norwitz | 2004-06-06 | 1 | -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öwis | 2004-06-02 | 1 | -18/+94 |
| | | | | | Will backport to 2.3. | ||||
| * | Fix [ 947405 ] os.utime() raises bad exception for unicode filenames | Mark Hammond | 2004-05-04 | 1 | -1/+6 |
| | | |||||
| * | OS/2 has support for spawnvp() and spawnvpe() in the C libraries supplied | Andrew MacIntyre | 2004-04-04 | 1 | -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/fixes | Andrew MacIntyre | 2004-03-29 | 1 | -1/+1 |
| | | |||||
| * | Fix docstrings to mention the correct function | Neal Norwitz | 2004-02-16 | 1 | -2/+2 |
| | | |||||
| * | remove support for missing ANSI C header files (limits.h, stddef.h, etc). | Skip Montanaro | 2004-02-10 | 1 | -2/+0 |
| | | |||||
| * | Remove support for SunOS 4. | Skip Montanaro | 2004-01-17 | 1 | -19/+0 |
| | | | | | Remove BAD_EXEC_PROTOYPE (leftover from IRIX 4 demolition). | ||||
| * | Make parameter names in docstring more mnemonic | Andrew M. Kuchling | 2004-01-16 | 1 | -1/+1 |
| | | |||||
| * | FIx unicodefilename support of posix.uname(). This fixes test_unicode_file | Hye-Shik Chang | 2004-01-04 | 1 | -1/+2 |
| | | | | | failure on FreeBSD. | ||||
| * | Fix [ 846133 ] os.chmod/os.utime/shutil do not work with unicode filenames | Mark Hammond | 2003-12-03 | 1 | -3/+50 |
| | | |||||
| * | Patch #839038: Add getsid(2). | Martin v. Löwis | 2003-11-10 | 1 | -0/+22 |
| | | |||||
| * | Patch #788404: ignore "b" and "t" mode modifiers in posix_popen. | Martin v. Löwis | 2003-10-31 | 1 | -0/+5 |
| | | | | | Fixes #703198. Backported to 2.3. | ||||
| * | Fix a bunch of typos in documentation, docstrings and comments. | Walter Dörwald | 2003-10-20 | 1 | -1/+1 |
| | | | | | (From SF patch #810751) | ||||
| * | Simplify and speedup uses of Py_BuildValue(): | Raymond Hettinger | 2003-10-12 | 1 | -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öwis | 2003-09-20 | 1 | -0/+2 |
| | | |||||
| * | Patch #790000: Allow os.access to handle Unicode file name. | Martin v. Löwis | 2003-09-12 | 1 | -0/+16 |
| | | |||||
| * | SF patch #798534: Windows os.popen needlessly gets a reference to tuple () | Raymond Hettinger | 2003-09-01 | 1 | -3/+1 |
| | | | | | | | (Contributed by Andrew Gaul.) Fixes a minor leak. | ||||
| * | Demonstrate and fix [ 783882 ] os.lstat crashes with Unicode filename. | Mark Hammond | 2003-08-06 | 1 | -1/+1 |
| | | | | | Will also check in on the 2.3 branch. | ||||
