aboutsummaryrefslogtreecommitdiff
path: root/gcc/getpwd.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-06-28 06:09:57 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-06-28 06:09:57 +0000
commit6cd5dccd5ecef2d9cefce8c61c7a83fe6b1a0c76 (patch)
tree6f091a195512741bb4eb68f404e752087fb5691e /gcc/getpwd.c
parent984e3c38b51824e200729c1a8d4a87800d654fe6 (diff)
downloadgcc-6cd5dccd5ecef2d9cefce8c61c7a83fe6b1a0c76.zip
gcc-6cd5dccd5ecef2d9cefce8c61c7a83fe6b1a0c76.tar.gz
gcc-6cd5dccd5ecef2d9cefce8c61c7a83fe6b1a0c76.tar.bz2
Consolidate strerror handling, as well as getcwd/getwd.
* configure.in (GCC_NEED_DECLARATIONS): Add strerror, getcwd and getwd. * acconfig.m4: Add stubs for NEED_DECLARATION_STRERROR, NEED_DECLARATION_GETCWD and NEED_DECLARATION_GETWD. * cccp.c: Remove strerror()/sys_nerr/sys_errlist decls. (my_strerror): Add prototype and make it static. * collect2.c: Likewise. * cpplib.c: Likewise. * gcc.c: Likewise, but keep `my_strerror' extern. * protoize.c: Likewise. * pexecute.c (my_strerror): Add argument to prototype. * system.h: Add prototypes for getcwd, getwd and strerror. Add extern decls for sys_nerr and sys_errlist. Make abort decl explicitly extern. * getpwd.c: Remove decls for getwd and getcwd. From-SVN: r20779
Diffstat (limited to 'gcc/getpwd.c')
-rw-r--r--gcc/getpwd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/getpwd.c b/gcc/getpwd.c
index 6830c16..947383e 100644
--- a/gcc/getpwd.c
+++ b/gcc/getpwd.c
@@ -9,7 +9,6 @@
the few exceptions to the general rule here. */
#if !(defined (POSIX) || defined (USG) || defined (VMS)) || defined (HAVE_GETWD)
-extern char *getwd ();
#define getcwd(buf,len) getwd(buf)
#ifdef MAXPATHLEN
#define GUESSPATHLEN (MAXPATHLEN + 1)
@@ -17,7 +16,6 @@ extern char *getwd ();
#define GUESSPATHLEN 100
#endif
#else /* (defined (USG) || defined (VMS)) */
-extern char *getcwd ();
/* We actually use this as a starting point, not a limit. */
#define GUESSPATHLEN 100
#endif /* (defined (USG) || defined (VMS)) */