summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-01-21 14:28:19 (GMT)
committerGuido van Rossum <guido@python.org>1991-01-21 14:28:19 (GMT)
commitc83fd373412e6c0f73c839a882e6a40c93e963f4 (patch)
treeb6e08180ed2ec100685ab9cddd31a6657ea41797 /Modules/posixmodule.c
parentde9775af8fc6f2e976f3815f00a5f389c777a91f (diff)
downloadcpython-c83fd373412e6c0f73c839a882e6a40c93e963f4.zip
cpython-c83fd373412e6c0f73c839a882e6a40c93e963f4.tar.gz
cpython-c83fd373412e6c0f73c839a882e6a40c93e963f4.tar.bz2
Moved getcwd() hack to its own file.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index ea0ac6c..c4f77c8 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