xref: /netbsd-src/usr.bin/rsh/getport.h (revision ce099b40997c43048fb78bd578195f81d2456523)
1*d9d5b792Schristos /*-
2*d9d5b792Schristos  * Copyright (c) 2004 The NetBSD Foundation, Inc.
3*d9d5b792Schristos  * All rights reserved.
4*d9d5b792Schristos  *
5*d9d5b792Schristos  * This code is derived from software contributed to The NetBSD Foundation
6*d9d5b792Schristos  * by Christos Zoulas.
7*d9d5b792Schristos  *
8*d9d5b792Schristos  * Redistribution and use in source and binary forms, with or without
9*d9d5b792Schristos  * modification, are permitted provided that the following conditions
10*d9d5b792Schristos  * are met:
11*d9d5b792Schristos  * 1. Redistributions of source code must retain the above copyright
12*d9d5b792Schristos  *    notice, this list of conditions and the following disclaimer.
13*d9d5b792Schristos  * 2. Redistributions in binary form must reproduce the above copyright
14*d9d5b792Schristos  *    notice, this list of conditions and the following disclaimer in the
15*d9d5b792Schristos  *    documentation and/or other materials provided with the distribution.
16*d9d5b792Schristos  *
17*d9d5b792Schristos  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
18*d9d5b792Schristos  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
19*d9d5b792Schristos  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20*d9d5b792Schristos  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
21*d9d5b792Schristos  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22*d9d5b792Schristos  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23*d9d5b792Schristos  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24*d9d5b792Schristos  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25*d9d5b792Schristos  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26*d9d5b792Schristos  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27*d9d5b792Schristos  * POSSIBILITY OF SUCH DAMAGE.
28*d9d5b792Schristos  */
29*d9d5b792Schristos extern struct servent *getport(const char *, const char *);
30