Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
4dfeccf9
Commit
4dfeccf9
authored
Aug 31, 1999
by
Richard Henderson
Committed by
Richard Henderson
Aug 31, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* getpwd.c: Check HAVE_GETCWD before defining it away.
From-SVN: r29013
parent
8fd8d061
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
libiberty/ChangeLog
+4
-0
libiberty/getpwd.c
+3
-5
No files found.
libiberty/ChangeLog
View file @
4dfeccf9
1999-08-31 Richard Henderson <rth@cygnus.com>
* getpwd.c: Check HAVE_GETCWD before defining it away.
1999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (CFILES): Add calloc.c and getpwd.c.
* Makefile.in (CFILES): Add calloc.c and getpwd.c.
...
...
libiberty/getpwd.c
View file @
4dfeccf9
...
@@ -34,17 +34,15 @@ extern char *getwd ();
...
@@ -34,17 +34,15 @@ extern char *getwd ();
BSD systems) now provides getcwd as called for by POSIX. Allow for
BSD systems) now provides getcwd as called for by POSIX. Allow for
the few exceptions to the general rule here. */
the few exceptions to the general rule here. */
#if !
(defined (POSIX) || defined (USG) || defined (VMS)) || defined
(HAVE_GETWD)
#if !
defined(HAVE_GETCWD) && defined
(HAVE_GETWD)
#define getcwd(buf,len) getwd(buf)
#define getcwd(buf,len) getwd(buf)
#endif
#ifdef MAXPATHLEN
#ifdef MAXPATHLEN
#define GUESSPATHLEN (MAXPATHLEN + 1)
#define GUESSPATHLEN (MAXPATHLEN + 1)
#else
#else
#define GUESSPATHLEN 100
#define GUESSPATHLEN 100
#endif
#endif
#else
/* (defined (USG) || defined (VMS)) */
/* We actually use this as a starting point, not a limit. */
#define GUESSPATHLEN 100
#endif
/* (defined (USG) || defined (VMS)) */
#if !(defined (VMS) || (defined(_WIN32) && !defined(__CYGWIN__)))
#if !(defined (VMS) || (defined(_WIN32) && !defined(__CYGWIN__)))
...
...
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