* Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.
Added $(SYSDEF) to its build rule in Makefile.
* cgensupport.[ch], modsupport.[ch]: removed some old stuff. Also
changed files that still used it... And made several things static
that weren't but should have been... And other minor cleanups...
* listobject.[ch]: add external interfaces {set,get}listslice
* socketmodule.c: fix bugs in new send() argument parsing.
* sunaudiodevmodule.c: added flush() and close().
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 2e800de..88861c6 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -166,7 +166,7 @@
{
char *path1, *path2;
int res;
- if (!getstrstrarg(args, &path1, &path2))
+ if (!getargs(args, "(ss)", &path1, &path2))
return NULL;
BGN_SAVE
res = (*func)(path1, path2);
@@ -185,7 +185,7 @@
char *path;
int i;
int res;
- if (!getstrintarg(args, &path, &i))
+ if (!getargs(args, "(si)", &path, &i))
return NULL;
BGN_SAVE
res = (*func)(path, i);
@@ -691,7 +691,7 @@
object *args;
{
int pid, sig;
- if (!getintintarg(args, &pid, &sig))
+ if (!getargs(args, "(ii)", &pid, &sig))
return NULL;
if (kill(pid, sig) == -1)
return posix_error();
@@ -891,7 +891,7 @@
/* Functions acting on file descriptors */
-object *
+static object *
posix_open(self, args)
object *self;
object *args;
@@ -913,7 +913,7 @@
return newintobject((long)fd);
}
-object *
+static object *
posix_close(self, args)
object *self;
object *args;
@@ -930,7 +930,7 @@
return None;
}
-object *
+static object *
posix_dup(self, args)
object *self;
object *args;
@@ -946,7 +946,7 @@
return newintobject((long)fd);
}
-object *
+static object *
posix_dup2(self, args)
object *self;
object *args;
@@ -963,7 +963,7 @@
return None;
}
-object *
+static object *
posix_lseek(self, args)
object *self;
object *args;
@@ -988,7 +988,7 @@
return newintobject(res);
}
-object *
+static object *
posix_read(self, args)
object *self;
object *args;
@@ -1011,7 +1011,7 @@
return buffer;
}
-object *
+static object *
posix_write(self, args)
object *self;
object *args;
@@ -1028,7 +1028,7 @@
return newintobject((long)size);
}
-object *
+static object *
posix_fstat(self, args)
object *self;
object *args;
@@ -1079,7 +1079,7 @@
}
#ifndef MSDOS
-object *
+static object *
posix_pipe(self, args)
object *self;
object *args;