summaryrefslogtreecommitdiff
path: root/libgcompat/pwd.c
AgeCommit message (Collapse)AuthorFilesLines
2018-01-15pwd: Fully implement fgetpwent_r/getpwent_rSamuel Holland1-45/+74
These functions require a deep copy of the structure into the caller-provided buffer. Also make sure to store NULL in result on error. Use the stream to differentiate the two functions and avoid duplication. Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-14global: Format the code consistentlySamuel Holland1-11/+19
* Apply clang-format. * Change all comments to the same style. * Add braces as dictated by the coding style guidelines. Signed-off-by: Samuel Holland <samuel@sholland.org>
2017-07-28libgcompat: add getpwent_r() and fgetpwent_r() stubsWilliam Pitcock1-0/+55