about summary refs log tree commit diff
path: root/sysdeps/posix/getcwd.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-09-28 09:00:19 +0000
committerRoland McGrath <roland@gnu.org>1995-09-28 09:00:19 +0000
commit3ec41e0302fb7b3910edecfd30c97edba3a6e282 (patch)
tree64126b756c37dfcbca2564779896601d4fbed800 /sysdeps/posix/getcwd.c
parentf94f8067b18803b47153fa0f8f67fe5763a1cd3b (diff)
downloadglibc-3ec41e0302fb7b3910edecfd30c97edba3a6e282.tar.gz
glibc-3ec41e0302fb7b3910edecfd30c97edba3a6e282.tar.xz
glibc-3ec41e0302fb7b3910edecfd30c97edba3a6e282.zip
* sysdeps/mach/hurd/getcwd.c (__getcwd): Renamed from getcwd.
	(getcwd): Define as weak alias.
	* sysdeps/posix/getcwd.c: Likewise.
	* sysdeps/stub/getcwd.c: Likewise.
	* posix/unistd.h: Declare __getcwd.

	* string/string.h: Declare __strcasecmp.
	* sysdeps/generic/strcasecmp.c (__strcasecmp): Renamed from
	strcasecmp.
	(strcasecmp): Define as weak alias.

	* string/string.h: Declare __stpcpy.
	* sysdeps/generic/stpcpy.c (__stpcpy): Renamed from stpcpy.
	(stpcpy): Define as weak alias.
Diffstat (limited to 'sysdeps/posix/getcwd.c')
-rw-r--r--sysdeps/posix/getcwd.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/sysdeps/posix/getcwd.c b/sysdeps/posix/getcwd.c
index 7b992a9f43..11577ebdbf 100644
--- a/sysdeps/posix/getcwd.c
+++ b/sysdeps/posix/getcwd.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -180,6 +180,10 @@ extern char *alloca ();
 #define	__lstat	stat
 #endif
 
+#ifndef _LIBC
+#define __getcwd getcwd
+#endif
+
 /* Get the pathname of the current working directory, and put it in SIZE
    bytes of BUF.  Returns NULL if the directory couldn't be determined or
    SIZE was too small.  If successful, returns BUF.  In GNU, if BUF is
@@ -187,7 +191,7 @@ extern char *alloca ();
    unless SIZE <= 0, in which case it is as big as necessary.  */
 
 char *
-getcwd (buf, size)
+__getcwd (buf, size)
      char *buf;
      size_t size;
 {
@@ -364,3 +368,7 @@ getcwd (buf, size)
     free ((__ptr_t) dotlist);
   return NULL;
 }
+
+#ifdef _LIBC
+weak_alias (__getcwd, getcwd)
+#endif