diff options
author | Thomas Haller <thaller@redhat.com> | 2023-08-18 10:38:40 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-08-18 11:04:17 (GMT) |
commit | 40578a6299adde3c55e46423e8dbb0e8448c76ad (patch) | |
tree | 4626c6e153a9d9e1b6ea6e563f97b32f0bb2251c /include | |
parent | 8ee8b05ff59999fd88b8a6faae40e7777ccf8c98 (diff) | |
download | libnl-40578a6299adde3c55e46423e8dbb0e8448c76ad.zip libnl-40578a6299adde3c55e46423e8dbb0e8448c76ad.tar.gz libnl-40578a6299adde3c55e46423e8dbb0e8448c76ad.tar.bz2 |
lib: use getprotobyname_r(), getprotobynumber_r() if available
Avoid non-threadsafe libc API.
Diffstat (limited to 'include')
-rw-r--r-- | include/nl-priv-dynamic-core/nl-core.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/nl-priv-dynamic-core/nl-core.h b/include/nl-priv-dynamic-core/nl-core.h index d7bec85..33ebfa1 100644 --- a/include/nl-priv-dynamic-core/nl-core.h +++ b/include/nl-priv-dynamic-core/nl-core.h @@ -66,6 +66,10 @@ struct nl_msg { /*****************************************************************************/ +int nl_getprotobyname(const char *name); + +bool nl_getprotobynumber(int proto, char *out_name, size_t name_len); + extern const char *nl_strerror_l(int err); extern int __nl_read_num_str_file(const char *path, |