This patch adds the posix function `inet_addr`. Since most of the parsing logic is delegated to `inet_aton`, I have only included some basic smoke tests for testing purposes.
47 lines
845 B
YAML
47 lines
845 B
YAML
header: arpa/inet.h
|
|
header_template: inet.h.def
|
|
macros: []
|
|
types:
|
|
- type_name: in_addr
|
|
- type_name: in_addr_t
|
|
enums: []
|
|
objects: []
|
|
functions:
|
|
- name: htonl
|
|
standards:
|
|
- POSIX
|
|
return_type: uint32_t
|
|
arguments:
|
|
- type: uint32_t
|
|
- name: htons
|
|
standards:
|
|
- POSIX
|
|
return_type: uint16_t
|
|
arguments:
|
|
- type: uint16_t
|
|
- name: inet_addr
|
|
standards:
|
|
- POSIX
|
|
return_type: in_addr_t
|
|
arguments:
|
|
- type: const char *
|
|
- name: inet_aton
|
|
standards:
|
|
- llvm_libc_ext
|
|
return_type: int
|
|
arguments:
|
|
- type: const char *
|
|
- type: in_addr *
|
|
- name: ntohl
|
|
standards:
|
|
- POSIX
|
|
return_type: uint32_t
|
|
arguments:
|
|
- type: uint32_t
|
|
- name: ntohs
|
|
standards:
|
|
- POSIX
|
|
return_type: uint16_t
|
|
arguments:
|
|
- type: uint16_t
|