xref: /dflybsd-src/contrib/cvs-1.12/lib/canon-host.h (revision 86d7f5d305c6adaa56ff4582ece9859d73106103)
186d7f5d3SJohn Marino /* Host name canonicalization
286d7f5d3SJohn Marino 
386d7f5d3SJohn Marino    Copyright (C) 2005 Free Software Foundation, Inc.
486d7f5d3SJohn Marino 
586d7f5d3SJohn Marino    Written by Derek Price <derek@ximbiot.com>
686d7f5d3SJohn Marino 
786d7f5d3SJohn Marino    This program is free software; you can redistribute it and/or
886d7f5d3SJohn Marino    modify it under the terms of the GNU General Public License as
986d7f5d3SJohn Marino    published by the Free Software Foundation; either version 2, or (at
1086d7f5d3SJohn Marino    your option) any later version.
1186d7f5d3SJohn Marino 
1286d7f5d3SJohn Marino    This program is distributed in the hope that it will be useful, but
1386d7f5d3SJohn Marino    WITHOUT ANY WARRANTY; without even the implied warranty of
1486d7f5d3SJohn Marino    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
1586d7f5d3SJohn Marino    General Public License for more details.
1686d7f5d3SJohn Marino 
1786d7f5d3SJohn Marino    You should have received a copy of the GNU General Public License
1886d7f5d3SJohn Marino    along with this program; if not, write to the Free Software Foundation,
1986d7f5d3SJohn Marino    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
2086d7f5d3SJohn Marino 
2186d7f5d3SJohn Marino #ifndef CANON_HOST_H
2286d7f5d3SJohn Marino # define CANON_HOST_H 1
2386d7f5d3SJohn Marino 
2486d7f5d3SJohn Marino char *canon_host (char const *host);
2586d7f5d3SJohn Marino char *canon_host_r (char const *host, int *cherror);
2686d7f5d3SJohn Marino 
2786d7f5d3SJohn Marino const char *ch_strerror (void);
2886d7f5d3SJohn Marino # define ch_strerror_r(cherror) gai_strerror (cherror);
2986d7f5d3SJohn Marino 
3086d7f5d3SJohn Marino #endif /* !CANON_HOST_H */
31