This is an archive of the discontinued LLVM Phabricator instance.

getwd(3) with NULL pointer extension is supported on NetBSD
ClosedPublic

Authored by krytarowski on Dec 5 2015, 8:51 PM.

Details

Summary

The getwd() and getcwd() functions conform to IEEE Std 1003.1-1990
(POSIX.1). The IEEE Std 1003.1-2004 (POSIX.1) revision marked
getwd() as legacy and recommended the use of getcwd() instead. The IEEE
Std 1003.1-2008 (``POSIX.1'') revision removed getwd() from the
specification.

The ability to specify a NULL pointer and have getcwd() allocate memory
as necessary is an extension.

The getwd() function appeared in 4.0BSD.

Diff Detail

Repository
rL LLVM

Event Timeline

krytarowski updated this revision to Diff 41999.Dec 5 2015, 8:51 PM
krytarowski retitled this revision from to getwd(3) with NULL pointer extension is supported on NetBSD.
krytarowski updated this object.
krytarowski added reviewers: emaste, tfiala, clayborg.
krytarowski set the repository for this revision to rL LLVM.
krytarowski added subscribers: joerg, lldb-commits.
krytarowski updated this object.Dec 5 2015, 9:53 PM
emaste accepted this revision.Dec 6 2015, 5:02 AM
emaste edited edge metadata.
This revision is now accepted and ready to land.Dec 6 2015, 5:02 AM
tfiala accepted this revision.Dec 6 2015, 10:51 PM
tfiala edited edge metadata.
clayborg accepted this revision.Dec 7 2015, 10:10 AM
clayborg edited edge metadata.
krytarowski closed this revision.Dec 7 2015, 1:24 PM