cpython/Modules
Fred Drake 699f352fb2 Trent Mick <trentm@activestate.com>:
This patch fixes the posix module for large file support mainly on
Win64, although some general cleanup is done as well.

The changes are:

- abstract stat->STAT, fstat->FSTAT, and struct stat->STRUCT_STAT
This is because stat() etc. are not the correct functions to use on
Win64 (nor maybe on other platforms?, if not then it is now trivial to
select the appropriate one). On Win64 the appropriate system functions
are _stati64(), etc.

- add _pystat_fromstructstat(), it builds the return tuple for the
fstat system call. This functionality was being duplicated. As well
the construction of the tuple was modified to ensure no overflow of
the time_t elements (sizeof(time_t) > sizeof(long) on Win64).

- add overflow protection for the return values of posix_spawnv and
posix_spawnve

- use the proper 64-bit capable lseek() on Win64

- use intptr_t instead of long where appropriate from Win32/64 blocks
(sizeof(void*) > sizeof(long) on Win64)

This closes SourceForge patch #100513.
2000-06-29 21:12:41 +00:00
..
.cvsignore Ignore a bunch of generated files. 2000-05-02 18:34:30 +00:00
Makefile.pre.in Marc-Andre Lemburg <mal@lemburg.com>: 2000-06-28 16:42:14 +00:00
Setup.in pyexpat notes: add the name of the archive to the ar command 2000-06-29 14:40:45 +00:00
Setup.thread.in Updated the comment in this file to reflect the new defaults. Threads 2000-06-29 16:08:28 +00:00
_codecsmodule.c Marc-Andre Lemburg: 2000-03-28 20:29:59 +00:00
_cursesmodule.c Fixes for compiling on Tru64. 2000-06-27 21:49:47 +00:00
_localemodule.c Trent Mick: use size_t instead of int where appropriate (in strxfrm(), 2000-06-28 21:23:33 +00:00
_sre.c - fixed another split problem 2000-06-29 18:03:25 +00:00
_tkinter.c Patch from Michael Hudson to fix flatten recursive data structures: 2000-06-19 00:55:09 +00:00
almodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
arraymodule.c Trent Mick: use size_t instead of int where appropriate (in 2000-06-28 21:27:21 +00:00
audioop.c Disable the ZEROTRAP code -- this turns a 0 byte into a 2 byte and I 2000-05-02 21:18:13 +00:00
binascii.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
bsddbmodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
cPickle.c Trent Mick: 2000-06-28 22:23:56 +00:00
cStringIO.c Fixed docstring typo, reported by Skip Montanaro <skip@mojam.com>. 2000-06-19 13:17:41 +00:00
ccpython.cc Patch and new file by Geoff Furnish for C++ compilation. 1999-12-16 17:52:08 +00:00
cdmodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
cgen.py Keep gcc -Wall happy. 1997-04-29 21:34:16 +00:00
cgensupport.c Moved here from ../Python and quickly renamed. 1997-04-29 15:43:55 +00:00
cgensupport.h Moved rename2's macros relevant to this module here and added comment 1997-04-29 15:35:28 +00:00
clmodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
cmathmodule.c Docstring fix: acosh() returns the hyperbolic arccosine, not the 1999-03-16 14:17:48 +00:00
config.c.in Renamed inittab. 1997-04-29 20:31:59 +00:00
cryptmodule.c Added docstring to crypt.crypt() based on the documentation. 2000-02-01 20:12:39 +00:00
cstubs Generate the clear() method manually (calling __GLclear(), another 1998-04-28 16:09:16 +00:00
dbmmodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
dlmodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
errnomodule.c initerrno(): Nailed a not-so-tiny memory leak. The de dictionary is 1999-01-27 18:04:05 +00:00
fcntlmodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
flmodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
fmmodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
fpectlmodule.c Avoid triggering Alpha OSF/1 specific code on Alpha NT or Linux. 1999-04-19 16:50:26 +00:00
fpetestmodule.c Needed to add DL_EXPORT to (redundant?) extern decl of module init function. 1998-12-10 16:49:28 +00:00
gdbmmodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
getbuildinfo.c Patch by Mark Hammond to avoid certain header files on Windows/CE. 1999-08-27 20:39:37 +00:00
getpath.c Trent Mick: use size_t instead of int where appropriate (various spots). 2000-06-28 21:29:03 +00:00
glmodule.c Check in the changed version after running the stubber again -- this 1998-10-21 16:10:40 +00:00
grpmodule.c Add DL_EXPORT() to all modules that could possibly be used 1998-12-04 18:50:17 +00:00
imageop.c Add DL_EXPORT() to all modules that could possibly be used 1998-12-04 18:50:17 +00:00
imgfile.c Apply two changes, systematically: 1997-10-01 04:29:29 +00:00
ld_so_aix Mod suggested by Donn Cave -- invoke makexp_aix relative to $0 1997-09-03 00:45:30 +00:00
license.terms Add an optional hack for threads in Tkinter. 1997-09-28 05:52:41 +00:00
linuxaudiodev.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
main.c usage_mid: Remove the description of the -X flag; it's gone now. 2000-05-02 19:20:26 +00:00
makesetup On HP-UX, -rpath is another option taking an argument that needs to go 1999-05-21 19:18:49 +00:00
makexp_aix remove C++ entries of the form Class::method 1998-04-09 21:46:02 +00:00
mathmodule.c The addition of rint() (by Peter Schneider-Kamp; I forgot to mention 2000-05-11 18:42:27 +00:00
md5.h Use INT_MAX/LONG_MAX instead of non-ANSI LONG_BIT 1996-07-21 02:34:55 +00:00
md5c.c Always include config.h 1996-08-19 22:12:39 +00:00
md5module.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
mmapmodule.c Patch from Lorenzo M. Catucci: 2000-06-18 19:06:49 +00:00
mpzmodule.c Trent Mick: use size_t instead of int where appropriate (mpz_format()). 2000-06-28 21:29:47 +00:00
newmodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
nismodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
operator.c Add DL_EXPORT() to all modules that could possibly be used 1998-12-04 18:50:17 +00:00
parsermodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
pcre-int.h AMK's revised version of the previous patch. 1998-05-07 15:32:44 +00:00
pcre.h Jack Jansen: Mac Carbon: don't include sys/types if we don't have it 2000-06-28 20:56:30 +00:00
pcremodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
posixmodule.c Trent Mick <trentm@activestate.com>: 2000-06-29 21:12:41 +00:00
puremodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
pwdmodule.c Add DL_EXPORT() to all modules that could possibly be used 1998-12-04 18:50:17 +00:00
pyexpat.c Added support for passing Unicode strings to Expat handlers by default. 2000-06-27 00:33:30 +00:00
pypcre.c Fix bug reported by atkins@gweep.net; re.compile(r"[\100-\410]") 2000-06-01 03:02:48 +00:00
python.c Py_Main() must be DL_EXPORT too. 1998-12-07 14:28:47 +00:00
readline.c Trent Mick: use size_t instead of int where appropriate (call_readline()). 2000-06-28 21:30:31 +00:00
regexmodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
regexpr.c casts for picky compilers. 1999-04-10 15:48:23 +00:00
regexpr.h Change [_Py_]re_compile_pattern() to return a char*. 1997-09-03 00:47:36 +00:00
resource.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
rgbimgmodule.c Add DL_EXPORT() to all modules that could possibly be used 1998-12-04 18:50:17 +00:00
rotormodule.c Trent Mick: use size_t instead of int where appropriate (set_key()). 2000-06-28 21:31:10 +00:00
selectmodule.c Trent Mick: 2000-06-28 21:18:13 +00:00
sgimodule.c Great renaming. 1996-12-10 00:32:31 +00:00
shamodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
signalmodule.c Trent Mick: 2000-06-28 22:26:21 +00:00
socketmodule.c Donn Cave <donn@oz.net>: 2000-05-16 13:30:12 +00:00
soundex.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
sre.h - fixed another split problem 2000-06-29 18:03:25 +00:00
sre_constants.h towards 1.6b1 2000-06-29 08:55:54 +00:00
stropmodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
structmodule.c Michael Hudson <mwh21@cam.ac.uk>: 2000-06-01 02:02:46 +00:00
sunaudiodev.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
svmodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
syslogmodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
tclNotify.c Add an optional hack for threads in Tkinter. 1997-09-28 05:52:41 +00:00
termios.c Should include "Python.h", not <Python.h> -- it's not a standard 1999-01-14 19:31:42 +00:00
threadmodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
timemodule.c Trent Mick <trentm@activestate.com>: 2000-06-29 20:56:28 +00:00
timing.h remove rcs history 1996-01-26 21:10:22 +00:00
timingmodule.c Add DL_EXPORT() to all modules that could possibly be used 1998-12-04 18:50:17 +00:00
tkappinit.c Patch by Dieter Maurer to make things work for Tcl/Tk 8.1. This 1999-11-05 18:11:23 +00:00
ucnhash.c Jack Jansen: Use include "" instead of <>; and staticforward declarations 2000-06-29 00:06:39 +00:00
unicodedata.c Marc-Andre Lemburg: The large unicode database table is broken in 2000-03-31 17:26:12 +00:00
unicodedatabase.c Marc-Andre Lemburg: The large unicode database table is broken in 2000-03-31 17:26:12 +00:00
unicodedatabase.h Marc-Andre Lemburg: The large unicode database table is broken in 2000-03-31 17:26:12 +00:00
xxmodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
yuv.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
yuvconvert.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
zlibmodule.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00