diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-07-15 08:28:50 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-07-15 08:39:31 +0200 |
commit | adcc572a29169e5b571ab06b1a5bf941985d8fe6 (patch) | |
tree | 77aebfcb3ff5acaddaaed71e70abde4d39399942 /sysdeps/unix/sysv/linux/riscv | |
parent | 2ff32dd4926c7ec3bb6c09b58a12a8e828a4cc58 (diff) | |
download | glibc-adcc572a29169e5b571ab06b1a5bf941985d8fe6.tar.gz glibc-adcc572a29169e5b571ab06b1a5bf941985d8fe6.tar.xz glibc-adcc572a29169e5b571ab06b1a5bf941985d8fe6.zip |
resolv: Move ns_name_ntop to its own file and into libc
Reformat to GNU style. Avoid out-of-bounds pointer arithmetic (e.g., use eom - dn < 2 instead of dn + 1 >= eom). Inline the labellen function and fold the compression pointer check into the length check (l >= 64). Assume ASCII encoding. The symbol was moved using scripts/move-symbol-to-libc.py. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/riscv')
4 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/riscv/rv32/libc.abilist b/sysdeps/unix/sysv/linux/riscv/rv32/libc.abilist index 3ca5b84420..2a8238a8a2 100644 --- a/sysdeps/unix/sysv/linux/riscv/rv32/libc.abilist +++ b/sysdeps/unix/sysv/linux/riscv/rv32/libc.abilist @@ -1340,6 +1340,7 @@ GLIBC_2.33 nl_langinfo F GLIBC_2.33 nl_langinfo_l F GLIBC_2.33 nrand48 F GLIBC_2.33 nrand48_r F +GLIBC_2.33 ns_name_ntop F GLIBC_2.33 ntohl F GLIBC_2.33 ntohs F GLIBC_2.33 ntp_adjtime F @@ -2213,6 +2214,7 @@ GLIBC_2.34 mtx_lock F GLIBC_2.34 mtx_timedlock F GLIBC_2.34 mtx_trylock F GLIBC_2.34 mtx_unlock F +GLIBC_2.34 ns_name_ntop F GLIBC_2.34 openpty F GLIBC_2.34 posix_spawn_file_actions_addclosefrom_np F GLIBC_2.34 pthread_attr_getaffinity_np F diff --git a/sysdeps/unix/sysv/linux/riscv/rv32/libresolv.abilist b/sysdeps/unix/sysv/linux/riscv/rv32/libresolv.abilist index 43947f7e27..a3af26db78 100644 --- a/sysdeps/unix/sysv/linux/riscv/rv32/libresolv.abilist +++ b/sysdeps/unix/sysv/linux/riscv/rv32/libresolv.abilist @@ -60,7 +60,6 @@ GLIBC_2.33 ns_makecanon F GLIBC_2.33 ns_msg_getflag F GLIBC_2.33 ns_name_compress F GLIBC_2.33 ns_name_ntol F -GLIBC_2.33 ns_name_ntop F GLIBC_2.33 ns_name_pack F GLIBC_2.33 ns_name_pton F GLIBC_2.33 ns_name_rollback F diff --git a/sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist b/sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist index 1e66efb155..521b52e801 100644 --- a/sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist +++ b/sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist @@ -1387,6 +1387,7 @@ GLIBC_2.27 nl_langinfo F GLIBC_2.27 nl_langinfo_l F GLIBC_2.27 nrand48 F GLIBC_2.27 nrand48_r F +GLIBC_2.27 ns_name_ntop F GLIBC_2.27 ntohl F GLIBC_2.27 ntohs F GLIBC_2.27 ntp_adjtime F @@ -2413,6 +2414,7 @@ GLIBC_2.34 mtx_lock F GLIBC_2.34 mtx_timedlock F GLIBC_2.34 mtx_trylock F GLIBC_2.34 mtx_unlock F +GLIBC_2.34 ns_name_ntop F GLIBC_2.34 openpty F GLIBC_2.34 posix_spawn_file_actions_addclosefrom_np F GLIBC_2.34 pthread_attr_getaffinity_np F diff --git a/sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist b/sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist index eb9c1cb747..0d4bd6855b 100644 --- a/sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist +++ b/sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist @@ -60,7 +60,6 @@ GLIBC_2.27 ns_makecanon F GLIBC_2.27 ns_msg_getflag F GLIBC_2.27 ns_name_compress F GLIBC_2.27 ns_name_ntol F -GLIBC_2.27 ns_name_ntop F GLIBC_2.27 ns_name_pack F GLIBC_2.27 ns_name_pton F GLIBC_2.27 ns_name_rollback F |