From fe93f28895ffc89221067bd526b2283d03dfa3d9 Mon Sep 17 00:00:00 2001 From: Rose Zhang Date: Wed, 17 Jul 2024 23:20:28 +0000 Subject: [PATCH] added cbrt math function, create arpa and gpu folder, fixed inconsistent types --- libc/newhdrgen/yaml/{ => arpa}/arpa_inet.yaml | 0 libc/newhdrgen/yaml/{ => gpu}/gpu_rpc.yaml | 0 libc/newhdrgen/yaml/math.yaml | 6 ++++++ libc/newhdrgen/yaml/setjmp.yaml | 2 +- libc/newhdrgen/yaml/time.yaml | 2 +- libc/newhdrgen/yaml/wchar.yaml | 1 + 6 files changed, 9 insertions(+), 2 deletions(-) rename libc/newhdrgen/yaml/{ => arpa}/arpa_inet.yaml (100%) rename libc/newhdrgen/yaml/{ => gpu}/gpu_rpc.yaml (100%) diff --git a/libc/newhdrgen/yaml/arpa_inet.yaml b/libc/newhdrgen/yaml/arpa/arpa_inet.yaml similarity index 100% rename from libc/newhdrgen/yaml/arpa_inet.yaml rename to libc/newhdrgen/yaml/arpa/arpa_inet.yaml diff --git a/libc/newhdrgen/yaml/gpu_rpc.yaml b/libc/newhdrgen/yaml/gpu/gpu_rpc.yaml similarity index 100% rename from libc/newhdrgen/yaml/gpu_rpc.yaml rename to libc/newhdrgen/yaml/gpu/gpu_rpc.yaml diff --git a/libc/newhdrgen/yaml/math.yaml b/libc/newhdrgen/yaml/math.yaml index 5afde59b6b5587..8588389bca4d22 100644 --- a/libc/newhdrgen/yaml/math.yaml +++ b/libc/newhdrgen/yaml/math.yaml @@ -7,6 +7,12 @@ types: enums: [] objects: [] functions: + - name: cbrt + standards: + - stdc + return_type: double + arguments: + - type: double - name: cbrtf standards: - stdc diff --git a/libc/newhdrgen/yaml/setjmp.yaml b/libc/newhdrgen/yaml/setjmp.yaml index 13c02ef314c26f..c750b46fc20881 100644 --- a/libc/newhdrgen/yaml/setjmp.yaml +++ b/libc/newhdrgen/yaml/setjmp.yaml @@ -8,7 +8,7 @@ functions: - name: longjmp standards: - stdc - return_type: void + return_type: _Noreturn void arguments: - type: jmp_buf - type: int diff --git a/libc/newhdrgen/yaml/time.yaml b/libc/newhdrgen/yaml/time.yaml index e7f8de65eeb754..220d4328dbbdbb 100644 --- a/libc/newhdrgen/yaml/time.yaml +++ b/libc/newhdrgen/yaml/time.yaml @@ -15,7 +15,7 @@ functions: - stdc return_type: char * arguments: - - type: struct tm * + - type: const struct tm * - name: asctime_r standard: - stdc diff --git a/libc/newhdrgen/yaml/wchar.yaml b/libc/newhdrgen/yaml/wchar.yaml index 663267fb69d73e..92ecdc26fbc738 100644 --- a/libc/newhdrgen/yaml/wchar.yaml +++ b/libc/newhdrgen/yaml/wchar.yaml @@ -4,6 +4,7 @@ types: - type_name: size_t - type_name: wint_t - type_name: wchar_t + - type_name: mbstate_t.h enums: [] objects: [] functions: