diff options
author | Guido van Rossum <guido@python.org> | 1991-01-21 14:28:19 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-01-21 14:28:19 (GMT) |
commit | c83fd373412e6c0f73c839a882e6a40c93e963f4 (patch) | |
tree | b6e08180ed2ec100685ab9cddd31a6657ea41797 /Modules/posixmodule.c | |
parent | de9775af8fc6f2e976f3815f00a5f389c777a91f (diff) | |
download | cpython-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.c | 21 |
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 |