X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/ca67e7b465996afb3821d6a075c4dc6a7f0f5d52..1c15e88899094343f75aeba04122cd96a96b428e:/usr/src/include/arpa/inet.h diff --git a/usr/src/include/arpa/inet.h b/usr/src/include/arpa/inet.h index cddf916d3e..287971ddae 100644 --- a/usr/src/include/arpa/inet.h +++ b/usr/src/include/arpa/inet.h @@ -3,25 +3,36 @@ * All rights reserved. * * Redistribution and use in source and binary forms are permitted - * provided that the above copyright notice and this paragraph are - * duplicated in all such forms and that any documentation, - * advertising materials, and other materials related to such - * distribution and use acknowledge that the software was developed - * by the University of California, Berkeley. The name of the - * University may not be used to endorse or promote products derived + * provided that: (1) source distributions retain this entire copyright + * notice and comment, and (2) distributions including binaries display + * the following acknowledgement: ``This product includes software + * developed by the University of California, Berkeley and its contributors'' + * in the documentation or other materials provided with the distribution + * and in all advertising materials mentioning features or use of this + * software. Neither the name of the University nor the names of its + * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED - * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * @(#)inet.h 5.2 (Berkeley) 6/27/88 + * @(#)inet.h 5.4 (Berkeley) 6/1/90 */ -/* - * External definitions for - * functions in inet(3N) - */ -unsigned long inet_addr(); -char *inet_ntoa(); -struct in_addr inet_makeaddr(); -unsigned long inet_network(); +/* External definitions for functions in inet(3) */ + +#ifdef __STDC__ +extern unsigned long inet_addr(const char *); +extern char *inet_ntoa(struct in_addr); +extern struct in_addr inet_makeaddr(int , int); +extern unsigned long inet_network(const char *); +extern unsigned long inet_lnaof(struct in_addr); +extern unsigned long inet_netof(struct in_addr); +#else +extern unsigned long inet_addr(); +extern char *inet_ntoa(); +extern struct in_addr inet_makeaddr(); +extern unsigned long inet_network(); +extern unsigned long inet_lnaof(); +extern unsigned long inet_netof(); +#endif