summaryrefslogtreecommitdiff
path: root/lib/libc/gen/getcwd.c
AgeCommit message (Expand)Author
2013-09-30Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,Todd C. Miller
2013-04-17add some prototypes, casts, includes, parenthesis, and whatnot toTed Unangst
2006-05-27System calls return -1 upon failure, so check for -1Pedro Martelletto
2006-05-27Don't leak memory if getcwd() was passed NULL and __getcwd() failsPedro Martelletto
2006-05-27Make libc's getcwd() use the new __getcwd() system callPedro Martelletto
2005-08-08zap remaining rcsid.Marc Espie
2005-06-01Save errno from clobbering by clsoedir() in the err case.Todd C. Miller
2005-03-25deregister (and deauto!). ok millert@ marco@Otto Moerbeek
2005-01-06Replace bcopy() with memcpy() and memmove() so it is obvious whatTodd C. Miller
2005-01-05Fix handling of memory allocation. Both the initial value of eupOtto Moerbeek
2003-06-11ansification; checked by pvalTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
2002-11-24Fix comment: s/trailing NULL/trailing NUL/, no code changes.Chad Loder
2000-07-19off-by-one calculation error; getcwd() would return NULL if the buffer wasTheo de Raadt
1998-08-14realloc repairTheo de Raadt
1997-07-09Clean up some -Wall complaints.Todd C. Miller
1996-11-27Fix file descriptor leak on error. Noticed by bitblt.Todd C. Miller
1996-08-19Fix RCS idsThorsten Lockert
1995-10-18initial import of NetBSD treeTheo de Raadt