Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c83fd373
Commit
c83fd373
authored
Jan 21, 1991
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved getcwd() hack to its own file.
parent
de9775af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
21 deletions
+0
-21
Modules/posixmodule.c
Modules/posixmodule.c
+0
-21
No files found.
Modules/posixmodule.c
View file @
c83fd373
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment