* Makefile: use cp -r to install the library
* ceval.c: use #ifdef COMPAT_HACKS instead of #if 0
* Makefile: fix to make clmodule.c compile;
make config.o dependent on libpython.a (so date is always correct)
* timemodule.c: now sleep() also takes a float argument.
* posixmodule.c: added nice().
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index e861d08..bab0c59 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -1,6 +1,6 @@
/***********************************************************
-Copyright 1991, 1992 by Stichting Mathematisch Centrum, Amsterdam, The
-Netherlands.
+Copyright 1991, 1992, 1993 by Stichting Mathematisch Centrum,
+Amsterdam, The Netherlands.
All Rights Reserved
@@ -358,6 +358,23 @@
return posix_strint(args, mkdir);
}
+#ifndef MSDOS
+static object *
+posix_nice(self, args)
+ object *self;
+ object *args;
+{
+ int increment, value;
+
+ if (!getargs(args, "i", &increment))
+ return NULL;
+ value = nice(increment);
+ if (value == -1)
+ return posix_error();
+ return newintobject((long) value);
+}
+#endif
+
#ifdef i386
int
rename(from, to)
@@ -919,6 +936,9 @@
{"listdir", posix_listdir},
{"lstat", posix_lstat},
{"mkdir", posix_mkdir},
+#ifndef MSDOS
+ {"nice", posix_nice},
+#endif
{"readlink", posix_readlink},
{"rename", posix_rename},
{"rmdir", posix_rmdir},