diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-10-29 02:22:40 +0200 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-09-05 03:18:36 +0200 |
commit | dcd7bc53eb34f58ab96f78ed24dcd9e5985b1748 (patch) | |
tree | bda09a578b3ad232bdb5b7bec6fabef5ef7a233c | |
parent | 081a8c583fcaa046b91f7156387a2bfbe9be250e (diff) |
gethostbyname.3: SYNOPSIS: Mark several symbols as [[deprecated]]
*hostent*() are the only ones that are not deprecated, AFAICS.
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r-- | man3/gethostbyname.3 | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/man3/gethostbyname.3 b/man3/gethostbyname.3 index 20ad562be..75d624c3f 100644 --- a/man3/gethostbyname.3 +++ b/man3/gethostbyname.3 @@ -30,22 +30,23 @@ Standard C library .nf .B #include <netdb.h> .PP -.B extern int h_errno; +.B [[deprecated]] extern int h_errno; .PP -.BI "struct hostent *gethostbyname(const char *" name ); -.BI "struct hostent *gethostbyaddr(const void *" addr , -.BI " socklen_t " len ", int " type ); +.BI "[[deprecated]] struct hostent *gethostbyname(const char *" name ); +.BI "[[deprecated]] struct hostent *gethostbyaddr(const void *" addr , +.BI " socklen_t " len ", int " type ); .PP .BI "void sethostent(int " stayopen ); .B void endhostent(void); .PP -.BI "void herror(const char *" s ); -.BI "const char *hstrerror(int " err ); +.BI "[[deprecated]] void herror(const char *" s ); +.BI "[[deprecated]] const char *hstrerror(int " err ); .PP /* System V/POSIX extension */ .B struct hostent *gethostent(void); .PP /* GNU extensions */ +.B [[deprecated]] .BI "struct hostent *gethostbyname2(const char *" name ", int " af ); .PP .BI "int gethostent_r(struct hostent *restrict " ret , @@ -53,17 +54,20 @@ Standard C library .BI " struct hostent **restrict " result , .BI " int *restrict " h_errnop ); .PP +.B [[deprecated]] .BI "int gethostbyaddr_r(const void *restrict " addr ", socklen_t " len \ ", int " type , .BI " struct hostent *restrict " ret , .BI " char *restrict " buf ", size_t " buflen , .BI " struct hostent **restrict " result , .BI " int *restrict " h_errnop ); +.B [[deprecated]] .BI "int gethostbyname_r(const char *restrict " name , .BI " struct hostent *restrict " ret , .BI " char *restrict " buf ", size_t " buflen , .BI " struct hostent **restrict " result , .BI " int *restrict " h_errnop ); +.B [[deprecated]] .BI "int gethostbyname2_r(const char *restrict " name ", int " af, .BI " struct hostent *restrict " ret , .BI " char *restrict " buf ", size_t " buflen , |