summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* The symbols P_* (for spawn*(), MS specific) should not have a leadingGuido van Rossum1999-02-161-5/+5
| | | | underscore after all, for consistency with the O_* symnbols.
* Fixed totally bogus conversion factors used in the Win32 version ofGuido van Rossum1999-02-161-3/+10
| | | | os.times().
* Got rid of the file-global PosixError. This was redundant since itBarry Warsaw1999-02-091-8/+4
| | | | | | was just an alias for PyExc_OSError and the way we were doing it was causing a (small) memory leak anyway. Just use PyExc_OSError everywhere.
* Portability fix for [f]statvfs() return tuple: no longer return theGuido van Rossum1999-02-031-12/+8
| | | | | | f_fsid field, since it's not a scalar on all systems supporting this call (in particular, it's a tuple of two longs on AIX). Since it's not particularly useful, just nuke it. Adapted the doc strings too.
* Added documentation to the docstrings for the W*() functions that takeFred Drake1999-02-021-6/+8
| | | | a process exit status as a parameter.
* Add _P_WAIT etc. for NT.Guido van Rossum1999-02-011-0/+12
|
* spawnv, spawnve docstrings: added mode parameter; this is required!Fred Drake1999-02-011-2/+4
|
* Oops, the patch for NeXT always replaced waitpid() with wait4() --Guido van Rossum1999-02-011-0/+4
| | | | this doesn't exist everywhere, so go back to using #ifdef NeXT.
* Patches by William Lewis for Nextstep descendants.Guido van Rossum1999-01-271-25/+94
|
* Add spawnv and spawnve functions for Win32 platforms.Guido van Rossum1999-01-251-0/+178
|
* Only do ttyname() when HAVE_TTYNAME is defined.Guido van Rossum1999-01-251-0/+18
| | | | Also define F_OK etc. when not already defined, when doing access().
* Need extern decl. for fdatasync() in case it exists but isn't declaredGuido van Rossum1999-01-081-2/+2
| | | | | anywhere (or, more likely, the declaration requires a magical combination of _POSIX defines).
* Added fsync() and fdatasync(). Patches by Scott Cotton. RequiresGuido van Rossum1999-01-081-0/+57
| | | | HAVE_* macros set by configure script.
* Change the access() code to return 1 if granted, 0 if not granted.Guido van Rossum1999-01-061-4/+11
| | | | Patch (again) by Sean Reifschneider.
* Changes for long file support by Steve Clift.Guido van Rossum1999-01-061-14/+231
| | | | Also added access() and ttyname() by Sean Reifschneider.
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-041-1/+1
| | | | on BeOS or Windows.
* Use the t# format where appropriate. Greg Stein.Guido van Rossum1998-10-081-3/+3
|
* Removed some OS/2 #defines (now in the OS/2 specific config.h).Guido van Rossum1998-09-281-15/+0
| | | | Patch by Jeff Rush.
* In Win32 version of listdir(), when FindFirstFile() returnsGuido van Rossum1998-08-061-0/+2
| | | | | ERROR_FILE_NOT_FOUND, return an empty list instead of raising an exception.
* Changes for BeOS, QNX and long long, by Chris Herborth.Guido van Rossum1998-08-041-0/+5
|
* Patch by Jody Winston (with my changes) to add some of the "waitGuido van Rossum1998-08-041-0/+151
| | | | | status inspection" macros as functions: WEXITSTATUS(), WIFEXITED(), WIFSIGNALED(), WIFSTOPPED(), WSTOPSIG(), WTERMSIG().
* Several changes to support inclusion of filename in releventBarry Warsaw1998-07-231-13/+21
| | | | | | | | | | | | | | | | | | | | | exceptions: posix_error_with_filename(): New function which calls PyErr_SetFromErrnoWithFilename() The following methods have been changed to call posix_error_with_filename(): posix_1str() posix_strint() posix_strintint() posix_do_stat() posix_mkdir() posix_utime() posix_readlink() posix_open() INITFUNC(): os.error (nee PosixError) is PyExc_OSError
* On Windows, make the pipe() call return Unix file descriptors insteadGuido van Rossum1998-06-121-2/+5
| | | | | of Windows file handles. Now it is at least compatible with itself on Unix!
* Moved some #ifdefs around that got put in the wrong place by theGuido van Rossum1997-12-291-16/+22
| | | | latest OS/2 patch set.
* Another large batch of patches from Jeff Rush for OS/2.Guido van Rossum1997-12-051-15/+243
| | | | I hope this time I've taken out all // comments and indended #ifdefs.
* Patch for QNX, by Chris Herborth. Also left-aligned preprocessorGuido van Rossum1997-12-021-58/+58
| | | | directives and changed C++ comments to C comments.
* os2 patch by Jeff RushGuido van Rossum1997-11-221-5/+252
|
* This fix (across 4 files in 3 directories) solves a subtle problem withGuido van Rossum1997-11-141-0/+1
| | | | | | | | | | | | | | | signal handlers in a fork()ed child process when Python is compiled with thread support. The bug was reported by Scott <scott@chronis.icgroup.com>. What happens is that after a fork(), the variables used by the signal module to determine whether this is the main thread or not are bogus, and it decides that no thread is the main thread, so no signals will be delivered. The solution is the addition of PyOS_AfterFork(), which fixes the signal module's variables. A dummy version of the function is present in the intrcheck.c source file which is linked when the signal module is not used.
* Apply two changes, systematically:Guido van Rossum1997-10-011-52/+16
| | | | | | | | | | | | | | | | | (1) Use PyErr_NewException("module.class", NULL, NULL) to create the exception object. (2) Remove all calls to Py_FatalError(); instead, return or ignore the errors -- the import code now checks PyErr_Occurred() after calling a module's init function, so it's no longer a fatal error for the initialization to fail. Also did some small cleanups, e.g. removed unnecessary test for "already initialized" from initfpectl(), and unified initposix()/initnt(). I haven't checked this very thoroughly, so while the changes are pretty trivial -- beware of untested code!
* Add strerror() interface.Guido van Rossum1997-09-151-2/+30
|
* Added /**/ around #end tagsGuido van Rossum1997-08-211-1/+1
|
* Added a bunch of XXX comments about things I'd like to see changed...Guido van Rossum1997-08-141-1/+8
|
* Added O_BINARY and O_TEXT (for Windows).Guido van Rossum1997-08-081-0/+6
|
* Moved the definition of posix_times__doc__ to outside of #ifdef HAVE_TIMESRoger E. Masse1997-06-051-3/+3
| | | | so that MSVC 4.2 doesn't complain under NT.
* Added doc strings (Neil Schemenauer).Guido van Rossum1997-06-021-59/+364
|
* Enable putenv and waitpid (== wait4) for NeXT.Guido van Rossum1997-05-221-0/+87
|
* Change the exception objects to have the string value "os.error"Guido van Rossum1997-04-291-2/+2
| | | | instead "posix.error" or "nt.error".
* posix_execve(): Accept any mapping protocol object for the envBarry Warsaw1997-01-291-7/+18
| | | | argument, not hardwired to a dictionary.
* 1. Export open(2) flag constants for every defined constantBarry Warsaw1996-12-191-16/+88
| | | | 2. Reworked error checking in initposix() and initnt().
* Minor formatting changes.Barry Warsaw1996-12-191-31/+33
|
* Renamed.Barry Warsaw1996-12-101-504/+503
| | | | | Note that there is no test suite for this module, and I don't plan to write one just now.
* Keep gcc -Wall happy.Guido van Rossum1996-12-051-3/+6
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* Use #ifdef MS_WIN32 instead of _MSC_VER > 850.Guido van Rossum1996-09-071-1/+1
|
* Added simple-minded (i.e. leaking :-) putenv() interface, if os has it.Guido van Rossum1996-07-231-0/+27
|
* Added plock() system call.Guido van Rossum1996-06-281-1/+25
| | | | Changed test for Windows times() emulation.
* changed windows test symbols; removed debug printf from socketsGuido van Rossum1996-06-261-16/+17
|
* Clear waitpid() status arg in case there's no process to report withGuido van Rossum1996-06-191-1/+1
| | | | WNOHANG set.
* Avoid core dump in resizestring() on read() with 0 bytes.Guido van Rossum1996-06-111-4/+5
|
* Changed NT -> MSC or WATCOMGuido van Rossum1996-05-281-1/+1
|