From c83fd373412e6c0f73c839a882e6a40c93e963f4 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 21 Jan 1991 14:28:19 +0000 Subject: [PATCH] Moved getcwd() hack to its own file. --- Modules/posixmodule.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index ea0ac6c577e..c4f77c8a71f 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