gethostbynis.c (a6497df52c6a659b192b85f4f36dbb1e54d76eb6) gethostbynis.c (33dee819339974eaf7dbf69068001771cbdcd548)
1/*-
2 * Copyright (c) 1994, Garrett Wollman
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 34 unchanged lines hidden (view full) ---

43#include <rpc/rpc.h>
44#include <rpcsvc/yp_prot.h>
45#include <rpcsvc/ypclnt.h>
46#endif
47
48#define MAXALIASES 35
49#define MAXADDRS 35
50
1/*-
2 * Copyright (c) 1994, Garrett Wollman
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 34 unchanged lines hidden (view full) ---

43#include <rpc/rpc.h>
44#include <rpcsvc/yp_prot.h>
45#include <rpcsvc/ypclnt.h>
46#endif
47
48#define MAXALIASES 35
49#define MAXADDRS 35
50
51extern int h_errno;
52
53#ifdef YP
54static char *host_aliases[MAXALIASES];
55static char hostaddr[MAXADDRS];
56static char *host_addrs[2];
57
58static struct hostent *
59_gethostbynis(name, map, af)
60 const char *name;

--- 132 unchanged lines hidden ---
51#ifdef YP
52static char *host_aliases[MAXALIASES];
53static char hostaddr[MAXADDRS];
54static char *host_addrs[2];
55
56static struct hostent *
57_gethostbynis(name, map, af)
58 const char *name;

--- 132 unchanged lines hidden ---