dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / lib / gss_mechs / mech_krb5 / support / init-addrinfo.c
blob4c94dc74349230a130d8718dbc4fe0d7489d3d2e
1 /*
2 * Copyright (C) 2004 by the Massachusetts Institute of Technology,
3 * Cambridge, MA, USA. All Rights Reserved.
4 *
5 * This software is being provided to you, the LICENSEE, by the
6 * Massachusetts Institute of Technology (M.I.T.) under the following
7 * license. By obtaining, using and/or copying this software, you agree
8 * that you have read, understood, and will comply with these terms and
9 * conditions:
11 * Export of this software from the United States of America may
12 * require a specific license from the United States Government.
13 * It is the responsibility of any person or organization contemplating
14 * export to obtain such a license before exporting.
16 * WITHIN THAT CONSTRAINT, permission to use, copy, modify and distribute
17 * this software and its documentation for any purpose and without fee or
18 * royalty is hereby granted, provided that you agree to comply with the
19 * following copyright notice and statements, including the disclaimer, and
20 * that the same appear on ALL copies of the software and documentation,
21 * including modifications that you make for internal use or for
22 * distribution:
24 * THIS SOFTWARE IS PROVIDED "AS IS", AND M.I.T. MAKES NO REPRESENTATIONS
25 * OR WARRANTIES, EXPRESS OR IMPLIED. By way of example, but not
26 * limitation, M.I.T. MAKES NO REPRESENTATIONS OR WARRANTIES OF
27 * MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF
28 * THE LICENSED SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY
29 * PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
31 * The name of the Massachusetts Institute of Technology or M.I.T. may NOT
32 * be used in advertising or publicity pertaining to distribution of the
33 * software. Title to copyright in this software and any associated
34 * documentation shall at all times remain with M.I.T., and USER agrees to
35 * preserve same.
37 * Furthermore if you modify this software you must label
38 * your software as modified software and not distribute it in such a
39 * fashion that it might be confused with the original M.I.T. software.
42 /* Stuff that needs initialization for fake-addrinfo.c.
44 Separated out, so that static linking against this library doesn't
45 require pulling in socket/nsl/whatever libraries for code not using
46 getaddrinfo. */
48 #include "port-sockets.h"
49 #include "socket-utils.h"
50 #include "k5-platform.h"
51 #include "k5-thread.h"
53 #include <stdio.h> /* for sprintf */
54 #include <errno.h>
56 #define IMPLEMENT_FAKE_GETADDRINFO
57 #include "fake-addrinfo.h"
58 #include "cache-addrinfo.h"
60 struct fac krb5int_fac = { K5_MUTEX_PARTIAL_INITIALIZER, 0 };
62 int krb5int_init_fac (void)
64 return k5_mutex_finish_init(&krb5int_fac.lock);
67 void krb5int_fini_fac (void)
69 k5_mutex_destroy(&krb5int_fac.lock);