summaryrefslogtreecommitdiff
path: root/libgcompat/stdio.c
AgeCommit message (Collapse)AuthorFilesLines
2022-10-17stdio: Hook fopen(3) to intercept /proc/self/exeA. Wilcox1-1/+32
Unfortunately, we do have a potential race if the binary is renamed between the call to readlink and the real fopen. Fixes: #349
2022-05-25stdio: Fix style for __dprintf_chkA. Wilcox1-6/+6
2022-05-24stdio: add __dprintf_chkptrcnull1-0/+13
2018-01-15stdio: Clean up, add all of LSB stdio plus moreSamuel Holland1-81/+192
* Add all (non-wchar) stdio functions from LSB, plus those found in use in other applications. Document those functions from LSB as such. * Use a consistent structure and paramater names for all functions. * flag == 0 means FORTIFY_SOURCE=1, so the implemented checks should be unconditional. * Add all possible checks without parsing the format string. * Move functions from wchar.h to their own appropriately-named file. Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-14global: Format the code consistentlySamuel Holland1-18/+13
* 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-06-14move all compatibility library stuff into libgcompat/William Pitcock1-0/+130