<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/libc/include/sys, branch release/18.x</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[libc] Provide sys/queue.h (#78081)</title>
<updated>2024-01-19T05:45:58+00:00</updated>
<author>
<name>Petr Hosek</name>
<email>phosek@google.com</email>
</author>
<published>2024-01-19T05:45:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=dbc09553149dee5ff5d4a8f544f56df5f01c584a'/>
<id>dbc09553149dee5ff5d4a8f544f56df5f01c584a</id>
<content type='text'>
This header first appeared in 4.4BSD and is provided by a number of C
libraries including Newlib. Several of our embedded projects use this
header and so to make LLVM libc a drop-in replacement, we need to
provide it as well.

For the initial commit, we only implement singly linked variants (SLIST
and STAILQ). The doubly linked variants (LIST, TAILQ and CIRCLEQ) can be
implemented in the future as needed.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This header first appeared in 4.4BSD and is provided by a number of C
libraries including Newlib. Several of our embedded projects use this
header and so to make LLVM libc a drop-in replacement, we need to
provide it as well.

For the initial commit, we only implement singly linked variants (SLIST
and STAILQ). The doubly linked variants (LIST, TAILQ and CIRCLEQ) can be
implemented in the future as needed.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] implement prctl (#74386)</title>
<updated>2023-12-05T20:31:00+00:00</updated>
<author>
<name>Schrodinger ZHU Yifan</name>
<email>yifanzhu@rochester.edu</email>
</author>
<published>2023-12-05T20:31:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=86bde5adc8f20a619c7ccbfee5d9bf92c5429226'/>
<id>86bde5adc8f20a619c7ccbfee5d9bf92c5429226</id>
<content type='text'>
Implement `prctl` as specified in
https://man7.org/linux/man-pages/man2/prctl.2.html.

This patch also includes test cases covering two simple use cases:

1. `PR_GET_NAME/PR_SET_NAME`: where userspace data is passed via arg2.
2. `PR_GET_THP_DISABLE`: where return value is passed via syscal retval.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implement `prctl` as specified in
https://man7.org/linux/man-pages/man2/prctl.2.html.

This patch also includes test cases covering two simple use cases:

1. `PR_GET_NAME/PR_SET_NAME`: where userspace data is passed via arg2.
2. `PR_GET_THP_DISABLE`: where return value is passed via syscal retval.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Introduce sys/socket.h</title>
<updated>2023-02-23T07:11:20+00:00</updated>
<author>
<name>Jeff Bailey</name>
<email>jeffbailey@google.com</email>
</author>
<published>2023-02-23T06:44:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=8aec3b126b5484780330378133cf9de811e227cc'/>
<id>8aec3b126b5484780330378133cf9de811e227cc</id>
<content type='text'>
This adds sys/socket.h and some definitions on Linux.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D144415
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds sys/socket.h and some definitions on Linux.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D144415
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Add the header sys/types.h.</title>
<updated>2022-10-25T00:24:49+00:00</updated>
<author>
<name>Siva Chandra Reddy</name>
<email>sivachandra@google.com</email>
</author>
<published>2022-10-24T22:18:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=6faf40bb75cfc97bf3f5168672bf71e906496a46'/>
<id>6faf40bb75cfc97bf3f5168672bf71e906496a46</id>
<content type='text'>
Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D136642
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D136642
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Add select.h and the implementation of the select function for Linux.</title>
<updated>2022-10-22T03:17:48+00:00</updated>
<author>
<name>Siva Chandra Reddy</name>
<email>sivachandra@google.com</email>
</author>
<published>2022-10-19T23:55:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=be4e425758afb926c63eadcfa6bf054bc33c0e4c'/>
<id>be4e425758afb926c63eadcfa6bf054bc33c0e4c</id>
<content type='text'>
Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D136375
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D136375
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] add headers sys/auxv sys/prctl and sys/time</title>
<updated>2022-10-12T20:19:50+00:00</updated>
<author>
<name>Michael Jones</name>
<email>michaelrj@google.com</email>
</author>
<published>2022-10-11T22:30:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=35a4fe4c0bf5f02c2eade1d97cfbda263a9285e1'/>
<id>35a4fe4c0bf5f02c2eade1d97cfbda263a9285e1</id>
<content type='text'>
These headers are uncommonly used, and from extensions, but some basic
support is needed. Macros have been added where available.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D135731
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These headers are uncommonly used, and from extensions, but some basic
support is needed. Macros have been added where available.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D135731
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] add isatty</title>
<updated>2022-10-10T22:20:46+00:00</updated>
<author>
<name>Michael Jones</name>
<email>michaelrj@google.com</email>
</author>
<published>2022-10-10T21:37:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=7639ba690648fae2b2034aa842942419b2fdcad4'/>
<id>7639ba690648fae2b2034aa842942419b2fdcad4</id>
<content type='text'>
The isatty function uses the side effects of an ioctl call to determine
if a specific file descriptor is a terminal. I chose TIOCGETD (get line
discipline of terminal) because it didn't require any new structs.

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D135618
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The isatty function uses the side effects of an ioctl call to determine
if a specific file descriptor is a terminal. I chose TIOCGETD (get line
discipline of terminal) because it didn't require any new structs.

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D135618
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement `getrandom` function for linux targets.</title>
<updated>2022-10-10T18:00:35+00:00</updated>
<author>
<name>Schrodinger ZHU Yifan</name>
<email>yifanzhu@rochester.edu</email>
</author>
<published>2022-10-10T18:00:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9eb11856cf1fa62c5408594fafc973eb2d380cdb'/>
<id>9eb11856cf1fa62c5408594fafc973eb2d380cdb</id>
<content type='text'>
Reviewed By: michaelrj, sivachandra

