diff options
author | dg <dg@FreeBSD.org> | 1995-02-07 05:52:57 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-02-07 05:52:57 +0000 |
commit | 82caf4596d03519c53248b01d882eaa44de79bd6 (patch) | |
tree | 4099d1743acfddb21dba3abbda0aa41c9035f388 /lib/libc/gen/getcwd.3 | |
parent | 0a7e37f6d4abef64b4fec18a33135850df4a37cf (diff) | |
download | FreeBSD-src-82caf4596d03519c53248b01d882eaa44de79bd6.zip FreeBSD-src-82caf4596d03519c53248b01d882eaa44de79bd6.tar.gz |
Backed out Keith Bostic's getcwd/$PWD hack. It is causing things to break
all over the place.
Diffstat (limited to 'lib/libc/gen/getcwd.3')
-rw-r--r-- | lib/libc/gen/getcwd.3 | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/libc/gen/getcwd.3 b/lib/libc/gen/getcwd.3 index 10ae3cd..b66aa1c 100644 --- a/lib/libc/gen/getcwd.3 +++ b/lib/libc/gen/getcwd.3 @@ -46,7 +46,7 @@ .Sh DESCRIPTION The .Fn getcwd -function copies an absolute pathname of the current working directory +function copies the absolute pathname of the current working directory into the memory referenced by .Fa buf and returns a pointer to @@ -89,12 +89,6 @@ open the current directory and use the .Xr fchdir 2 function to return. -.Pp -These routines examine the the environment variable PWD, -if it is an absolute path for the current directory, -that path will be returned. -Consequently, if the ``canonical'' name of the current directory is -needed, unset the PWD environment variable before calling these routines. .Sh RETURN VALUES Upon successful completion, a pointer to the pathname is returned. Otherwise a |