diff options
author | Xu Zhang <simonzgx@gmail.com> | 2024-06-15 07:17:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-14 16:17:44 -0700 |
commit | 0b24b4706982907799c838d80e06b3aa08420549 (patch) | |
tree | 7943efb95051d5f516004ad1687883e4ab737909 /libc/config | |
parent | 98b117e4355d2ba7b672014aafc41b3f646fc72c (diff) | |
download | llvm-0b24b4706982907799c838d80e06b3aa08420549.zip llvm-0b24b4706982907799c838d80e06b3aa08420549.tar.gz llvm-0b24b4706982907799c838d80e06b3aa08420549.tar.bz2 |
[libc] Add the implementation of the fdopen function (#94186)
Fixes #93711 .
This patch implements the ``fdopen`` function. Given that ``fdopen``
internally calls ``fcntl``, the implementation of ``fcntl`` has been
moved to the ``__support/OSUtil``, where it serves as an internal public
function.
Diffstat (limited to 'libc/config')
-rw-r--r-- | libc/config/linux/aarch64/entrypoints.txt | 1 | ||||
-rw-r--r-- | libc/config/linux/riscv/entrypoints.txt | 1 | ||||
-rw-r--r-- | libc/config/linux/x86_64/entrypoints.txt | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/libc/config/linux/aarch64/entrypoints.txt b/libc/config/linux/aarch64/entrypoints.txt index 905f7e4..dfed6ac 100644 --- a/libc/config/linux/aarch64/entrypoints.txt +++ b/libc/config/linux/aarch64/entrypoints.txt @@ -201,6 +201,7 @@ set(TARGET_LIBC_ENTRYPOINTS libc.src.stdio.snprintf libc.src.stdio.vsprintf libc.src.stdio.vsnprintf + libc.src.stdio.fdopen #libc.src.stdio.sscanf #libc.src.stdio.scanf #libc.src.stdio.fscanf diff --git a/libc/config/linux/riscv/entrypoints.txt b/libc/config/linux/riscv/entrypoints.txt index 67abf851..e12d6b3 100644 --- a/libc/config/linux/riscv/entrypoints.txt +++ b/libc/config/linux/riscv/entrypoints.txt @@ -209,6 +209,7 @@ set(TARGET_LIBC_ENTRYPOINTS libc.src.stdio.sscanf libc.src.stdio.scanf libc.src.stdio.fscanf + libc.src.stdio.fdopen # sys/mman.h entrypoints libc.src.sys.mman.madvise diff --git a/libc/config/linux/x86_64/entrypoints.txt b/libc/config/linux/x86_64/entrypoints.txt index a5a634f..cfe3516 100644 --- a/libc/config/linux/x86_64/entrypoints.txt +++ b/libc/config/linux/x86_64/entrypoints.txt @@ -214,6 +214,7 @@ set(TARGET_LIBC_ENTRYPOINTS libc.src.stdio.scanf libc.src.stdio.fscanf libc.src.stdio.fileno + libc.src.stdio.fdopen # sys/epoll.h entrypoints libc.src.sys.epoll.epoll_create |