summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-06-17 12:35:49 (GMT)
committerGuido van Rossum <guido@python.org>1993-06-17 12:35:49 (GMT)
commit234f942aefb779efa6cfb7225e21d16a3f7e80f7 (patch)
tree9c85e1ae919ebb44c0a1ca48bdfd11d5f60c7d9c /Modules/posixmodule.c
parent6a0e2282c359801bd70742642d24f7b0b74f5b4e (diff)
downloadcpython-234f942aefb779efa6cfb7225e21d16a3f7e80f7.zip
cpython-234f942aefb779efa6cfb7225e21d16a3f7e80f7.tar.gz
cpython-234f942aefb779efa6cfb7225e21d16a3f7e80f7.tar.bz2
* 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().
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c24
1 files changed, 12 insertions, 12 deletions
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 @@ posix_2str(args, func)
{
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 @@ posix_strint(args, func)
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 @@ posix_kill(self, args)
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 @@ posix_tcsetpgrp(self, args)
/* Functions acting on file descriptors */
-object *
+static object *
posix_open(self, args)
object *self;
object *args;
@@ -913,7 +913,7 @@ posix_open(self, args)
return newintobject((long)fd);
}
-object *
+static object *
posix_close(self, args)
object *self;
object *args;
@@ -930,7 +930,7 @@ posix_close(self, args)
return None;
}
-object *
+static object *
posix_dup(self, args)
object *self;
object *args;
@@ -946,7 +946,7 @@ posix_dup(self, args)
return newintobject((long)fd);
}
-object *
+static object *
posix_dup2(self, args)
object *self;
object *args;
@@ -963,7 +963,7 @@ posix_dup2(self, args)
return None;
}
-object *
+static object *
posix_lseek(self, args)
object *self;
object *args;
@@ -988,7 +988,7 @@ posix_lseek(self, args)
return newintobject(res);
}
-object *
+static object *
posix_read(self, args)
object *self;
object *args;
@@ -1011,7 +1011,7 @@ posix_read(self, args)
return buffer;
}
-object *
+static object *
posix_write(self, args)
object *self;
object *args;
@@ -1028,7 +1028,7 @@ posix_write(self, args)
return newintobject((long)size);
}
-object *
+static object *
posix_fstat(self, args)
object *self;
object *args;
@@ -1079,7 +1079,7 @@ posix_fdopen(self, args)
}
#ifndef MSDOS
-object *
+static object *
posix_pipe(self, args)
object *self;
object *args;