~clint-fewbar/+junk/cyrus-sasl2-builddeb

« back to all changes in this revision

Viewing changes to mac/CommonKClient/mac_kclient3/Headers/KerberosSupport/netdb.h

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-05-27 17:05:30 UTC
  • mfrom: (2.4.1 experimental) (2.1.15 sid)
  • Revision ID: james.westby@ubuntu.com-20110527170530-yk7xxbhzrgtny84s
Tags: 2.1.24~rc1.dfsg1+cvs2011-05-23-2
* Upload to unstable
* One more AC_CACHE_VAL without _cv_ fix
* Update Vcs-* links
* Add gs2 and scram modules to libsasl2-modules-gssapi-mit
  (Closes: #628067)
* Revert "Change gbp.conf for experimental branch"
* Add lintian-override for libsasl2-modules-gssapi-mit: possible-gpl-
  code-linked-with-openssl

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Copyright:
2
1
*
3
2
* Copyright 1998-2000 by the Massachusetts Institute of Technology.
4
3
5
4
* All rights reserved.
6
5
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.
19
18
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.
23
22
24
23
* Individual source code files are copyright MIT, Cygnus Support,
25
24
* OpenVision, Oracle, Sun Soft, FundsXpress, and others.
26
25
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.
31
30
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).
36
35
* $
37
36
*/
 
 
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'
38
37
*  netdb.h
39
38
*  macdev@mit.edu
40
39
*/
 
 
b'#ifndef _NETDB_H'
 
 
b'#define _NETDB_H'
 
 
b'#include <stdlib.h>'
 
 
b'#ifdef __cplusplus'
 
 
b'extern "C" {'
 
 
b'#endif'
 
 
b'struct hostent'
 
 
b'{'
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'};'
 
 
b'#define h_addr  h_addr_list[0]\t/* first address in list\t\t\t\t\t\t\t*/'
 
 
b'struct servent'
 
 
b'{'
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'};'
 
 
b'#if defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)'
 
 
b'#\tpragma import on'
 
 
b'#endif'
 
 
b'#if !TARGET_RT_MAC_CFM'
 
 
b'#   pragma d0_pointers on'
 
 
b'#endif'
 
 
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'#endif'
 
 
b'#if defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)'
 
 
b'#\tpragma import reset'
 
 
b'#endif'
 
 
b'#ifdef __cplusplus'
 
 
b'}'
 
 
b'#endif'
 
 
b'#endif /* _NETDB_H */'
 
 
b'\\ No newline at end of file'
 
55
/* $Copyright:
56
56
*
57
57
* Copyright 1998-2000 by the Massachusetts Institute of Technology.
58
58
59
59
* All rights reserved.
60
60
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.
73
73
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.
77
77
78
78
* Individual source code files are copyright MIT, Cygnus Support,
79
79
* OpenVision, Oracle, Sun Soft, FundsXpress, and others.
80
80
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.
85
85
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).
90
90
* $
91
91
*/
 
 
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'
92
92
*  netdb.h
93
93
*  macdev@mit.edu
94
94
*/
 
 
b'#ifndef _NETDB_H'
 
 
b'#define _NETDB_H'
 
 
b'#include <stdlib.h>'
 
 
b'#ifdef __cplusplus'
 
 
b'extern "C" {'
 
 
b'#endif'
 
 
b'struct hostent'
 
 
b'{'
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'};'
 
 
b'#define h_addr  h_addr_list[0]\t/* first address in list\t\t\t\t\t\t\t*/'
 
 
b'struct servent'
 
 
b'{'
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'};'
 
 
b'#if defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)'
 
 
b'#\tpragma import on'
 
 
b'#endif'
 
 
b'#if !TARGET_RT_MAC_CFM'
 
 
b'#   pragma d0_pointers on'
 
 
b'#endif'
 
 
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'#endif'
 
 
b'#if defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)'
 
 
b'#\tpragma import reset'
 
 
b'#endif'
 
 
b'#ifdef __cplusplus'
 
 
b'}'
 
 
b'#endif'
 
 
b'#endif /* _NETDB_H */'
 
 
b'\\ No newline at end of file'