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