Differential Revision: https://reviews.llvm.org/D134665
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed By: michaelrj, sivachandra

Differential Revision: https://reviews.llvm.org/D134665
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Add a minimal implementation of the POSIX fork function.</title>
<updated>2022-10-04T19:12:08+00:00</updated>
<author>
<name>Siva Chandra Reddy</name>
<email>sivachandra@google.com</email>
</author>
<published>2022-10-04T06:43:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=e3638e83db086e77243d0673a4ce8a0b4b330d42'/>
<id>e3638e83db086e77243d0673a4ce8a0b4b330d42</id>
<content type='text'>
A very simple and minimal implementation of fork is added. Future
changes will add more functionality to satisfy POSIX and Linux
requirements.

An implementation of wait and a few support macros in sys/wait.h
have also been added to help with testing the fork function.

Reviewed By: lntue, michaelrj

Differential Revision: https://reviews.llvm.org/D135131
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A very simple and minimal implementation of fork is added. Future
changes will add more functionality to satisfy POSIX and Linux
requirements.

An implementation of wait and a few support macros in sys/wait.h
have also been added to help with testing the fork function.

Reviewed By: lntue, michaelrj

Differential Revision: https://reviews.llvm.org/D135131
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] move sys/mman macros to /include</title>
<updated>2022-09-23T16:36:34+00:00</updated>
<author>
<name>Michael Jones</name>
<email>michaelrj@google.com</email>
</author>
<published>2022-09-21T23:49:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=8d615a5e8af238ad4c010820634130c531205df4'/>
<id>8d615a5e8af238ad4c010820634130c531205df4</id>
<content type='text'>
Previously the mman macros were in api.td, but platform differences are
easier to handle with preprocessor macros so they have been moved to
include. Also I completed the list of macros (at least for what I need
soon) and fixed some previously incorrect values.

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D134491
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously the mman macros were in api.td, but platform differences are
easier to handle with preprocessor macros so they have been moved to
include. Also I completed the list of macros (at least for what I need
soon) and fixed some previously incorrect values.

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D134491
</pre>
</div>
</content>
</entry>
</feed>
