]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Moved getcwd() hack to its own file.
authorGuido van Rossum <guido@python.org>
Mon, 21 Jan 1991 14:28:19 +0000 (14:28 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 21 Jan 1991 14:28:19 +0000 (14:28 +0000)
Modules/posixmodule.c

index ea0ac6c577e35f7ff7c290d99e87d098b6ab5147..c4f77c8a71fc3d74dd7b8f1e473a96a9bfca714d 100644 (file)
@@ -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