From: Guido van Rossum Date: Mon, 21 Jan 1991 14:28:19 +0000 (+0000) Subject: Moved getcwd() hack to its own file. X-Git-Tag: v0.9.8~1066 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c83fd373412e6c0f73c839a882e6a40c93e963f4;p=thirdparty%2FPython%2Fcpython.git Moved getcwd() hack to its own file. --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index ea0ac6c577e3..c4f77c8a71fc 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -319,27 +319,6 @@ posix_utimes(self, args) return None; } -#ifdef NO_GETCWD - -#include "errno.h" - -/* Quick hack to get posix.getcwd() working for pure BSD 4.3 */ -/* XXX This assumes MAXPATHLEN = 1024 !!! */ - -static char * -getcwd(buf, size) - char *buf; - int size; -{ - extern char *getwd PROTO((char *)); - register char *ret = getwd(buf); - if (ret == NULL) - errno = EACCES; /* Most likely error */ - return ret; -} - -#endif /* NO_GETCWD */ - #ifndef NO_LSTAT