summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #1040026: Fix os.times result on systems where HZ is incorrect.Martin v. Löwis2008-12-131-9/+16
|
* Backport r65745: Issue #2222: Fixed reference leak when occuredHirokazu Yamamoto2008-08-171-28/+26
| | | | os.rename() fails unicode conversion on 2nd parameter. (windows only)
* Backport r61450 from trunk:Gregory P. Smith2008-03-181-2/+2
| | | | | | | | Fix chown on 64-bit linux. It needed to take a long (64-bit on 64bit linux) as 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.
* Backport 60542:Andrew MacIntyre2008-02-031-2/+2
| | | | | The wrapper function is supposed to be for spawnvpe() so that's what we should call [this wrapper only available on OS/2].
* os.access now returns True on Windows for any existing directory.Martin v. Löwis2007-12-031-2/+5
|
* Backport r55070: Stop using PyMem_FREE while the GIL is not held.Neal Norwitz2007-05-091-1/+1
|
* Merge change 54982 from the trunk. This fixes the test_subprocess test in ↵Kristján Valur Jónsson2007-05-071-6/+14
| | | | the testsuite for VisualStudio2005 builds, by "sanitizing" the "mode" that is used in the posixmodule's fdopen(). In particular the non-standard "U" mode character is removed.
* Fix various minor issues discovered with static analysis using Visual Studio ↵Kristján Valur Jónsson2007-04-211-3/+4
| | | | | | 2005 Team System. Removed obsolete comment, since .dll modules are no longer supported on windows, only .pyd.
* Bug #1686475: Support stat'ing open files on Windows again.Martin v. Löwis2007-04-041-34/+66
|
* Bug #1645944: os.access now returns bool but docstring is not updatedGeorg Brandl2007-01-271-1/+1
| | | | (backport from rev. 53579)
* Bug #1567666: Emulate GetFileAttributesExA for Win95.Martin v. Löwis2006-10-151-2/+103
|
* Bug #1565150: Fix subsecond processing for os.utime on Windows.Martin v. Löwis2006-10-091-3/+3
|
* Bug #1551427: fix a wrong NULL pointer check in the win32 versionGeorg Brandl2006-09-061-1/+1
| | | | | of os.urandom(). (backport from rev. 51762)
* If _stat_float_times is false, we will try to INCREF ival which could be NULL.Neal Norwitz2006-08-121-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öwis2006-07-241-0/+17
| | | | Will backport to 2.4.
* Patch #1516912: improve Modules support for OpenVMS.Neal Norwitz2006-07-101-0/+39
|
* Correct arithmetic in access on Win32. Fixes #1513646.Martin v. Löwis2006-07-021-1/+1
|
* Patch #1495999: Part two of Windows CE changes.Martin v. Löwis2006-06-101-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ónsson2006-06-091-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 Brandl2006-05-291-5/+2
| | | | Use Py_UnpackTuple instead of PyArg_ParseTuple where possible.
* Patch #1492356: Port to Windows CE (patch set 1).Martin v. Löwis2006-05-221-10/+10
|
* Fix typo in os.utime docstring (patch #1490189)Georg Brandl2006-05-171-1/+1
|
* - Test for sys/statvfs.h before including it, as statvfs is presentMartin v. Löwis2006-05-161-5/+5
| | | | | on some OSX installation, but its header file is not. Will backport to 2.4
* Fix memory leak.Martin v. Löwis2006-05-151-0/+1
|
* Fix alignment error on Itanium.Martin v. Löwis2006-05-121-3/+6
|
* Dynamically allocate path name buffer for UnicodeMartin v. Löwis2006-05-121-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öwis2006-05-081-0/+1
|
* Port access, chmod, parts of getcwdu, mkdir, and utime to direct Win32 API.Martin v. Löwis2006-05-061-52/+193
|
* Drop now-unnecessary arguments to posix_2str.Martin v. Löwis2006-05-041-3/+3
|
* Implement os.{chdir,rename,rmdir,remove} using Win32 directly.Martin v. Löwis2006-05-041-93/+156
|
* Define MAXPATHLEN to be at least PATH_MAX, if that's defined. Python usesThomas Wouters2006-04-251-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 OSXRonald Oussoren2006-04-231-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.
* Fix more ssize_t problems.Martin v. Löwis2006-04-221-5/+7
|
* Address issues brought up by MvL on python-checkins.Neal Norwitz2006-04-201-4/+4
| | | | | | | | | 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?
* Whitespace, fix indentationNeal Norwitz2006-04-201-2/+1
|
* Correct implementation and documentation of os.confstr. Add a simple testSkip Montanaro2006-04-201-6/+9
| | | | case. I've yet to figure out how to provoke a None return I can test.
* reset errno before calling confstr - use confstr() doc to simplify checks ↵Skip Montanaro2006-04-181-7/+9
| | | | afterwards
* Initialize structseq types only once.Martin v. Löwis2006-04-161-10/+14
|
* spread the extern "C" { } magic pixie dust around. Python itself builds nowAnthony Baxter2006-04-131-0/+9
| | | | | using a C++ compiler. Still lots and lots of errors in the modules built by setup.py, and a bunch of warnings from g++ in the core.
* Some more changes to make code compile under a C++ compiler.Anthony Baxter2006-04-111-4/+4
|
* Clear errno before calling opendir() and readdir().Georg Brandl2006-04-111-0/+1
|
* Bug #1467952: os.listdir() now correctly raises an error if readdir()Georg Brandl2006-04-111-0/+6
| | | | fails with an error condition.
* Fix warning about ptsname not being a prototype on Solaris. Is this ↵Neal Norwitz2006-04-101-1/+1
| | | | prototype even necessary anymore?
* Properly support empty woperation in win32_startfile;Martin v. Löwis2006-04-031-9/+12
| | | | correct arguments to ShellExecuteW.
* Bug #1451503: allow unicode filenames in os.startfile().Georg Brandl2006-04-031-0/+35
|
* In the fdopen(fd, 'a') case on UNIX, don't try to set fd's flags to -1 ifThomas Wouters2006-03-311-1/+1
| | | | fcntl() and fdopen() both fail. Will backport.
* Add guards against fcntl() not being available on Windows.Georg Brandl2006-03-311-0/+4
|
* bug #1461855: make os.fdopen() add the O_APPEND flag if using "a" mode.Georg Brandl2006-03-311-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.
* Try to fix broken compile on openbsd.Neal Norwitz2006-03-261-4/+4
|
* Damn Coverity. I can't even sneak in a leak any more. :-)Neal Norwitz2006-03-201-1/+1
|