[libc-commits] [libc] 0870afa - [libc] newheadergen: created sys folder for yaml files, make appropriate updates to CMake file for sys folder (#98693)

via libc-commits libc-commits at lists.llvm.org
Fri Jul 12 15:33:41 PDT 2024


Author: RoseZhang03
Date: 2024-07-12T22:33:37Z
New Revision: 0870afaaaccde5b4bae37abfc982207ffafb8332

URL: https://github.com/llvm/llvm-project/commit/0870afaaaccde5b4bae37abfc982207ffafb8332
DIFF: https://github.com/llvm/llvm-project/commit/0870afaaaccde5b4bae37abfc982207ffafb8332.diff

LOG: [libc] newheadergen: created sys folder for yaml files, make appropriate updates to CMake file for sys folder (#98693)

Moved sys yaml files into the sys folder.
After CMake patch lands, will make appropriate changes to account for
yaml, header, and .h.def files that are located within the sys folder in
a separate patch.

Added: 
    libc/newhdrgen/yaml/sys/sys_auxv.yaml
    libc/newhdrgen/yaml/sys/sys_epoll.yaml
    libc/newhdrgen/yaml/sys/sys_ioctl.yaml
    libc/newhdrgen/yaml/sys/sys_mman.yaml
    libc/newhdrgen/yaml/sys/sys_prctl.yaml
    libc/newhdrgen/yaml/sys/sys_random.yaml
    libc/newhdrgen/yaml/sys/sys_resource.yaml
    libc/newhdrgen/yaml/sys/sys_select.yaml
    libc/newhdrgen/yaml/sys/sys_sendfile.yaml
    libc/newhdrgen/yaml/sys/sys_socket.yaml
    libc/newhdrgen/yaml/sys/sys_stat.yaml
    libc/newhdrgen/yaml/sys/sys_statvfs.yaml
    libc/newhdrgen/yaml/sys/sys_syscall.yaml
    libc/newhdrgen/yaml/sys/sys_time.yaml
    libc/newhdrgen/yaml/sys/sys_types.yaml
    libc/newhdrgen/yaml/sys/sys_utsname.yaml
    libc/newhdrgen/yaml/sys/sys_wait.yaml

Modified: 
    

Removed: 
    libc/newhdrgen/yaml/sys_auxv.yaml
    libc/newhdrgen/yaml/sys_epoll.yaml
    libc/newhdrgen/yaml/sys_ioctl.yaml
    libc/newhdrgen/yaml/sys_mman.yaml
    libc/newhdrgen/yaml/sys_prctl.yaml
    libc/newhdrgen/yaml/sys_random.yaml
    libc/newhdrgen/yaml/sys_resource.yaml
    libc/newhdrgen/yaml/sys_select.yaml
    libc/newhdrgen/yaml/sys_sendfile.yaml
    libc/newhdrgen/yaml/sys_socket.yaml
    libc/newhdrgen/yaml/sys_stat.yaml
    libc/newhdrgen/yaml/sys_statvfs.yaml
    libc/newhdrgen/yaml/sys_syscall.yaml
    libc/newhdrgen/yaml/sys_time.yaml
    libc/newhdrgen/yaml/sys_types.yaml
    libc/newhdrgen/yaml/sys_utsname.yaml
    libc/newhdrgen/yaml/sys_wait.yaml


################################################################################
diff  --git a/libc/newhdrgen/yaml/sys_auxv.yaml b/libc/newhdrgen/yaml/sys/sys_auxv.yaml
similarity index 87%
rename from libc/newhdrgen/yaml/sys_auxv.yaml
rename to libc/newhdrgen/yaml/sys/sys_auxv.yaml
index bbf756a1ffe6a..072f63b36865c 100644
--- a/libc/newhdrgen/yaml/sys_auxv.yaml
+++ b/libc/newhdrgen/yaml/sys/sys_auxv.yaml
@@ -1,6 +1,4 @@
 header: sys-auxv.h
-standards: 
-  - GNUExtensions
 macros: []
 types: []
 enums: []

diff  --git a/libc/newhdrgen/yaml/sys_epoll.yaml b/libc/newhdrgen/yaml/sys/sys_epoll.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/sys_epoll.yaml
rename to libc/newhdrgen/yaml/sys/sys_epoll.yaml

diff  --git a/libc/newhdrgen/yaml/sys_ioctl.yaml b/libc/newhdrgen/yaml/sys/sys_ioctl.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/sys_ioctl.yaml
rename to libc/newhdrgen/yaml/sys/sys_ioctl.yaml

diff  --git a/libc/newhdrgen/yaml/sys_mman.yaml b/libc/newhdrgen/yaml/sys/sys_mman.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/sys_mman.yaml
rename to libc/newhdrgen/yaml/sys/sys_mman.yaml

diff  --git a/libc/newhdrgen/yaml/sys_prctl.yaml b/libc/newhdrgen/yaml/sys/sys_prctl.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/sys_prctl.yaml
rename to libc/newhdrgen/yaml/sys/sys_prctl.yaml

diff  --git a/libc/newhdrgen/yaml/sys_random.yaml b/libc/newhdrgen/yaml/sys/sys_random.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/sys_random.yaml
rename to libc/newhdrgen/yaml/sys/sys_random.yaml

diff  --git a/libc/newhdrgen/yaml/sys_resource.yaml b/libc/newhdrgen/yaml/sys/sys_resource.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/sys_resource.yaml
rename to libc/newhdrgen/yaml/sys/sys_resource.yaml

diff  --git a/libc/newhdrgen/yaml/sys_select.yaml b/libc/newhdrgen/yaml/sys/sys_select.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/sys_select.yaml
rename to libc/newhdrgen/yaml/sys/sys_select.yaml

diff  --git a/libc/newhdrgen/yaml/sys_sendfile.yaml b/libc/newhdrgen/yaml/sys/sys_sendfile.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/sys_sendfile.yaml
rename to libc/newhdrgen/yaml/sys/sys_sendfile.yaml

diff  --git a/libc/newhdrgen/yaml/sys_socket.yaml b/libc/newhdrgen/yaml/sys/sys_socket.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/sys_socket.yaml
rename to libc/newhdrgen/yaml/sys/sys_socket.yaml

diff  --git a/libc/newhdrgen/yaml/sys_stat.yaml b/libc/newhdrgen/yaml/sys/sys_stat.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/sys_stat.yaml
rename to libc/newhdrgen/yaml/sys/sys_stat.yaml

diff  --git a/libc/newhdrgen/yaml/sys_statvfs.yaml b/libc/newhdrgen/yaml/sys/sys_statvfs.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/sys_statvfs.yaml
rename to libc/newhdrgen/yaml/sys/sys_statvfs.yaml

diff  --git a/libc/newhdrgen/yaml/sys_syscall.yaml b/libc/newhdrgen/yaml/sys/sys_syscall.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/sys_syscall.yaml
rename to libc/newhdrgen/yaml/sys/sys_syscall.yaml

diff  --git a/libc/newhdrgen/yaml/sys_time.yaml b/libc/newhdrgen/yaml/sys/sys_time.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/sys_time.yaml
rename to libc/newhdrgen/yaml/sys/sys_time.yaml

diff  --git a/libc/newhdrgen/yaml/sys_types.yaml b/libc/newhdrgen/yaml/sys/sys_types.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/sys_types.yaml
rename to libc/newhdrgen/yaml/sys/sys_types.yaml

diff  --git a/libc/newhdrgen/yaml/sys_utsname.yaml b/libc/newhdrgen/yaml/sys/sys_utsname.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/sys_utsname.yaml
rename to libc/newhdrgen/yaml/sys/sys_utsname.yaml

diff  --git a/libc/newhdrgen/yaml/sys_wait.yaml b/libc/newhdrgen/yaml/sys/sys_wait.yaml
similarity index 100%
rename from libc/newhdrgen/yaml/sys_wait.yaml
rename to libc/newhdrgen/yaml/sys/sys_wait.yaml


        


More information about the libc-commits mailing list