From 3ec41e0302fb7b3910edecfd30c97edba3a6e282 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 28 Sep 1995 09:00:19 +0000 Subject: * 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. --- sysdeps/posix/getcwd.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'sysdeps/posix') 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 -- cgit v1.2.3