summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* The helper is only necessary for wait3/4.Neal Norwitz2006-03-201-0/+2
|
* Try to cleanup a lot of boilerplate #ifdef wrt wait types and make the codeNeal Norwitz2006-03-201-143/+47
| | | | more consistent (and smaller by 85 lines or so).
* Patch #1309579: wait3 and wait4 were added to the posix module by Chad J. ↵Neal Norwitz2006-03-201-0/+128
| | | | | | | | Schroeder. This was a fair amount of rework of the patch. Refactored test_fork1 so it could be reused by the new tests for wait3/4. Also made them into new style unittests (derive from unittest.TestCase).
* SF #1445431, fix some leaks in error conditions.Neal Norwitz2006-03-201-4/+5
|
* Reformulate 42903 using an if statement.Martin v. Löwis2006-03-071-35/+31
|
* Fix bug introduced in rev. 42884.Georg Brandl2006-03-071-3/+5
|
* Bug #1432525: os.listdir now releases the GIL while callingGeorg Brandl2006-03-071-3/+15
| | | | readdir().
* Change int to Py_ssize_t in several places.Martin v. Löwis2006-03-071-4/+4
| | | | | Add (int) casts to silence compiler warnings. Raise Python exceptions for overflows.
* Repair mangled code in the Windows flavor ofTim Peters2006-03-011-2/+1
| | | | | | | | | | | posix__getfullpathname(). In partial answer to the now-deleted XXX comment: /* XXX(twouters) Why use 'et#' here at all? insize isn't used */ `insize` is an input parameter too, and it was left uninitialized, leading to seemingly random failures.
* Py_ssize_t-ify.Thomas Wouters2006-03-011-5/+10
|
* Fix a build problem introduced by r42230.Hye-Shik Chang2006-02-191-1/+1
|
* Patch #1393157: os.startfile() now has an optional argument to specifyGeorg Brandl2006-02-181-7/+14
| | | | a "command verb" to invoke on the file.
* Merge ssize_t branch.Martin v. Löwis2006-02-151-20/+21
|
* Drop C library for stat/fstat on Windows.Martin v. Löwis2006-02-031-117/+246
|
* Check return result from Py_InitModule*(). This API can fail.Neal Norwitz2006-01-191-0/+2
| | | | Probably should be backported.
* Fix SF bug #1072182, problems with signed characters.Neal Norwitz2005-12-191-1/+1
| | | | Most of these can be backported.
* Bug #869197: setgroups rejects long integer argumentGeorg Brandl2005-11-221-6/+31
|