Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | This reverts r63675 based on the discussion in this thread: | Gregory P. Smith | 2008-06-09 | 1 | -34/+34 |
| | | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread. | ||||
* | Renamed PyString to PyBytes | Christian Heimes | 2008-05-26 | 1 | -34/+34 |
| | |||||
* | #2890: support os.O_ASYNC and fcntl.FASYNC. | Georg Brandl | 2008-05-16 | 1 | -0/+5 |
| | |||||
* | Fix chown on 64-bit linux. It needed to take a long (64-bit on 64bit linux) as | Gregory P. Smith | 2008-03-18 | 1 | -2/+2 |
| | | | | | | | | | uid and gid input to accept values >=2**31 as valid while still accepting negative numbers to pass -1 to chown for "no change". Fixes issue1747858. This should be backported to release25-maint. | ||||
* | Remove all traces of HAVE_STRERROR. | Brett Cannon | 2008-03-18 | 1 | -4/+0 |
| | | | | | The removal of strerror.c led to the function check being removed from configure.in. | ||||
* | #2063: correct order of utime and stime in os.times() | Georg Brandl | 2008-02-13 | 1 | -2/+2 |
| | | | | result on Windows. | ||||
* | Another int -> pid_t case | Christian Heimes | 2008-02-03 | 1 | -1/+2 |
| | |||||
* | The wrapper function is supposed to be for spawnvpe() so that's | Andrew MacIntyre | 2008-02-03 | 1 | -2/+2 |
| | | | | | | what we should call [this wrapper only available on OS/2]. Backport candidate to 2.5. | ||||
* | More int -> pid_t. | Christian Heimes | 2008-02-01 | 1 | -11/+18 |
| | |||||
* | Fixed bug #1983: Return from fork() is pid_t, not int | Christian Heimes | 2008-01-31 | 1 | -6/+7 |
| | |||||
* | #1663329: add os.closerange() to close a range of fds, | Georg Brandl | 2008-01-19 | 1 | -0/+19 |
| | | | | | ignoring errors, and use this in subprocess to speed up subprocess creation in close_fds mode. Patch by Mike Klaas. | ||||
* | Modified PyImport_Import and PyImport_ImportModule to always use absolute ↵ | Christian Heimes | 2008-01-03 | 1 | -1/+1 |
| | | | | | | imports by calling __import__ with an explicit level of 0 Added a new API function PyImport_ImportModuleNoBlock. It solves the problem with dead locks when mixing threads and imports | ||||
* | #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵ | Christian Heimes | 2007-12-19 | 1 | -1/+1 |
| | | | | Py_REFCNT. Macros for b/w compatibility are available. | ||||
* | Forward-port r59310: | Martin v. Löwis | 2007-12-03 | 1 | -2/+5 |
| | | | | os.access now returns True on Windows for any existing directory. | ||||
* | Fix for feature request #1528 Add os.fchmod | Christian Heimes | 2007-11-30 | 1 | -0/+83 |
| | | | | | Georg Brandl has added fchmod() and fchown(). I've contributed lchown but I'm not able to test it on Linux. However it should be available on Mac and some other flavors of Unix. I've made a quick test of fchmod() and fchown() on my system. They are working as expected. | ||||
* | #1735632: add O_NOATIME constant to os module. | Georg Brandl | 2007-11-24 | 1 | -0/+4 |
| | | | | Also document a few other O_ constants that were missing from documentation. | ||||
* | Document that we rely on the OS to release the crypto | Martin v. Löwis | 2007-09-04 | 1 | -0/+2 |
| | | | | context. Fixes #1626801. | ||||
* | Fix memory leak in os.readlink | Neal Norwitz | 2007-08-12 | 1 | -2/+6 |
| | |||||
* | PEP 3123: Provide forward compatibility with Python 3.0, while keeping | Martin v. Löwis | 2007-07-21 | 1 | -1/+1 |
| | | | | | backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT. | ||||
* | Fix problems in x64 build that were discovered by the testsuite: | Kristján Valur Jónsson | 2007-05-03 | 1 | -1/+0 |
| | | | | | | | | | | | | - Reenable modules on x64 that had been disabled aeons ago for Itanium. - Cleared up confusion about compilers for 64 bit windows. There is only Itanium and x64. Added macros MS_WINI64 and MS_WINX64 for those rare cases where it matters, such as the disabling of modules above. - Set target platform (_WIN32_WINNT and WINVER) to 0x0501 (XP) for x64, and 0x0400 (NT 4.0) otherwise, which are the targeted minimum platforms. - Fixed thread_nt.h. The emulated InterlockedCompareExchange function didn´t work on x64, probaby due to the lack of a "volatile" specifier. Anyway, win95 is no longer a target platform. - Itertools module used wrong constant to check for overflow in count() - PyInt_AsSsize_t couldn't deal with attribute error when accessing the __long__ member. - PyLong_FromSsize_t() incorrectly specified that the operand were unsigned. With these changes, the x64 passes the testsuite, for those modules present. | ||||
* | Stop using PyMem_FREE while the GIL is not held. For details see: | Neal Norwitz | 2007-05-02 | 1 | -1/+1 |
| | | | | http://mail.python.org/pipermail/python-dev/2007-May/072896.html | ||||
* | Export function sanitize_the_mode from fileobject.c as ↵ | Kristján Valur Jónsson | 2007-04-26 | 1 | -6/+14 |
| | | | | _PyFile_SanitizeMode(). Use this function in posixmodule.c when implementing fdopen(). This fixes test_subprocess.py for a VisualStudio 2005 compile. | ||||
* | Merge change 54909 from release25-maint: Fix several minor issues ↵ | Kristján Valur Jónsson | 2007-04-25 | 1 | -3/+4 |
| | | | | discovered using code analysis in VisualStudio 2005 Team Edition | ||||
* | Bug #1686475: Support stat'ing open files on Windows again. | Martin v. Löwis | 2007-04-04 | 1 | -34/+66 |
| | | | | Will backport to 2.5. | ||||
* | Patch #1490190: posixmodule now includes os.chflags() and os.lchflags() | Martin v. Löwis | 2007-02-19 | 1 | -0/+57 |
| | | | | functions on platforms where the underlying system calls are available. | ||||
* | Bug #1645944: os.access now returns bool but docstring is not updated | Georg Brandl | 2007-01-27 | 1 | -1/+1 |
| | |||||
* | Patch #1580674: with this patch os.readlink uses the filesystem encoding to | Ronald Oussoren | 2006-10-22 | 1 | -2/+38 |
| | | | | decode unicode objects and returns an unicode object when the argument is one. | ||||
* | Bug #1567666: Emulate GetFileAttributesExA for Win95. | Martin v. Löwis | 2006-10-15 | 1 | -2/+102 |
| | | | | Will backport to 2.5. | ||||
* | Patch #1576166: Support os.utime for directories on Windows NT+. | Martin v. Löwis | 2006-10-15 | 1 | -2/+5 |
| | |||||
* | Bug #1565150: Fix subsecond processing for os.utime on Windows. | Martin v. Löwis | 2006-10-09 | 1 | -3/+3 |
| | |||||
* | Bug #1551427: fix a wrong NULL pointer check in the win32 version | Georg Brandl | 2006-09-06 | 1 | -1/+1 |
| | | | | of os.urandom(). | ||||
* | If _stat_float_times is false, we will try to INCREF ival which could be NULL. | Neal Norwitz | 2006-08-12 | 1 | -0/+2 |
| | | | | | | | Return early in that case. The caller checks for PyErr_Occurred so this should be ok. Klocwork #297 | ||||
* | Bug #1524310: Properly report errors from FindNextFile in os.listdir. | Martin v. Löwis | 2006-07-24 | 1 | -0/+17 |
| | | | | Will backport to 2.4. | ||||
* | Patch #1516912: improve Modules support for OpenVMS. | Neal Norwitz | 2006-07-10 | 1 | -0/+39 |
| | |||||
* | Correct arithmetic in access on Win32. Fixes #1513646. | Martin v. Löwis | 2006-07-02 | 1 | -1/+1 |
| | |||||
* | Patch #1495999: Part two of Windows CE changes. | Martin v. Löwis | 2006-06-10 | 1 | -0/+13 |
| | | | | | | - update header checks, using autoconf - provide dummies for getenv, environ, and GetVersion - adjust MSC_VER check in socketmodule.c | ||||
* | Turn off warning about deprecated CRT functions on for VisualStudio .NET 2005. | Kristján Valur Jónsson | 2006-06-09 | 1 | -0/+2 |
| | | | | Make the definition #ARRAYSIZE conditional. VisualStudio .NET 2005 already has it defined using a better gimmick. | ||||
* | Make use of METH_O and METH_NOARGS where possible. | Georg Brandl | 2006-05-29 | 1 | -5/+2 |
| | | | | Use Py_UnpackTuple instead of PyArg_ParseTuple where possible. | ||||
* | Patch #1492356: Port to Windows CE (patch set 1). | Martin v. Löwis | 2006-05-22 | 1 | -10/+10 |
| | |||||
* | Fix typo in os.utime docstring (patch #1490189) | Georg Brandl | 2006-05-17 | 1 | -1/+1 |
| | |||||
* | - Test for sys/statvfs.h before including it, as statvfs is present | Martin v. Löwis | 2006-05-16 | 1 | -5/+5 |
| | | | | | on some OSX installation, but its header file is not. Will backport to 2.4 | ||||
* | Fix memory leak. | Martin v. Löwis | 2006-05-15 | 1 | -0/+1 |
| | |||||
* | Fix alignment error on Itanium. | Martin v. Löwis | 2006-05-12 | 1 | -3/+6 |
| | |||||
* | Dynamically allocate path name buffer for Unicode | Martin v. Löwis | 2006-05-12 | 1 | -17/+28 |
| | | | | | | path name in listdir. Fixes #1431582. Stop overallocating MAX_PATH characters for ANSI path names. Stop assigning to errno. | ||||
* | Add missing PyMem_Free. | Martin v. Löwis | 2006-05-08 | 1 | -0/+1 |
| | |||||
* | Port access, chmod, parts of getcwdu, mkdir, and utime to direct Win32 API. | Martin v. Löwis | 2006-05-06 | 1 | -52/+193 |
| | |||||
* | Drop now-unnecessary arguments to posix_2str. | Martin v. Löwis | 2006-05-04 | 1 | -3/+3 |
| | |||||
* | Implement os.{chdir,rename,rmdir,remove} using Win32 directly. | Martin v. Löwis | 2006-05-04 | 1 | -93/+156 |
| | |||||
* | Define MAXPATHLEN to be at least PATH_MAX, if that's defined. Python uses | Thomas Wouters | 2006-04-25 | 1 | -0/+4 |
| | | | | | | | | | 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. | ||||
* | Patch 1471925 - Weak linking support for OSX | Ronald Oussoren | 2006-04-23 | 1 | -0/+51 |
| | | | | | | This patch causes several symbols in the socket and posix module to be weakly linked on OSX and disables usage of ftime on OSX. These changes make it possible to use a binary build on OSX 10.4 on a 10.3 system. |