getservent.c (20953) | getservent.c (90868) |
---|---|
1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 | 1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 |
34#if 0 |
|
34#if defined(LIBC_SCCS) && !defined(lint) 35static char sccsid[] = "@(#)getservent.c 8.1 (Berkeley) 6/4/93"; 36#endif /* LIBC_SCCS and not lint */ | 35#if defined(LIBC_SCCS) && !defined(lint) 36static char sccsid[] = "@(#)getservent.c 8.1 (Berkeley) 6/4/93"; 37#endif /* LIBC_SCCS and not lint */ |
38#endif 0 |
|
37 | 39 |
40#include <sys/cdefs.h> 41__FBSDID("$FreeBSD: head/lib/libc/net/getservent.c 90868 2002-02-18 20:35:27Z mike $"); 42 |
|
38#include <sys/types.h> 39#include <sys/socket.h> | 43#include <sys/types.h> 44#include <sys/socket.h> |
45#include <arpa/inet.h> |
|
40#include <netdb.h> 41#include <stdio.h> 42#include <string.h> 43#include <stdlib.h> 44#ifdef YP 45#include <rpc/rpc.h> 46#include <rpcsvc/yp_prot.h> 47#include <rpcsvc/ypclnt.h> --- 231 unchanged lines hidden --- | 46#include <netdb.h> 47#include <stdio.h> 48#include <string.h> 49#include <stdlib.h> 50#ifdef YP 51#include <rpc/rpc.h> 52#include <rpcsvc/yp_prot.h> 53#include <rpcsvc/ypclnt.h> --- 231 unchanged lines hidden --- |