[libc][NFC] Remove all Linux specific code to respective linux/ directoriesThese were all the non OS agnostic implementations I could find in general directories.Currently none of these functions
[libc][NFC] Remove all Linux specific code to respective linux/ directoriesThese were all the non OS agnostic implementations I could find in general directories.Currently none of these functions are actually enabled, but for when they do it makes sense that they be in linux/ specific directories.Reviewed By: sivachandraDifferential Revision: https://reviews.llvm.org/D119164
show more ...
[libc] Move the x86_64 syscall functions to OSUtil.Reviewed By: michaelrj, lntueDifferential Revision: https://reviews.llvm.org/D116177
[libc] apply new lint rulesThis patch applies the lint rules described in the previous patch. Therewas also a significant amount of effort put into manually fixing things,since all of the templat
[libc] apply new lint rulesThis patch applies the lint rules described in the previous patch. Therewas also a significant amount of effort put into manually fixing things,since all of the templated functions, or structs defined in /spec, werenot updated and had to be handled manually.Reviewed By: sivachandra, lntueDifferential Revision: https://reviews.llvm.org/D114302
[libc] Switch to use a macro which does not insert a section for every libc function.Summary:The new macro also inserts the C alias for the C++ implementationswithout needing an objcopy based pos
[libc] Switch to use a macro which does not insert a section for every libc function.Summary:The new macro also inserts the C alias for the C++ implementationswithout needing an objcopy based post processing step. The CMakerules have been updated to reflect this. More CMake cleanup can betaken up in future rounds and appropriate TODOs have been added for them.Reviewers: mcgrathr, sivachandraSubscribers:
[LIBC][NFC] Rename errno and assert files to match other files with functionsRename the files containing the `__errno_location` functionto `__errno_location.h/cpp` to match the other files and mov
[LIBC][NFC] Rename errno and assert files to match other files with functionsRename the files containing the `__errno_location` functionto `__errno_location.h/cpp` to match the other files and movethe `llvmlibc_errno` macro to its own file.Split assert.h into `__assert_fail.h` (contains the function prototype)and assert.h (contains the assert macro).Reviewed By: sivachandraDifferential Revision: https://reviews.llvm.org/D90653
[libc] Add fully-qualified target names.Only targets setup by the special LLVM libc rules now have fullyqualified names. The naming style is similar to fully qualified names inPython.Reviewers:
[libc] Add fully-qualified target names.Only targets setup by the special LLVM libc rules now have fullyqualified names. The naming style is similar to fully qualified names inPython.Reviewers: abrachet, PaulkaToast, phosekDifferential Revision: https://reviews.llvm.org/D77340
[libc][NFC] Make all top of file comments consistent.Summary:Made all header files consistent based of this documentation: https://llvm.org/docs/CodingStandards.html#file-headers.And did the same
[libc][NFC] Make all top of file comments consistent.Summary:Made all header files consistent based of this documentation: https://llvm.org/docs/CodingStandards.html#file-headers.And did the same for all source files top of file comments.Reviewers: sivachandra, abrachetReviewed By: sivachandra, abrachetSubscribers: MaskRay, tschuett, libc-commitsTags: #libc-projectDifferential Revision: https://reviews.llvm.org/D77533
[libc] Add initial assert definitionSummary: This patch adds a temporary `__assert_fail` and `assert` definition to make it available to internal llvm libc code. `__assert_fail` writes to fd 2 dire
[libc] Add initial assert definitionSummary: This patch adds a temporary `__assert_fail` and `assert` definition to make it available to internal llvm libc code. `__assert_fail` writes to fd 2 directly instead of `stderr`, using SYS_write. I have not put it in its own linux directory because this is temporary and it should be using stdio's api in the future. It does not currently print out the line number (although we could do that by stringifying `__LINE__` if reviewers wish).Reviewers: sivachandra, gchatelet, PaulkaToastReviewed By: sivachandraSubscribers: mgorny, MaskRay, tschuett, libc-commitsDifferential Revision: https://reviews.llvm.org/D75420