OLD | NEW |
1 /*- | 1 /*- |
2 * Copyright (c) 1980, 1983, 1988, 1993 | 2 * Copyright (c) 1980, 1983, 1988, 1993 |
3 * The Regents of the University of California. All rights reserved. | 3 * The Regents of the University of California. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 * From: Id: netdb.h,v 8.9 1996/11/19 08:39:29 vixie Exp $ | 53 * From: Id: netdb.h,v 8.9 1996/11/19 08:39:29 vixie Exp $ |
54 * $FreeBSD: src/include/netdb.h,v 1.23 2002/03/23 17:24:53 imp Exp $ | 54 * $FreeBSD: src/include/netdb.h,v 1.23 2002/03/23 17:24:53 imp Exp $ |
55 */ | 55 */ |
56 | 56 |
57 #ifndef _NETDB_H_ | 57 #ifndef _NETDB_H_ |
58 #define _NETDB_H_ | 58 #define _NETDB_H_ |
59 | 59 |
60 #include <sys/cdefs.h> | 60 #include <sys/cdefs.h> |
61 #include <sys/types.h> | 61 #include <sys/types.h> |
62 #include <machine/ansi.h> | 62 #include <machine/ansi.h> |
| 63 #include <stdint.h> |
63 #include <stdio.h> | 64 #include <stdio.h> |
64 | 65 |
65 #ifndef __socklen_t_defined | 66 #ifndef __socklen_t_defined |
66 typedef unsigned int socklen_t; | 67 typedef unsigned int socklen_t; |
67 #define __socklen_t_defined 1 | 68 #define __socklen_t_defined 1 |
68 #endif | 69 #endif |
69 | 70 |
70 #ifdef _BSD_SOCKLEN_T_ | 71 #ifdef _BSD_SOCKLEN_T_ |
71 typedef _BSD_SOCKLEN_T_ socklen_t; | 72 typedef _BSD_SOCKLEN_T_ socklen_t; |
72 #undef _BSD_SOCKLEN_T_ | 73 #undef _BSD_SOCKLEN_T_ |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 void _endnethtent(void); | 280 void _endnethtent(void); |
280 void _setnetdnsent(int); | 281 void _setnetdnsent(int); |
281 void _endnetdnsent(void); | 282 void _endnetdnsent(void); |
282 struct hostent * _gethostbynisname(const char *, int); | 283 struct hostent * _gethostbynisname(const char *, int); |
283 struct hostent * _gethostbynisaddr(const char *, int, int); | 284 struct hostent * _gethostbynisaddr(const char *, int, int); |
284 void _map_v4v6_address(const char *, char *); | 285 void _map_v4v6_address(const char *, char *); |
285 void _map_v4v6_hostent(struct hostent *, char **, int *); | 286 void _map_v4v6_hostent(struct hostent *, char **, int *); |
286 __END_DECLS | 287 __END_DECLS |
287 | 288 |
288 #endif /* !_NETDB_H_ */ | 289 #endif /* !_NETDB_H_ */ |
OLD | NEW |