Print this page
remove support for non-ANSI compilation
*** 17,26 ****
--- 17,28 ----
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
+ * Copyright 2014 Garrett D'Amore <garrett@damore.org>
+ *
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
*** 34,45 ****
*/
#ifndef _NSS_NETDIR_H
#define _NSS_NETDIR_H
- #pragma ident "%Z%%M% %I% %E% SMI"
-
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
--- 36,45 ----
*** 121,132 ****
} host;
struct servent *serv;
} nss;
};
- #ifdef __STDC__
-
int __classic_netdir_getbyname(struct netconfig *,
struct nd_hostserv *, struct nd_addrlist **);
int __classic_netdir_getbyaddr(struct netconfig *,
struct nd_hostservlist **, struct netbuf *);
int _get_hostserv_inetnetdir_byname(struct netconfig *,
--- 121,130 ----
*** 136,157 ****
int __inet_netdir_options(struct netconfig *,
int option, int fd, char *par);
struct netbuf *__inet_uaddr2taddr(struct netconfig *, char *);
char *__inet_taddr2uaddr(struct netconfig *, struct netbuf *);
- #else
-
- int __classic_netdir_getbyname();
- int __classic_netdir_getbyaddr();
- int _get_hostserv_inetnetdir_byname();
- int _get_hostserv_inetnetdir_byaddr();
- int __inet_netdir_options();
- struct netbuf *__inet_uaddr2taddr();
- char *__inet_taddr2uaddr();
-
- #endif /* __STDC__ */
-
#ifdef __cplusplus
}
#endif
#endif /* _NSS_NETDIR_H */
--- 134,143 ----