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