3
2
* Copyright 1998-2000 by the Massachusetts Institute of Technology.
5
4
* All rights reserved.
7
6
* Permission to use, copy, modify, and distribute this software and its
8
7
* documentation for any purpose and without fee is hereby granted,
9
8
* provided that the above copyright notice appear in all copies and that
10
9
* both that copyright notice and this permission notice appear in
11
10
* supporting documentation, and that the name of M.I.T. not be used in
12
11
* advertising or publicity pertaining to distribution of the software
13
12
* without specific, written prior permission. Furthermore if you modify
14
13
* this software you must label your software as modified software and not
15
14
* distribute it in such a fashion that it might be confused with the
16
15
* original MIT software. M.I.T. makes no representations about the
17
16
* suitability of this software for any purpose. It is provided "as is"
18
17
* without express or implied warranty.
20
19
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
21
20
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
22
21
* MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
24
23
* Individual source code files are copyright MIT, Cygnus Support,
25
24
* OpenVision, Oracle, Sun Soft, FundsXpress, and others.
27
26
* Project Athena, Athena, Athena MUSE, Discuss, Hesiod, Kerberos, Moira,
28
27
* and Zephyr are trademarks of the Massachusetts Institute of Technology
29
28
* (MIT). No commercial use of these trademarks may be made without prior
30
29
* written permission of MIT.
32
31
* "Commercial use" means use of a name in a product or other for-profit
33
32
* manner. It does NOT prevent a commercial firm from referring to the MIT
34
33
* trademarks in order to convey information (although in doing so,
35
34
* recognition of their trademark status should be given).
b'/* $Header: /afs/andrew/system/cvs/src/sasl/mac/CommonKClient/mac_kclient3/Headers/KerberosSupport/netdb.h,v 1.2 2001/12/04 02:05:57 rjs3 Exp $ */'
b'/* MIT Sockets Library'
41
40
char *h_name; /* official (cannonical) name of host */
42
41
char **h_aliases; /* pointer to array of pointers of alias names */
43
42
int h_addrtype; /* host address type: AF_INET or AF_INET6 */
44
43
int h_length; /* length of address: 4 or 16 */
45
44
char **h_addr_list; /* pointer to array of pointers with IPv4 or IPv6 addresses */
b'#define h_addr h_addr_list[0]\t/* first address in list\t\t\t\t\t\t\t*/'
46
45
char *s_name; /* official service name */
47
46
char **s_aliases; /* alias list */
48
47
int s_port; /* port number, network-byte order */
49
48
char *s_proto; /* protocol to use */
b'#if defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)'
b'#if !TARGET_RT_MAC_CFM'
b'# pragma d0_pointers on'
b'struct hostent *gethostbyname(const char *hostname);'
b'struct hostent *gethostbyaddr(const char *addr, size_t len, int family);'
b"/* Gets the local host's hostname. If namelen isn't long enough, it puts in as much of"
50
49
the name as possible, without a terminating null. This is done so it is compatible
51
50
with the unix version. This is, admittedly, the wrong way to write a code, but my
52
51
excuse is compatibility. It should really dynamically allocate space. Oh well.
53
52
It also assert()'s if you don't pass it a reasonably sized buffer. */
b'int gethostname(char *name, size_t namelen);'
b'/* Opens the service database if needed and gets the next service entry.'
54
53
Returns NULL if you have read them all. On error, returns NULL and
55
54
calls SetMITLibError(). */
b'struct servent *getservent (void);'
b'/* Closes the service database. On error, calls SetMITLibError(). */'
b'void endservent (void);'
b'struct servent *getservbyname (const char *servname, const char *protname);'
b'struct servent *getservbyport (int port, const char *protname);'
b'#if !TARGET_RT_MAC_CFM'
b'# pragma d0_pointers reset'
b'#if defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)'
b'#\tpragma import reset'
b'\\ No newline at end of file'
57
57
* Copyright 1998-2000 by the Massachusetts Institute of Technology.
59
59
* All rights reserved.
61
61
* Permission to use, copy, modify, and distribute this software and its
62
62
* documentation for any purpose and without fee is hereby granted,
63
63
* provided that the above copyright notice appear in all copies and that
64
64
* both that copyright notice and this permission notice appear in
65
65
* supporting documentation, and that the name of M.I.T. not be used in
66
66
* advertising or publicity pertaining to distribution of the software
67
67
* without specific, written prior permission. Furthermore if you modify
68
68
* this software you must label your software as modified software and not
69
69
* distribute it in such a fashion that it might be confused with the
70
70
* original MIT software. M.I.T. makes no representations about the
71
71
* suitability of this software for any purpose. It is provided "as is"
72
72
* without express or implied warranty.
74
74
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
75
75
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
76
76
* MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
78
78
* Individual source code files are copyright MIT, Cygnus Support,
79
79
* OpenVision, Oracle, Sun Soft, FundsXpress, and others.
81
81
* Project Athena, Athena, Athena MUSE, Discuss, Hesiod, Kerberos, Moira,
82
82
* and Zephyr are trademarks of the Massachusetts Institute of Technology
83
83
* (MIT). No commercial use of these trademarks may be made without prior
84
84
* written permission of MIT.
86
86
* "Commercial use" means use of a name in a product or other for-profit
87
87
* manner. It does NOT prevent a commercial firm from referring to the MIT
88
88
* trademarks in order to convey information (although in doing so,
89
89
* recognition of their trademark status should be given).
b'/* $Header: /cvs/src/sasl/mac/CommonKClient/mac_kclient3/Headers/KerberosSupport/netdb.h,v 1.2 2001/12/04 02:05:57 rjs3 Exp $ */'
b'/* MIT Sockets Library'
95
95
char *h_name; /* official (cannonical) name of host */
96
96
char **h_aliases; /* pointer to array of pointers of alias names */
97
97
int h_addrtype; /* host address type: AF_INET or AF_INET6 */
98
98
int h_length; /* length of address: 4 or 16 */
99
99
char **h_addr_list; /* pointer to array of pointers with IPv4 or IPv6 addresses */
b'#define h_addr h_addr_list[0]\t/* first address in list\t\t\t\t\t\t\t*/'
100
100
char *s_name; /* official service name */
101
101
char **s_aliases; /* alias list */
102
102
int s_port; /* port number, network-byte order */
103
103
char *s_proto; /* protocol to use */
b'#if defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)'
b'#if !TARGET_RT_MAC_CFM'
b'# pragma d0_pointers on'
b'struct hostent *gethostbyname(const char *hostname);'
b'struct hostent *gethostbyaddr(const char *addr, size_t len, int family);'
b"/* Gets the local host's hostname. If namelen isn't long enough, it puts in as much of"
104
104
the name as possible, without a terminating null. This is done so it is compatible
105
105
with the unix version. This is, admittedly, the wrong way to write a code, but my
106
106
excuse is compatibility. It should really dynamically allocate space. Oh well.
107
107
It also assert()'s if you don't pass it a reasonably sized buffer. */
b'int gethostname(char *name, size_t namelen);'
b'/* Opens the service database if needed and gets the next service entry.'
108
108
Returns NULL if you have read them all. On error, returns NULL and
109
109
calls SetMITLibError(). */
b'struct servent *getservent (void);'
b'/* Closes the service database. On error, calls SetMITLibError(). */'
b'void endservent (void);'
b'struct servent *getservbyname (const char *servname, const char *protname);'
b'struct servent *getservbyport (int port, const char *protname);'
b'#if !TARGET_RT_MAC_CFM'
b'# pragma d0_pointers reset'
b'#if defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)'
b'#\tpragma import reset'
b'\\ No newline at end of file'