mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
* 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().
This commit is contained in:
parent
d513f0bcb6
commit
775f4dacbc
3 changed files with 45 additions and 33 deletions
|
|
@ -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 @@ posix_mkdir(self, args)
|
|||
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 @@ static struct methodlist posix_methods[] = {
|
|||
{"listdir", posix_listdir},
|
||||
{"lstat", posix_lstat},
|
||||
{"mkdir", posix_mkdir},
|
||||
#ifndef MSDOS
|
||||
{"nice", posix_nice},
|
||||
#endif
|
||||
{"readlink", posix_readlink},
|
||||
{"rename", posix_rename},
|
||||
{"rmdir", posix_rmdir},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue