Files
clang-p2996/libc/include/string.yaml
Roland McGrath 6ad0dcf67f [libc] Revamp hdrgen command line and build integration (#121522)
This adds a new main command-line entry point for hdrgen, in the
new main.py.  This new interface is used for generating a header.
The old ways of invoking yaml_to_classes.py for other purposes
are left there for now, but `--e` is renamed to `--entry-point`
for consistency with the new CLI.

The YAML schema is expanded with the `header_template` key where
the corresponding `.h.def` file's path is given relative to where
the YAML file is found.  The build integration no longer gives
the `.h.def` path on the command line.  Instead, the script now
emits a depfile that's used by the cmake rules to track that.
The output file is always explicit in the script command line
rather than sometimes being derived from a directory path.
2025-01-07 15:56:12 -08:00

321 lines
6.3 KiB
YAML

header: string.h
header_template: string.h.def
macros: []
types:
- type_name: size_t
enums: []
objects: []
functions:
- name: memccpy
standards:
- POSIX
return_type: void *
arguments:
- type: void *__restrict
- type: const void *__restrict
- type: int
- type: size_t
- name: memchr
standards:
- stdc
return_type: void *
arguments:
- type: const void *
- type: int
- type: size_t
- name: memcmp
standards:
- stdc
return_type: int
arguments:
- type: const void *
- type: const void *
- type: size_t
- name: memcpy
standards:
- stdc
return_type: void *
arguments:
- type: void *__restrict
- type: const void *__restrict
- type: size_t
- name: memmem
standards:
- GNUExtensions
return_type: void *
arguments:
- type: const void *
- type: size_t
- type: const void *
- type: size_t
- name: memmove
standards:
- stdc
return_type: void *
arguments:
- type: void *
- type: const void *
- type: size_t
- name: mempcpy
standards:
- POSIX
return_type: void *
arguments:
- type: void *__restrict
- type: const void *__restrict
- type: size_t
- name: memrchr
standards:
- GNUExtensions
return_type: void *
arguments:
- type: const void *
- type: int
- type: size_t
- name: memset
standards:
- stdc
return_type: void *
arguments:
- type: void *
- type: int
- type: size_t
- name: memset_explicit
standards:
- stdc
return_type: void *
arguments:
- type: void *
- type: int
- type: size_t
- name: stpcpy
standards:
- POSIX
return_type: char *
arguments:
- type: char *__restrict
- type: const char *__restrict
- name: stpncpy
standards:
- POSIX
return_type: char *
arguments:
- type: char *__restrict
- type: const char *__restrict
- type: size_t
- name: strcasestr
standards:
- GNUExtensions
return_type: char *
arguments:
- type: const char *
- type: const char *
- name: strcat
standards:
- stdc
return_type: char *
arguments:
- type: char *__restrict
- type: const char *__restrict
- name: strchr
standards:
- stdc
return_type: char *
arguments:
- type: const char *
- type: int
- name: strchrnul
standards:
- GNUExtensions
return_type: char *
arguments:
- type: const char *
- type: int
- name: strcmp
standards:
- stdc
return_type: int
arguments:
- type: const char *
- type: const char *
- name: strcoll
standards:
- stdc
return_type: int
arguments:
- type: const char *
- type: const char *
- name: strcoll_l
standards:
- stdc
return_type: int
arguments:
- type: const char *
- type: const char *
- type: locale_t
- name: strcpy
standards:
- stdc
return_type: char *
arguments:
- type: char *__restrict
- type: const char *__restrict
- name: strcspn
standards:
- stdc
return_type: size_t
arguments:
- type: const char *
- type: const char *
- name: strdup
return_type: char *
arguments:
- type: const char *
- name: strerror
standards:
- stdc
return_type: char *
arguments:
- type: int
- name: strerror_r
standards:
- GNUExtensions
return_type: char *
arguments:
- type: int
- type: char *
- type: size_t
- name: strlcat
standards:
- BSDExtensions
return_type: size_t
arguments:
- type: char *__restrict
- type: const char *__restrict
- type: size_t
- name: strlcpy
standards:
- BSDExtensions
return_type: size_t
arguments:
- type: char *__restrict
- type: const char *__restrict
- type: size_t
- name: strlen
standards:
- stdc
return_type: size_t
arguments:
- type: const char *
- name: strncat
standards:
- stdc
return_type: char *
arguments:
- type: char *
- type: const char *
- type: size_t
- name: strncmp
standards:
- stdc
return_type: int
arguments:
- type: const char *
- type: const char *
- type: size_t
- name: strncpy
standards:
- stdc
return_type: char *
arguments:
- type: char *__restrict
- type: const char *__restrict
- type: size_t
- name: strndup
standards:
- stdc
return_type: char *
arguments:
- type: const char *
- type: size_t
- name: strnlen
standards:
- POSIX
return_type: size_t
arguments:
- type: const char *
- type: size_t
- name: strpbrk
standards:
- stdc
return_type: char *
arguments:
- type: const char *
- type: const char *
- name: strrchr
standards:
- stdc
return_type: char *
arguments:
- type: const char *
- type: int
- name: strsep
standards:
- BSDExtensions
return_type: char *
arguments:
- type: char **__restrict
- type: const char *__restrict
- name: strsignal
standards:
- POSIX
return_type: char *
arguments:
- type: int
- name: strspn
standards:
- stdc
return_type: size_t
arguments:
- type: const char *
- type: const char *
- name: strstr
standards:
- stdc
return_type: char *
arguments:
- type: const char *
- type: const char *
- name: strtok
standards:
- stdc
return_type: char *
arguments:
- type: char *__restrict
- type: const char *__restrict
- name: strtok_r
standards:
- POSIX
return_type: char *
arguments:
- type: char *__restrict
- type: const char *__restrict
- type: char ** __restrict
- name: strxfrm
standards:
- stdc
return_type: size_t
arguments:
- type: char *__restrict
- type: const char *__restrict
- type: size_t
- name: strxfrm_l
standards:
- stdc
return_type: size_t
arguments:
- type: char *__restrict
- type: const char *__restrict
- type: size_t
- type: locale_t