History log of /openbsd/lib/libc/gen/getcwd.c (Results 1 – 22 of 22)
Revision Date Author Comments
# 170ca6cd 18-May-2023 guenther <guenther@openbsd.org>

Add PROTO_NORMAL() declarations for the remaining syscalls, to avoid
future, inadvertant PLT entries. Move the __getcwd and __realpath
declarations to hidden/{stdlib,unistd}.h to consolidate and rem

Add PROTO_NORMAL() declarations for the remaining syscalls, to avoid
future, inadvertant PLT entries. Move the __getcwd and __realpath
declarations to hidden/{stdlib,unistd}.h to consolidate and remove
duplication.

ok tb@ otto@ deraadt@

show more ...


# 519e0252 07-May-2016 guenther <guenther@openbsd.org>

Avoid a transient PLT entry for the internal __getcwd syscall stub for
slightly better code on some archs


# fe38b55c 07-May-2016 guenther <guenther@openbsd.org>

Use a Thread Information Block in both single and multi-threaded programs.
This stores errno, the cancelation flags, and related bits for each thread
and is allocated by ld.so or libc.a. This is an

Use a Thread Information Block in both single and multi-threaded programs.
This stores errno, the cancelation flags, and related bits for each thread
and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable!

Make libpthread dlopen'able by moving the cancelation wrappers into libc
and doing locking and fork/errno handling via callbacks that libpthread
registers when it first initializes. 'errno' *must* be declared via
<errno.h> now!

Clean up libpthread's symbol exports like libc.

On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec.

Testing by various, particularly sthen@ and patrick@
ok kettenis@

show more ...


# 69245ebd 30-Sep-2013 millert <millert@openbsd.org>

Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,
MAXNAMLEN or MAXLOGNAME where possible. OK deraadt@


# 928cef96 17-Apr-2013 tedu <tedu@openbsd.org>

add some prototypes, casts, includes, parenthesis, and whatnot to
silence some warnings.


# 844c1643 27-May-2006 pedro <pedro@openbsd.org>

System calls return -1 upon failure, so check for -1
Pointed out by deraadt@


# 34b2b92d 27-May-2006 pedro <pedro@openbsd.org>

Don't leak memory if getcwd() was passed NULL and __getcwd() fails
Okay miod@ sturm@ deraadt@


# 1cbee487 27-May-2006 pedro <pedro@openbsd.org>

Make libc's getcwd() use the new __getcwd() system call
Hacked by marius@ at c2k5, okay miod@ krw@ deraadt@


# c2c925de 08-Aug-2005 espie <espie@openbsd.org>

zap remaining rcsid.

Kill old files that are no longer compiled.

okay theo


# 2c0c6326 01-Jun-2005 millert <millert@openbsd.org>

Save errno from clobbering by clsoedir() in the err case.
From Andrey Matveev; OK deraadt@


# 80647cb2 25-Mar-2005 otto <otto@openbsd.org>

deregister (and deauto!). ok millert@ marco@


# 10e9f07b 06-Jan-2005 millert <millert@openbsd.org>

Replace bcopy() with memcpy() and memmove() so it is obvious what
is a move and what is a copy. Also remove an unneeded variable.
No functional change.


# c1303ccb 05-Jan-2005 otto <otto@openbsd.org>

Fix handling of memory allocation. Both the initial value of eup
and the new value of bup after realloc() were bogus. This bug has
been here since the net.2 days. Additionally, make the initial
siz

Fix handling of memory allocation. Both the initial value of eup
and the new value of bup after realloc() were bogus. This bug has
been here since the net.2 days. Additionally, make the initial
size of the malloc'ed pieces of mem more sane and kill a redundant
test before free(). getcwd(3) is now able to return really long
paths. Problem spotted by Peter Philipp <philipp at scan-plus dot de>

ok millert@ deraadt@

show more ...


# f723aa39 11-Jun-2003 deraadt <deraadt@openbsd.org>

ansification; checked by pval


# 6580fee3 02-Jun-2003 millert <millert@openbsd.org>

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# d6d30c9f 24-Nov-2002 cloder <cloder@openbsd.org>

Fix comment: s/trailing NULL/trailing NUL/, no code changes.


# 6570f9a2 19-Jul-2000 deraadt <deraadt@openbsd.org>

off-by-one calculation error; getcwd() would return NULL if the buffer was
the needed length + terminating byte + 1; that 1 is not needed; assar


# e512315e 14-Aug-1998 deraadt <deraadt@openbsd.org>

realloc repair


# b0f29dd7 09-Jul-1997 millert <millert@openbsd.org>

Clean up some -Wall complaints.


# f6aa411e 27-Nov-1996 millert <millert@openbsd.org>

Fix file descriptor leak on error. Noticed by bitblt.


# e9b2b68c 19-Aug-1996 tholo <tholo@openbsd.org>

Fix RCS ids
Make sure everything uses {SYS,}LIBC_SCCS properly


# df930be7 18-Oct-1995 deraadt <deraadt@openbsd.org>

initial import of NetBSD tree