History log of /netbsd-src/lib/libc/gen/getcwd.c (Results 26 – 50 of 53)
Revision Date Author Comments
# 233424cd 17-Nov-2002 itojun <itojun@NetBSD.org>

make sure to bound string operation by strlcpy
(there are bunch of "strcpy is safe" comments, i think we should change them
to strlcpy as much as possible)


# 9134efab 17-Nov-2002 itojun <itojun@NetBSD.org>

use strlcpy where it is more appropriate.


# 6875b78c 19-Oct-2002 provos <provos@NetBSD.org>

readlink(2) does not NUL-terminate, use with sizeof (buf-1).
from deraadt@openbsd.org; approved thorpej.


# 50d2b6a9 16-Apr-2002 groo <groo@NetBSD.org>

botched strncpy -> strlcpy
from xs@kittenz.org


# 60549036 22-Jan-2000 mycroft <mycroft@NetBSD.org>

Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.


# d8962612 20-Sep-1999 lukem <lukem@NetBSD.org>

back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.


# b48252f3 16-Sep-1999 lukem <lukem@NetBSD.org>

* use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attemp

* use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif

show more ...


# 0536609b 10-Aug-1999 fvdl <fvdl@NetBSD.org>

Keep track of the number of encountered symlinks and fail with ELOOP
if they exceed MAXSYMLINKS.


# 508d2d0e 11-Jul-1999 sommerfeld <sommerfeld@NetBSD.org>

Avoid infinite loop if pathname is longer than the maximum the kernel
is willing to return from getcwd().
(this can only happen in -current).


# d3afd1cc 11-Jun-1999 christos <christos@NetBSD.org>

make this compile under linux


# c52c8cc0 03-May-1999 christos <christos@NetBSD.org>

int -> size_t problems, change do { } while (0) to for (;;)


# bb8c6c86 26-Mar-1999 sommerfe <sommerfe@NetBSD.org>

move __getcwd prototypes to libc-private header file.

XXX duplicate the prototype in getcwd regression test (which needs to
call the syscall directly for reasonably complete testing).


# 27a01cc1 26-Mar-1999 sommerfe <sommerfe@NetBSD.org>

Use __getcwd() system call in getcwd() unless OLD_GETCWD is defined


# ccbb2cb9 06-Nov-1998 christos <christos@NetBSD.org>

port to svr4.


# 98b9f211 26-Aug-1998 perry <perry@NetBSD.org>

fix bcopy->memcpy with memcpy->memmove -- not strictly needed, but...


# a843f0f8 10-Aug-1998 perry <perry@NetBSD.org>

bzero->memset, bcopy->memcpy, bcmp->memcmp


# 2b0e1bd9 14-Mar-1998 lukem <lukem@NetBSD.org>

backout parts of the lite2 merge; it causes undesirable lossage:
* $PWD was used if it appeared ``correct''. this `enhancment' was
not documented in getcwd(3), and caused problems for pwd(1) (which

backout parts of the lite2 merge; it causes undesirable lossage:
* $PWD was used if it appeared ``correct''. this `enhancment' was
not documented in getcwd(3), and caused problems for pwd(1) (which
uses getcwd(3)), and in turn <bsd.obj.mk> (which uses pwd) when $PWD
is set to the logical path instead of the real path (e.g, symlink
/usr/src -> /z/NetBSD-current/src).
[$PWD is set to the logical path by tcsh(1) with set symlinks=expand]
* as getcwd() without the $PWD code is just a wrapper to getcwd_physical(),
rename the latter to the latter. hack realpath() to use the getcwd().

yet another case of `it was a good idea, but...'

show more ...


# 1ea84adf 26-Feb-1998 perry <perry@NetBSD.org>

trivial changes to reduce lint complaints


# 4146d586 03-Feb-1998 perry <perry@NetBSD.org>

remove obsolete register declarations


# 5769bb1d 02-Feb-1998 perry <perry@NetBSD.org>

add some fixes to realpath() that were in the old realpath.c


# 08b0946f 02-Feb-1998 perry <perry@NetBSD.org>

merge/update to lite-2


# 43fa6fe3 21-Jul-1997 jtc <jtc@NetBSD.org>

If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will

If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.

show more ...


# d177cac3 13-Jul-1997 christos <christos@NetBSD.org>

Fix RCSID's
Fix gcc warnings.


# 915b76dd 16-Jun-1995 jtc <jtc@NetBSD.org>

Don't cast void functions to void.


# b585e843 27-Feb-1995 cgd <cgd@NetBSD.org>

update from Lite, with local changes. fix Ids, etc.


123