summaryrefslogtreecommitdiffstats
path: root/libc/include
Commit message (Collapse)AuthorAgeFilesLines
* Add implementations of POSIX mmap and munmap functions.Siva Chandra Reddy2019-12-234-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: A set of of linux x86_64 internal syscall helpers have also been added. This change does not try to be perfect with respect to OS and machine abstractions. A TODO note has been added at places where such abstractions would help and make the arrangement scalable and cleaner. Addressing the TODOs and building such abstractions is not in the scope of this change. It is hoped that follow up changes cleaning up the problem areas and addressing the TODOs will better illustrate the need for the changes. This change also does not try to imitate mmap and munmap implementations of other libcs. The idea here is to put in the bare minimum required to obtain a working mmap and munmap, and then add the rest of the functionality on an as needed basis. Reviewers: abrachet, phosek, stanshebs, theraven Subscribers: mgorny, MaskRay, jfb, libc-commits Tags: #libc-project Differential Revision: https://reviews.llvm.org/D71634
* [libc] Add implementation of errno and define the other macros of errno.h.Siva Chandra Reddy2019-12-092-0/+28
| | | | | | | | | | Reviewers: stanshebs, alexbrachet Subscribers: mgorny, MaskRay, tschuett, libc-commits Tags: #libc-project Differential Revision: https://reviews.llvm.org/D71094
* [libc] Add a TableGen based header generator.Siva Chandra Reddy2019-11-223-69/+19
| | | | | | | | | | | | | | | Summary: * The Python header generator has been removed. * Docs giving a highlevel overview of the header gen scheme have been added. Reviewers: phosek, abrachet Subscribers: mgorny, MaskRay, tschuett, libc-commits Tags: #libc-project Differential Revision: https://reviews.llvm.org/D70197
* Add few docs and implementation of strcpy and strcat.Siva Chandra2019-10-045-0/+535
Summary: This patch illustrates some of the features like modularity we want in the new libc. Few other ideas like different kinds of testing, redirectors etc are not yet present. Reviewers: dlj, hfinkel, theraven, jfb, alexshap, jdoerfert Subscribers: mgorny, dexonsmith, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D67867 llvm-svn: 373764
OpenPOWER on IntegriCloud