Get rid of several .h.def files which were used to ensure that the macro definitions from llvm-libc-macro would be included in the public header. Replace this logic with YAML instead - add entries to the "macros" list that point to the correct "macro_header" to ensure it would be included. For C standard library headers, list several standard-define macros to document their availability. For POSIX/Linux headers, only reference a handful of macro, since more planning is needed to decide how to represent platform-specific macro in YAML.
122 lines
2.3 KiB
YAML
122 lines
2.3 KiB
YAML
header: sys/socket.h
|
|
standards:
|
|
- posix
|
|
macros:
|
|
- macro_name: AF_UNSPEC
|
|
macro_header: sys-socket-macros.h
|
|
types:
|
|
- type_name: struct_sockaddr
|
|
- type_name: socklen_t
|
|
- type_name: sa_family_t
|
|
- type_name: struct_msghdr
|
|
- type_name: struct_iovec
|
|
- type_name: size_t
|
|
- type_name: ssize_t
|
|
enums: []
|
|
objects: []
|
|
functions:
|
|
- name: accept
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: struct sockaddr *__restrict
|
|
- type: socklen_t *__restrict
|
|
- name: bind
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: const struct sockaddr *
|
|
- type: socklen_t
|
|
- name: connect
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: const struct sockaddr *
|
|
- type: socklen_t
|
|
- name: listen
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: int
|
|
- name: recv
|
|
standards:
|
|
- POSIX
|
|
return_type: ssize_t
|
|
arguments:
|
|
- type: int
|
|
- type: void *
|
|
- type: size_t
|
|
- type: int
|
|
- name: recvfrom
|
|
standards:
|
|
- POSIX
|
|
return_type: ssize_t
|
|
arguments:
|
|
- type: int
|
|
- type: void *
|
|
- type: size_t
|
|
- type: int
|
|
- type: struct sockaddr *__restrict
|
|
- type: socklen_t *__restrict
|
|
- name: recvmsg
|
|
standards:
|
|
- POSIX
|
|
return_type: ssize_t
|
|
arguments:
|
|
- type: int
|
|
- type: struct msghdr *
|
|
- type: int
|
|
- name: send
|
|
standards:
|
|
- POSIX
|
|
return_type: ssize_t
|
|
arguments:
|
|
- type: int
|
|
- type: const void*
|
|
- type: size_t
|
|
- type: int
|
|
- name: sendmsg
|
|
standards:
|
|
- POSIX
|
|
return_type: ssize_t
|
|
arguments:
|
|
- type: int
|
|
- type: const struct msghdr *
|
|
- type: int
|
|
- name: sendto
|
|
standards:
|
|
- POSIX
|
|
return_type: ssize_t
|
|
arguments:
|
|
- type: int
|
|
- type: const void *
|
|
- type: size_t
|
|
- type: int
|
|
- type: const struct sockaddr *
|
|
- type: socklen_t
|
|
- name: socket
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: int
|
|
- type: int
|
|
- name: socketpair
|
|
standards:
|
|
- posix
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: int
|
|
- type: int
|
|
- type: int*
|