summaryrefslogtreecommitdiffstats
path: root/Modules/resource.c
Commit message (Collapse)AuthorAgeFilesLines
* Patch #1005568: Use _SC_PAGESIZE on Irix.Martin v. Löwis2004-08-121-0/+5
| | | | Backported to 2.3.
* Get build working with pre-C99 compilersNeal Norwitz2003-03-301-1/+1
|
* Patch #650412: Check whether the address of flock and getpagesizeMartin v. Löwis2003-03-301-1/+13
| | | | can be taken, and use _SC_PAGE_SIZE if getpagesize is not available.
* Rename LONG_LONG to PY_LONG_LONG. Fixes #710285.Martin v. Löwis2003-03-291-3/+3
|
* Fix SF #632624, test_resource failure on alpha/64bitNeal Norwitz2002-11-021-1/+1
| | | | | Return PyLongs instead ot PyInts. On alphas, 9223372036854775807 became -1.
* Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototypeMark Hammond2002-08-021-1/+1
| | | | | | for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches.
* Patch #568124: Add doc string macros.Martin v. Löwis2002-06-131-6/+6
|
* Check for overflow errors in setrlimit(),Jeremy Hylton2002-04-231-1/+10
| | | | and reflow a long line.
* Patch #512005: getrusage() returns struct-like object.Martin v. Löwis2002-04-081-23/+70
|
* Expose RLIM_INFINITY constant. Closes SF patch 489066.Neil Schemenauer2002-03-241-1/+13
|
* Use PyModule_AddIntConstant() instead of creating a private helper function.Fred Drake2002-02-141-30/+22
| | | | This also avoids directly accessing the module'd __dict__.
* Patch #477750: Use METH_ constants in Modules.Martin v. Löwis2002-01-171-4/+4
|
* Include <unistd.h> in Python.h. Fixes #500924.Martin v. Löwis2002-01-121-1/+0
|
* [Patch #462255, from Jason Tishler] Re-enables building the resouceAndrew M. Kuchling2001-09-171-1/+2
| | | | module on the Cygwin platform.
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-011-9/+0
| | | | This should match the situation in the 1.6b1 tree.
* merge Include/my*.h into Include/pyport.hPeter Schneider-Kamp2000-07-311-1/+0
| | | | marked my*.h as obsolete
* Create a new section of pyport.h to hold all external function declarationsThomas Wouters2000-07-241-4/+0
| | | | | | | | | | | | | | for systems that are missing those declarations from system include files. Start by moving a pointy-haired ones from their previous locations to the new section. (The gethostname() one, for instance, breaks on several systems, because some define it as (char *, size_t) and some as (char *, int).) I purposely decided not to include the summary of used #defines like Tim did in the first section of pyport.h. In my opinion, the number of #defines likedly to be used by this section would make such an overview unwieldy. I would suggest documenting the non-obvious ones, though.
* Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',Thomas Wouters2000-07-211-1/+1
| | | | | | | | | | | | | | | | | | and a couple of functions that were missed in the previous batches. Not terribly tested, but very carefully scrutinized, three times. All these were found by the little findkrc.py that I posted to python-dev, which means there might be more lurking. Cases such as this: long func(a, b) long a; long b; /* flagword */ { and other cases where the last ; in the argument list isn't followed by a newline and an opening curly bracket. Regexps to catch all are welcome, of course ;)
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-2/+2
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* ANSI-ficationPeter Schneider-Kamp2000-07-101-12/+4
|
* Change copyright notice - 2nd try.Guido van Rossum2000-06-301-6/+0
|
* Change copyright notice.Guido van Rossum2000-06-301-22/+7
|
* Massive patch by Skip Montanaro to add ":name" to as manyGuido van Rossum2000-02-291-4/+4
| | | | PyArg_ParseTuple() format string arguments as possible.
* Changes for long file support by Steve Clift.Guido van Rossum1999-01-061-3/+22
|
* Typo: RUSAGE_CHILDERN -> RUSAGE_CHILDREN.Guido van Rossum1997-12-091-1/+1
|
* Add #include "mytime.h", needed for SunOS 4.1 (Matthias Klose).Guido van Rossum1997-10-311-0/+1
|
* Apply two changes, systematically:Guido van Rossum1997-10-011-5/+1
| | | | | | | | | | | | | | | | | (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!
* Different strategy regarding whether to declare getrusage() andGuido van Rossum1997-08-171-11/+9
| | | | | | getpagesize() -- #ifdef doesn't work, Linux has conflicting decls in its headers. Choice: only declare the return type, not the argument prototype, and not on Linux.
* Added std copyright notice.Guido van Rossum1997-08-151-0/+31
|
* purported linux portability patch (Oliver Andrich)Guido van Rossum1997-08-051-0/+4
|
* Quieted gcc -Wall by removing unused local variables.Barry Warsaw1997-01-141-2/+0
|
* Added Jeremy's resource module.Guido van Rossum1996-12-181-0/+240