Annotation of embedaddon/ntp/libntp/lib_strbuf.c, revision 1.1
1.1 ! misho 1: /*
! 2: * lib_strbuf - library string storage
! 3: */
! 4: #ifdef HAVE_CONFIG_H
! 5: #include <config.h>
! 6: #endif
! 7:
! 8: #include <isc/net.h>
! 9: #include <isc/result.h>
! 10: #include "ntp_stdlib.h"
! 11: #include "lib_strbuf.h"
! 12:
! 13: /*
! 14: * Storage declarations
! 15: */
! 16: char lib_stringbuf[LIB_NUMBUFS][LIB_BUFLENGTH];
! 17: int lib_nextbuf;
! 18: int ipv4_works;
! 19: int ipv6_works;
! 20: int lib_inited = 0;
! 21:
! 22: /*
! 23: * initialization routine. Might be needed if the code is ROMized.
! 24: */
! 25: void
! 26: init_lib(void)
! 27: {
! 28: lib_nextbuf = 0;
! 29: ipv4_works = (ISC_R_SUCCESS == isc_net_probeipv4());
! 30: ipv6_works = (ISC_R_SUCCESS == isc_net_probeipv6());
! 31: lib_inited = 1;
! 32: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>