static PyObject *ResourceError;
static PyObject *
-resource_getrusage(self, args)
- PyObject *self;
- PyObject *args;
+resource_getrusage(PyObject *self, PyObject *args)
{
int who;
struct rusage ru;
static PyObject *
-resource_getrlimit(self, args)
- PyObject *self;
- PyObject *args;
+resource_getrlimit(PyObject *self, PyObject *args)
{
struct rlimit rl;
int resource;
}
static PyObject *
-resource_setrlimit(self, args)
- PyObject *self;
- PyObject *args;
+resource_setrlimit(PyObject *self, PyObject *args)
{
struct rlimit rl;
int resource;
}
static PyObject *
-resource_getpagesize(self, args)
- PyObject *self;
- PyObject *args;
+resource_getpagesize(PyObject *self, PyObject *args)
{
if (!PyArg_ParseTuple(args, ":getpagesize"))
return NULL;
in the TERMIOS module.";
static PyObject *
-termios_tcgetattr(self, args)
- PyObject *self;
- PyObject *args;
+termios_tcgetattr(PyObject *self, PyObject *args)
{
int fd;
struct termios mode;
queued output and discarding all queued input. ";
static PyObject *
-termios_tcsetattr(self, args)
- PyObject *self;
- PyObject *args;
+termios_tcsetattr(PyObject *self, PyObject *args)
{
int fd, when;
struct termios mode;
has a system dependent meaning. ";
static PyObject *
-termios_tcsendbreak(self, args)
- PyObject *self;
- PyObject *args;
+termios_tcsendbreak(PyObject *self, PyObject *args)
{
int fd, duration;
Wait until all output written to file descriptor fd has been transmitted. ";
static PyObject *
-termios_tcdrain(self, args)
- PyObject *self;
- PyObject *args;
+termios_tcdrain(PyObject *self, PyObject *args)
{
int fd;
both queues. ";
static PyObject *
-termios_tcflush(self, args)
- PyObject *self;
- PyObject *args;
+termios_tcflush(PyObject *self, PyObject *args)
{
int fd, queue;
or TERMIOS.TCION to restart input. ";
static PyObject *
-termios_tcflow(self, args)
- PyObject *self;
- PyObject *args;
+termios_tcflow(PyObject *self, PyObject *args)
{
int fd, action;
static PyObject *
-time_time(self, args)
- PyObject *self;
- PyObject *args;
+time_time(PyObject *self, PyObject *args)
{
double secs;
if (!PyArg_NoArgs(args))
#endif
static PyObject *
-time_clock(self, args)
- PyObject *self;
- PyObject *args;
+time_clock(PyObject *self, PyObject *args)
{
if (!PyArg_NoArgs(args))
return NULL;
#if defined(MS_WIN32) && !defined(MS_WIN64)
/* Due to Mark Hammond */
static PyObject *
-time_clock(self, args)
- PyObject *self;
- PyObject *args;
+time_clock(PyObject *self, PyObject *args)
{
static LARGE_INTEGER ctrStart;
static LARGE_INTEGER divisor = {0,0};
#endif
static PyObject *
-time_sleep(self, args)
- PyObject *self;
- PyObject *args;
+time_sleep(PyObject *self, PyObject *args)
{
double secs;
if (!PyArg_Parse(args, "d", &secs))
a floating point number for subsecond precision.";
static PyObject *
-tmtotuple(p)
- struct tm *p;
+tmtotuple(struct tm *p)
{
return Py_BuildValue("(iiiiiiiii)",
p->tm_year + 1900,
}
static PyObject *
-time_convert(when, function)
- time_t when;
- struct tm * (*function)(const time_t *);
+time_convert(time_t when, struct tm * (*function)(const time_t *))
{
struct tm *p;
errno = 0;
}
static PyObject *
-time_gmtime(self, args)
- PyObject *self;
- PyObject *args;
+time_gmtime(PyObject *self, PyObject *args)
{
double when;
if (!PyArg_Parse(args, "d", &when))
Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a. GMT).";
static PyObject *
-time_localtime(self, args)
- PyObject *self;
- PyObject *args;
+time_localtime(PyObject *self, PyObject *args)
{
double when;
if (!PyArg_Parse(args, "d", &when))
Convert seconds since the Epoch to a time tuple expressing local time.";
static int
-gettmarg(args, p)
- PyObject *args;
- struct tm *p;
+gettmarg(PyObject *args, struct tm *p)
{
int y;
memset((ANY *) p, '\0', sizeof(struct tm));
#ifdef HAVE_STRFTIME
static PyObject *
-time_strftime(self, args)
- PyObject *self;
- PyObject *args;
+time_strftime(PyObject *self, PyObject *args)
{
PyObject *tup;
struct tm buf;
#endif
static PyObject *
-time_strptime(self, args)
- PyObject *self;
- PyObject *args;
+time_strptime(PyObject *self, PyObject *args)
{
struct tm tm;
char *fmt = "%a %b %d %H:%M:%S %Y";
#endif /* HAVE_STRPTIME */
static PyObject *
-time_asctime(self, args)
- PyObject *self;
- PyObject *args;
+time_asctime(PyObject *self, PyObject *args)
{
PyObject *tup;
struct tm buf;
Convert a time tuple to a string, e.g. 'Sat Jun 06 16:26:11 1998'.";
static PyObject *
-time_ctime(self, args)
- PyObject *self;
- PyObject *args;
+time_ctime(PyObject *self, PyObject *args)
{
double dt;
time_t tt;
#ifdef HAVE_MKTIME
static PyObject *
-time_mktime(self, args)
- PyObject *self;
- PyObject *args;
+time_mktime(PyObject *self, PyObject *args)
{
PyObject *tup;
struct tm buf;
};
static void
-ins(d, name, v)
- PyObject *d;
- char *name;
- PyObject *v;
+ins(PyObject *d, char *name, PyObject *v)
{
if (v == NULL)
Py_FatalError("Can't initialize time module -- NULL value");