gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r3039 - in GNUnet/src/util: . cron cron/.deps


From: grothoff
Subject: [GNUnet-SVN] r3039 - in GNUnet/src/util: . cron cron/.deps
Date: Sat, 24 Jun 2006 14:17:10 -0700 (PDT)

Author: grothoff
Date: 2006-06-24 14:17:06 -0700 (Sat, 24 Jun 2006)
New Revision: 3039

Added:
   GNUnet/src/util/cron/
   GNUnet/src/util/cron/.deps/
   GNUnet/src/util/cron/.deps/crontest.Po
   GNUnet/src/util/cron/.deps/libgnunetutil_cron.Plo
   GNUnet/src/util/cron/Makefile
   GNUnet/src/util/cron/Makefile.am
   GNUnet/src/util/cron/Makefile.in
   GNUnet/src/util/cron/cron.c
   GNUnet/src/util/cron/crontest.c
   GNUnet/src/util/dump
Log:
syn

Added: GNUnet/src/util/cron/.deps/crontest.Po
===================================================================
--- GNUnet/src/util/cron/.deps/crontest.Po      2006-06-24 20:40:19 UTC (rev 
3038)
+++ GNUnet/src/util/cron/.deps/crontest.Po      2006-06-24 21:17:06 UTC (rev 
3039)
@@ -0,0 +1 @@
+# dummy

Added: GNUnet/src/util/cron/.deps/libgnunetutil_cron.Plo
===================================================================
--- GNUnet/src/util/cron/.deps/libgnunetutil_cron.Plo   2006-06-24 20:40:19 UTC 
(rev 3038)
+++ GNUnet/src/util/cron/.deps/libgnunetutil_cron.Plo   2006-06-24 21:17:06 UTC 
(rev 3039)
@@ -0,0 +1 @@
+# dummy

Added: GNUnet/src/util/cron/Makefile
===================================================================
--- GNUnet/src/util/cron/Makefile       2006-06-24 20:40:19 UTC (rev 3038)
+++ GNUnet/src/util/cron/Makefile       2006-06-24 21:17:06 UTC (rev 3039)
@@ -0,0 +1,724 @@
+# Makefile.in generated by automake 1.8.5 from Makefile.am.
+# src/util/cron/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004  Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+SOURCES = libgnunetutil_cron.c $(crontest_SOURCES)
+
+srcdir = .
+top_srcdir = ../../..
+
+pkgdatadir = $(datadir)/GNUnet
+pkglibdir = $(libdir)/GNUnet
+pkgincludedir = $(includedir)/GNUnet
+top_builddir = ../../..
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = /usr/bin/install -c
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+host_triplet = i686-pc-linux-gnu
+check_PROGRAMS = crontest$(EXEEXT)
+subdir = src/util/cron
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ac_define_dir.m4 \
+       $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
+       $(top_srcdir)/m4/guile.m4 $(top_srcdir)/m4/iconv.m4 \
+       $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
+       $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libgcrypt.m4 \
+       $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \
+       $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
+       $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+       $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+am__installdirs = "$(DESTDIR)$(libdir)"
+libLTLIBRARIES_INSTALL = $(INSTALL)
+LTLIBRARIES = $(lib_LTLIBRARIES)
+libgnunetutil_cron_la_LIBADD =
+libgnunetutil_cron_la_SOURCES = libgnunetutil_cron.c
+libgnunetutil_cron_la_OBJECTS = libgnunetutil_cron.lo
+am_crontest_OBJECTS = crontest.$(OBJEXT)
+crontest_OBJECTS = $(am_crontest_OBJECTS)
+crontest_DEPENDENCIES = $(top_builddir)/src/util/libgnunetutil.la
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+DEP_FILES = ./$(DEPDIR)/crontest.Po \
+       ./$(DEPDIR)/libgnunetutil_cron.Plo
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+       $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
+       $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+       $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+SOURCES = libgnunetutil_cron.c $(crontest_SOURCES)
+DIST_SOURCES = libgnunetutil_cron.c $(crontest_SOURCES)
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+       html-recursive info-recursive install-data-recursive \
+       install-exec-recursive install-info-recursive \
+       install-recursive installcheck-recursive installdirs-recursive \
+       pdf-recursive ps-recursive uninstall-info-recursive \
+       uninstall-recursive
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /home/grothoff/svn/GNUnet/missing --run aclocal-1.8
+AMDEP_FALSE = #
+AMDEP_TRUE = 
+AMTAR = ${SHELL} /home/grothoff/svn/GNUnet/missing --run tar
+AR = ar
+AS = as
+AUTOCONF = ${SHELL} /home/grothoff/svn/GNUnet/missing --run autoconf
+AUTOHEADER = ${SHELL} /home/grothoff/svn/GNUnet/missing --run autoheader
+AUTOMAKE = ${SHELL} /home/grothoff/svn/GNUnet/missing --run automake-1.8
+AWK = gawk
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -fno-strict-aliasing -Wall -g -Wall
+CONVENIENCE_LTDL_FALSE = 
+CONVENIENCE_LTDL_TRUE = #
+CPP = gcc -E
+CPPFLAGS = -I/home/grothoff/include 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+CYGWIN_FALSE = 
+CYGWIN_TRUE = #
+DATADIR = /home/grothoff/share/GNUnet/
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DLLTOOL = dlltool
+ECHO = echo
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = grep -E
+EXEEXT = 
+EXT_LIBS = 
+EXT_LIB_PATH = -L/home/grothoff/lib 
+F77 = 
+FFLAGS = 
+GMSGFMT = /usr/bin/msgfmt
+GNUNETGTK_CFLAGS = -DXTHREADS -I/usr/include/libglade-2.0 
-I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include 
-I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 
-I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
+GNUNETGTK_LIBS = -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lpthread -lz -lgdk-x11-2.0 
-latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0  
+GTK_CFLAGS = -DXTHREADS -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include 
-I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 
-I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
+GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm 
-lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl 
-lglib-2.0  
+GUILE = /usr/bin/guile
+GUILE_CONFIG = /usr/bin/guile-config
+GUILE_TOOLS = /usr/bin/guile-tools
+HAVE_CURSES_FALSE = #
+HAVE_CURSES_TRUE = 
+HAVE_GTK_FALSE = #
+HAVE_GTK_TRUE = 
+HAVE_GUILE_FALSE = #
+HAVE_GUILE_TRUE = 
+HAVE_IPV6_FALSE = #
+HAVE_IPV6_TRUE = 
+HAVE_MYSQL_FALSE = 
+HAVE_MYSQL_TRUE = #
+HAVE_PDCURSES_FALSE = 
+HAVE_PDCURSES_TRUE = #
+HAVE_SQLITE_FALSE = #
+HAVE_SQLITE_TRUE = 
+HAVE_ZLIB_FALSE = #
+HAVE_ZLIB_TRUE = 
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_LTDL_FALSE = 
+INSTALL_LTDL_TRUE = #
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
+INTLLIBS = 
+LDFLAGS = -L/home/grothoff/lib 
+LIBADD_DL = -ldl
+LIBGCRYPT_CFLAGS =   
+LIBGCRYPT_CONFIG = /usr/bin/libgcrypt-config
+LIBGCRYPT_LIBS =  -lgcrypt -lgpg-error
+LIBICONV = -liconv
+LIBINTL = 
+LIBLTDL = -lltdl
+LIBOBJS = 
+LIBS = -lm -lnsl -lpthread 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LN_S = ln -s
+LOCALEDIR = /home/grothoff/share/locale/
+LTDLINCL = 
+LTLIBICONV = -liconv
+LTLIBINTL = 
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /home/grothoff/svn/GNUnet/missing --run makeinfo
+MINGW_FALSE = 
+MINGW_TRUE = #
+MKINSTALLDIRS = $(top_builddir)/./mkinstalldirs
+MSGFMT = /usr/bin/msgfmt
+MSGMERGE = /usr/bin/msgmerge
+MYSQL_CPPFLAGS = 
+MYSQL_LDFLAGS = -L/usr/lib/mysql
+OBJDUMP = objdump
+OBJEXT = o
+PACKAGE = GNUnet
+PACKAGE_BUGREPORT = address@hidden
+PACKAGE_NAME = GNUnet
+PACKAGE_STRING = GNUnet 0.7.0e
+PACKAGE_TARNAME = gnunet
+PACKAGE_VERSION = 0.7.0e
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+POSUB = po
+RANLIB = ranlib
+SET_MAKE = 
+SHELL = /bin/sh
+SOLARIS_FALSE = 
+SOLARIS_TRUE = #
+SQLITE_CPPFLAGS = 
+SQLITE_LDFLAGS = 
+STRIP = strip
+USE_NLS = yes
+VERSION = 0.7.0e
+XFREEBSD_FALSE = 
+XFREEBSD_TRUE = #
+XGETTEXT = /usr/bin/xgettext
+ac_ct_AR = ar
+ac_ct_AS = 
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DLLTOOL = 
+ac_ct_F77 = 
+ac_ct_OBJDUMP = 
+ac_ct_RANLIB = ranlib
+ac_ct_STRIP = strip
+am__fastdepCC_FALSE = #
+am__fastdepCC_TRUE = 
+am__fastdepCXX_FALSE = #
+am__fastdepCXX_TRUE = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+bindir = ${exec_prefix}/bin
+build = i686-pc-linux-gnu
+build_alias = 
+build_cpu = i686
+build_os = linux-gnu
+build_vendor = pc
+datadir = ${prefix}/share
+exec_prefix = ${prefix}
+guile_available = /usr/bin/guile
+host = i686-pc-linux-gnu
+host_alias = 
+host_cpu = i686
+host_os = linux-gnu
+host_vendor = pc
+includedir = ${prefix}/include
+infodir = ${prefix}/info
+install_sh = /home/grothoff/svn/GNUnet/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localstatedir = ${prefix}/var
+mandir = ${prefix}/man
+mkdir_p = mkdir -p -- .
+oldincludedir = /usr/include
+prefix = /home/grothoff
+program_transform_name = s,x,x,
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+subdirs =  libltdl
+sysconfdir = ${prefix}/etc
+target_alias = 
+INCLUDES = -I$(top_srcdir)/src/include
+SUBDIRS = .
+lib_LTLIBRARIES = \
+  libgnunetutil_cron.la
+
+liblibgnunetutil_cron_la_SOURCES = \
+ cron.c
+
+TESTS = $(check_PROGRAMS)
+crontest_SOURCES = \
+ crontest.c
+
+crontest_LDADD = \
+ $(top_builddir)/src/util/libgnunetutil.la  
+
+all: all-recursive
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+       @for dep in $?; do \
+         case '$(am__configure_deps)' in \
+           *$$dep*) \
+             cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+               && exit 0; \
+             exit 1;; \
+         esac; \
+       done; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/util/cron/Makefile'; \
+       cd $(top_srcdir) && \
+         $(AUTOMAKE) --gnu  src/util/cron/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+       @case '$?' in \
+         *config.status*) \
+           cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+         *) \
+           echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ 
$(am__depfiles_maybe)'; \
+           cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ 
$(am__depfiles_maybe);; \
+       esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure 
$(CONFIG_STATUS_DEPENDENCIES)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
+       @$(NORMAL_INSTALL)
+       test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
+       @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+         if test -f $$p; then \
+           f="`echo $$p | sed -e 's|^.*/||'`"; \
+           echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) 
$(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
+           $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) 
$(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
+         else :; fi; \
+       done
+
+uninstall-libLTLIBRARIES:
+       @$(NORMAL_UNINSTALL)
+       @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+           p="`echo $$p | sed -e 's|^.*/||'`"; \
+         echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
+         $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
+       done
+
+clean-libLTLIBRARIES:
+       -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
+       @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+         dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+         test "$$dir" != "$$p" || dir=.; \
+         echo "rm -f \"$${dir}/so_locations\""; \
+         rm -f "$${dir}/so_locations"; \
+       done
+libgnunetutil_cron.la: $(libgnunetutil_cron_la_OBJECTS) 
$(libgnunetutil_cron_la_DEPENDENCIES) 
+       $(LINK) -rpath $(libdir) $(libgnunetutil_cron_la_LDFLAGS) 
$(libgnunetutil_cron_la_OBJECTS) $(libgnunetutil_cron_la_LIBADD) $(LIBS)
+
+clean-checkPROGRAMS:
+       @list='$(check_PROGRAMS)'; for p in $$list; do \
+         f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+         echo " rm -f $$p $$f"; \
+         rm -f $$p $$f ; \
+       done
+crontest$(EXEEXT): $(crontest_OBJECTS) $(crontest_DEPENDENCIES) 
+       @rm -f crontest$(EXEEXT)
+       $(LINK) $(crontest_LDFLAGS) $(crontest_OBJECTS) $(crontest_LDADD) 
$(LIBS)
+
+mostlyclean-compile:
+       -rm -f *.$(OBJEXT)
+
+distclean-compile:
+       -rm -f *.tab.c
+
+include ./$(DEPDIR)/crontest.Po
+include ./$(DEPDIR)/libgnunetutil_cron.Plo
+
+.c.o:
+       if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+       then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f 
"$(DEPDIR)/$*.Tpo"; exit 1; fi
+#      source='$<' object='$@' libtool=no \
+#      depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
+#      $(CCDEPMODE) $(depcomp) \
+#      $(COMPILE) -c $<
+
+.c.obj:
+       if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ 
`$(CYGPATH_W) '$<'`; \
+       then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f 
"$(DEPDIR)/$*.Tpo"; exit 1; fi
+#      source='$<' object='$@' libtool=no \
+#      depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
+#      $(CCDEPMODE) $(depcomp) \
+#      $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+       if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+       then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f 
"$(DEPDIR)/$*.Tpo"; exit 1; fi
+#      source='$<' object='$@' libtool=yes \
+#      depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' \
+#      $(CCDEPMODE) $(depcomp) \
+#      $(LTCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+       -rm -f *.lo
+
+clean-libtool:
+       -rm -rf .libs _libs
+
+distclean-libtool:
+       -rm -f libtool
+uninstall-info-am:
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+#     (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+       @set fnord $$MAKEFLAGS; amf=$$2; \
+       dot_seen=no; \
+       target=`echo $@ | sed s/-recursive//`; \
+       list='$(SUBDIRS)'; for subdir in $$list; do \
+         echo "Making $$target in $$subdir"; \
+         if test "$$subdir" = "."; then \
+           dot_seen=yes; \
+           local_target="$$target-am"; \
+         else \
+           local_target="$$target"; \
+         fi; \
+         (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+          || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+       done; \
+       if test "$$dot_seen" = "no"; then \
+         $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+       fi; test -z "$$fail"
+
+mostlyclean-recursive clean-recursive distclean-recursive \
+maintainer-clean-recursive:
+       @set fnord $$MAKEFLAGS; amf=$$2; \
+       dot_seen=no; \
+       case "$@" in \
+         distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+         *) list='$(SUBDIRS)' ;; \
+       esac; \
+       rev=''; for subdir in $$list; do \
+         if test "$$subdir" = "."; then :; else \
+           rev="$$subdir $$rev"; \
+         fi; \
+       done; \
+       rev="$$rev ."; \
+       target=`echo $@ | sed s/-recursive//`; \
+       for subdir in $$rev; do \
+         echo "Making $$target in $$subdir"; \
+         if test "$$subdir" = "."; then \
+           local_target="$$target-am"; \
+         else \
+           local_target="$$target"; \
+         fi; \
+         (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+          || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+       done && test -z "$$fail"
+tags-recursive:
+       list='$(SUBDIRS)'; for subdir in $$list; do \
+         test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); 
\
+       done
+ctags-recursive:
+       list='$(SUBDIRS)'; for subdir in $$list; do \
+         test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) 
ctags); \
+       done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+       list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+       unique=`for i in $$list; do \
+           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+         done | \
+         $(AWK) '    { files[$$0] = 1; } \
+              END { for (i in files) print i; }'`; \
+       mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+               $(TAGS_FILES) $(LISP)
+       tags=; \
+       here=`pwd`; \
+       if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+         include_option=--etags-include; \
+         empty_fix=.; \
+       else \
+         include_option=--include; \
+         empty_fix=; \
+       fi; \
+       list='$(SUBDIRS)'; for subdir in $$list; do \
+         if test "$$subdir" = .; then :; else \
+           test ! -f $$subdir/TAGS || \
+             tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
+         fi; \
+       done; \
+       list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+       unique=`for i in $$list; do \
+           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+         done | \
+         $(AWK) '    { files[$$0] = 1; } \
+              END { for (i in files) print i; }'`; \
+       if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+         test -n "$$unique" || unique=$$empty_fix; \
+         $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+           $$tags $$unique; \
+       fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+               $(TAGS_FILES) $(LISP)
+       tags=; \
+       here=`pwd`; \
+       list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+       unique=`for i in $$list; do \
+           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+         done | \
+         $(AWK) '    { files[$$0] = 1; } \
+              END { for (i in files) print i; }'`; \
+       test -z "$(CTAGS_ARGS)$$tags$$unique" \
+         || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+            $$tags $$unique
+
+GTAGS:
+       here=`$(am__cd) $(top_builddir) && pwd` \
+         && cd $(top_srcdir) \
+         && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+check-TESTS: $(TESTS)
+       @failed=0; all=0; xfail=0; xpass=0; skip=0; \
+       srcdir=$(srcdir); export srcdir; \
+       list='$(TESTS)'; \
+       if test -n "$$list"; then \
+         for tst in $$list; do \
+           if test -f ./$$tst; then dir=./; \
+           elif test -f $$tst; then dir=; \
+           else dir="$(srcdir)/"; fi; \
+           if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
+             all=`expr $$all + 1`; \
+             case " $(XFAIL_TESTS) " in \
+             *" $$tst "*) \
+               xpass=`expr $$xpass + 1`; \
+               failed=`expr $$failed + 1`; \
+               echo "XPASS: $$tst"; \
+             ;; \
+             *) \
+               echo "PASS: $$tst"; \
+             ;; \
+             esac; \
+           elif test $$? -ne 77; then \
+             all=`expr $$all + 1`; \
+             case " $(XFAIL_TESTS) " in \
+             *" $$tst "*) \
+               xfail=`expr $$xfail + 1`; \
+               echo "XFAIL: $$tst"; \
+             ;; \
+             *) \
+               failed=`expr $$failed + 1`; \
+               echo "FAIL: $$tst"; \
+             ;; \
+             esac; \
+           else \
+             skip=`expr $$skip + 1`; \
+             echo "SKIP: $$tst"; \
+           fi; \
+         done; \
+         if test "$$failed" -eq 0; then \
+           if test "$$xfail" -eq 0; then \
+             banner="All $$all tests passed"; \
+           else \
+             banner="All $$all tests behaved as expected ($$xfail expected 
failures)"; \
+           fi; \
+         else \
+           if test "$$xpass" -eq 0; then \
+             banner="$$failed of $$all tests failed"; \
+           else \
+             banner="$$failed of $$all tests did not behave as expected 
($$xpass unexpected passes)"; \
+           fi; \
+         fi; \
+         dashes="$$banner"; \
+         skipped=""; \
+         if test "$$skip" -ne 0; then \
+           skipped="($$skip tests were not run)"; \
+           test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
+             dashes="$$skipped"; \
+         fi; \
+         report=""; \
+         if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
+           report="Please report to $(PACKAGE_BUGREPORT)"; \
+           test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
+             dashes="$$report"; \
+         fi; \
+         dashes=`echo "$$dashes" | sed s/./=/g`; \
+         echo "$$dashes"; \
+         echo "$$banner"; \
+         test -z "$$skipped" || echo "$$skipped"; \
+         test -z "$$report" || echo "$$report"; \
+         echo "$$dashes"; \
+         test "$$failed" -eq 0; \
+       else :; fi
+
+distdir: $(DISTFILES)
+       @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+       list='$(DISTFILES)'; for file in $$list; do \
+         case $$file in \
+           $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+           $(top_srcdir)/*) file=`echo "$$file" | sed 
"s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+         esac; \
+         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+           dir="/$$dir"; \
+           $(mkdir_p) "$(distdir)$$dir"; \
+         else \
+           dir=''; \
+         fi; \
+         if test -d $$d/$$file; then \
+           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+             cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+           fi; \
+           cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+         else \
+           test -f $(distdir)/$$file \
+           || cp -p $$d/$$file $(distdir)/$$file \
+           || exit 1; \
+         fi; \
+       done
+       list='$(SUBDIRS)'; for subdir in $$list; do \
+         if test "$$subdir" = .; then :; else \
+           test -d "$(distdir)/$$subdir" \
+           || mkdir "$(distdir)/$$subdir" \
+           || exit 1; \
+           (cd $$subdir && \
+             $(MAKE) $(AM_MAKEFLAGS) \
+               top_distdir="../$(top_distdir)" \
+               distdir="../$(distdir)/$$subdir" \
+               distdir) \
+             || exit 1; \
+         fi; \
+       done
+check-am: all-am
+       $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
+       $(MAKE) $(AM_MAKEFLAGS) check-TESTS
+check: check-recursive
+all-am: Makefile $(LTLIBRARIES)
+installdirs: installdirs-recursive
+installdirs-am:
+       for dir in "$(DESTDIR)$(libdir)"; do \
+         test -z "$$dir" || $(mkdir_p) "$$dir"; \
+       done
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+       $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+         install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+         `test -z '$(STRIP)' || \
+           echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+       -rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-checkPROGRAMS clean-generic clean-libLTLIBRARIES \
+       clean-libtool mostlyclean-am
+
+distclean: distclean-recursive
+       -rm -rf ./$(DEPDIR)
+       -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+       distclean-libtool distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-exec-am: install-libLTLIBRARIES
+
+install-info: install-info-recursive
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+       -rm -rf ./$(DEPDIR)
+       -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+       mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
+
+uninstall-info: uninstall-info-recursive
+
+.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-TESTS \
+       check-am clean clean-checkPROGRAMS clean-generic \
+       clean-libLTLIBRARIES clean-libtool clean-recursive ctags \
+       ctags-recursive distclean distclean-compile distclean-generic \
+       distclean-libtool distclean-recursive distclean-tags distdir \
+       dvi dvi-am html html-am info info-am install install-am \
+       install-data install-data-am install-exec install-exec-am \
+       install-info install-info-am install-libLTLIBRARIES \
+       install-man install-strip installcheck installcheck-am \
+       installdirs installdirs-am maintainer-clean \
+       maintainer-clean-generic maintainer-clean-recursive \
+       mostlyclean mostlyclean-compile mostlyclean-generic \
+       mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
+       tags tags-recursive uninstall uninstall-am uninstall-info-am \
+       uninstall-libLTLIBRARIES
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:

Added: GNUnet/src/util/cron/Makefile.am
===================================================================
--- GNUnet/src/util/cron/Makefile.am    2006-06-24 20:40:19 UTC (rev 3038)
+++ GNUnet/src/util/cron/Makefile.am    2006-06-24 21:17:06 UTC (rev 3039)
@@ -0,0 +1,20 @@
+INCLUDES = -I$(top_srcdir)/src/include
+
+SUBDIRS = .
+
+lib_LTLIBRARIES = \
+  libgnunetutil_cron.la
+
+libgnunetutil_cron_la_SOURCES = \
+ cron.c
+
+check_PROGRAMS = \
+ crontest
+
+TESTS = $(check_PROGRAMS)
+
+crontest_SOURCES = \
+ crontest.c
+crontest_LDADD = \
+ $(top_builddir)/src/util/libgnunetutil.la  
+

Added: GNUnet/src/util/cron/Makefile.in
===================================================================
--- GNUnet/src/util/cron/Makefile.in    2006-06-24 20:40:19 UTC (rev 3038)
+++ GNUnet/src/util/cron/Makefile.in    2006-06-24 21:17:06 UTC (rev 3039)
@@ -0,0 +1,724 @@
+# Makefile.in generated by automake 1.8.5 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004  Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
address@hidden@
+
+SOURCES = libgnunetutil_cron.c $(crontest_SOURCES)
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ../../..
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = @INSTALL@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+host_triplet = @host@
+check_PROGRAMS = crontest$(EXEEXT)
+subdir = src/util/cron
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ac_define_dir.m4 \
+       $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
+       $(top_srcdir)/m4/guile.m4 $(top_srcdir)/m4/iconv.m4 \
+       $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
+       $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libgcrypt.m4 \
+       $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \
+       $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
+       $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+       $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+am__installdirs = "$(DESTDIR)$(libdir)"
+libLTLIBRARIES_INSTALL = $(INSTALL)
+LTLIBRARIES = $(lib_LTLIBRARIES)
+libgnunetutil_cron_la_LIBADD =
+libgnunetutil_cron_la_SOURCES = libgnunetutil_cron.c
+libgnunetutil_cron_la_OBJECTS = libgnunetutil_cron.lo
+am_crontest_OBJECTS = crontest.$(OBJEXT)
+crontest_OBJECTS = $(am_crontest_OBJECTS)
+crontest_DEPENDENCIES = $(top_builddir)/src/util/libgnunetutil.la
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
address@hidden@DEP_FILES = ./$(DEPDIR)/crontest.Po \
address@hidden@ ./$(DEPDIR)/libgnunetutil_cron.Plo
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+       $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
+       $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+       $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+SOURCES = libgnunetutil_cron.c $(crontest_SOURCES)
+DIST_SOURCES = libgnunetutil_cron.c $(crontest_SOURCES)
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+       html-recursive info-recursive install-data-recursive \
+       install-exec-recursive install-info-recursive \
+       install-recursive installcheck-recursive installdirs-recursive \
+       pdf-recursive ps-recursive uninstall-info-recursive \
+       uninstall-recursive
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CONVENIENCE_LTDL_FALSE = @CONVENIENCE_LTDL_FALSE@
+CONVENIENCE_LTDL_TRUE = @CONVENIENCE_LTDL_TRUE@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+CYGWIN_FALSE = @CYGWIN_FALSE@
+CYGWIN_TRUE = @CYGWIN_TRUE@
+DATADIR = @DATADIR@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+EXT_LIBS = @EXT_LIBS@
+EXT_LIB_PATH = @EXT_LIB_PATH@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+GMSGFMT = @GMSGFMT@
+GNUNETGTK_CFLAGS = @GNUNETGTK_CFLAGS@
+GNUNETGTK_LIBS = @GNUNETGTK_LIBS@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+GUILE = @GUILE@
+GUILE_CONFIG = @GUILE_CONFIG@
+GUILE_TOOLS = @GUILE_TOOLS@
+HAVE_CURSES_FALSE = @HAVE_CURSES_FALSE@
+HAVE_CURSES_TRUE = @HAVE_CURSES_TRUE@
+HAVE_GTK_FALSE = @HAVE_GTK_FALSE@
+HAVE_GTK_TRUE = @HAVE_GTK_TRUE@
+HAVE_GUILE_FALSE = @HAVE_GUILE_FALSE@
+HAVE_GUILE_TRUE = @HAVE_GUILE_TRUE@
+HAVE_IPV6_FALSE = @HAVE_IPV6_FALSE@
+HAVE_IPV6_TRUE = @HAVE_IPV6_TRUE@
+HAVE_MYSQL_FALSE = @HAVE_MYSQL_FALSE@
+HAVE_MYSQL_TRUE = @HAVE_MYSQL_TRUE@
+HAVE_PDCURSES_FALSE = @HAVE_PDCURSES_FALSE@
+HAVE_PDCURSES_TRUE = @HAVE_PDCURSES_TRUE@
+HAVE_SQLITE_FALSE = @HAVE_SQLITE_FALSE@
+HAVE_SQLITE_TRUE = @HAVE_SQLITE_TRUE@
+HAVE_ZLIB_FALSE = @HAVE_ZLIB_FALSE@
+HAVE_ZLIB_TRUE = @HAVE_ZLIB_TRUE@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_LTDL_FALSE = @INSTALL_LTDL_FALSE@
+INSTALL_LTDL_TRUE = @INSTALL_LTDL_TRUE@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBADD_DL = @LIBADD_DL@
+LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@
+LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@
+LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBLTDL = @LIBLTDL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LOCALEDIR = @LOCALEDIR@
+LTDLINCL = @LTDLINCL@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MINGW_FALSE = @MINGW_FALSE@
+MINGW_TRUE = @MINGW_TRUE@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+MYSQL_CPPFLAGS = @MYSQL_CPPFLAGS@
+MYSQL_LDFLAGS = @MYSQL_LDFLAGS@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SOLARIS_FALSE = @SOLARIS_FALSE@
+SOLARIS_TRUE = @SOLARIS_TRUE@
+SQLITE_CPPFLAGS = @SQLITE_CPPFLAGS@
+SQLITE_LDFLAGS = @SQLITE_LDFLAGS@
+STRIP = @STRIP@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XFREEBSD_FALSE = @XFREEBSD_FALSE@
+XFREEBSD_TRUE = @XFREEBSD_TRUE@
+XGETTEXT = @XGETTEXT@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_AS = @ac_ct_AS@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DLLTOOL = @ac_ct_DLLTOOL@
+ac_ct_F77 = @ac_ct_F77@
+ac_ct_OBJDUMP = @ac_ct_OBJDUMP@
+ac_ct_RANLIB = @ac_ct_RANLIB@
+ac_ct_STRIP = @ac_ct_STRIP@
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = @datadir@
+exec_prefix = @exec_prefix@
+guile_available = @guile_available@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+INCLUDES = -I$(top_srcdir)/src/include
+SUBDIRS = .
+lib_LTLIBRARIES = \
+  libgnunetutil_cron.la
+
+liblibgnunetutil_cron_la_SOURCES = \
+ cron.c
+
+TESTS = $(check_PROGRAMS)
+crontest_SOURCES = \
+ crontest.c
+
+crontest_LDADD = \
+ $(top_builddir)/src/util/libgnunetutil.la  
+
+all: all-recursive
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+       @for dep in $?; do \
+         case '$(am__configure_deps)' in \
+           *$$dep*) \
+             cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+               && exit 0; \
+             exit 1;; \
+         esac; \
+       done; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/util/cron/Makefile'; \
+       cd $(top_srcdir) && \
+         $(AUTOMAKE) --gnu  src/util/cron/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+       @case '$?' in \
+         *config.status*) \
+           cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+         *) \
+           echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ 
$(am__depfiles_maybe)'; \
+           cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ 
$(am__depfiles_maybe);; \
+       esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure 
$(CONFIG_STATUS_DEPENDENCIES)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
+       @$(NORMAL_INSTALL)
+       test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
+       @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+         if test -f $$p; then \
+           f="`echo $$p | sed -e 's|^.*/||'`"; \
+           echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) 
$(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
+           $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) 
$(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
+         else :; fi; \
+       done
+
+uninstall-libLTLIBRARIES:
+       @$(NORMAL_UNINSTALL)
+       @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+           p="`echo $$p | sed -e 's|^.*/||'`"; \
+         echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
+         $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
+       done
+
+clean-libLTLIBRARIES:
+       -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
+       @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+         dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+         test "$$dir" != "$$p" || dir=.; \
+         echo "rm -f \"$${dir}/so_locations\""; \
+         rm -f "$${dir}/so_locations"; \
+       done
+libgnunetutil_cron.la: $(libgnunetutil_cron_la_OBJECTS) 
$(libgnunetutil_cron_la_DEPENDENCIES) 
+       $(LINK) -rpath $(libdir) $(libgnunetutil_cron_la_LDFLAGS) 
$(libgnunetutil_cron_la_OBJECTS) $(libgnunetutil_cron_la_LIBADD) $(LIBS)
+
+clean-checkPROGRAMS:
+       @list='$(check_PROGRAMS)'; for p in $$list; do \
+         f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+         echo " rm -f $$p $$f"; \
+         rm -f $$p $$f ; \
+       done
+crontest$(EXEEXT): $(crontest_OBJECTS) $(crontest_DEPENDENCIES) 
+       @rm -f crontest$(EXEEXT)
+       $(LINK) $(crontest_LDFLAGS) $(crontest_OBJECTS) $(crontest_LDADD) 
$(LIBS)
+
+mostlyclean-compile:
+       -rm -f *.$(OBJEXT)
+
+distclean-compile:
+       -rm -f *.tab.c
+
address@hidden@@am__include@ @address@hidden/$(DEPDIR)/address@hidden@
address@hidden@@am__include@ @address@hidden/$(DEPDIR)/address@hidden@
+
+.c.o:
address@hidden@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ 
$<; \
address@hidden@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f 
"$(DEPDIR)/$*.Tpo"; exit 1; fi
address@hidden@@am__fastdepCC_FALSE@    source='$<' object='$@' libtool=no 
@AMDEPBACKSLASH@
address@hidden@@am__fastdepCC_FALSE@    depfile='$(DEPDIR)/$*.Po' 
tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
address@hidden@@am__fastdepCC_FALSE@    $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
address@hidden@ $(COMPILE) -c $<
+
+.c.obj:
address@hidden@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ 
`$(CYGPATH_W) '$<'`; \
address@hidden@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f 
"$(DEPDIR)/$*.Tpo"; exit 1; fi
address@hidden@@am__fastdepCC_FALSE@    source='$<' object='$@' libtool=no 
@AMDEPBACKSLASH@
address@hidden@@am__fastdepCC_FALSE@    depfile='$(DEPDIR)/$*.Po' 
tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
address@hidden@@am__fastdepCC_FALSE@    $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
address@hidden@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
address@hidden@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ 
$<; \
address@hidden@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f 
"$(DEPDIR)/$*.Tpo"; exit 1; fi
address@hidden@@am__fastdepCC_FALSE@    source='$<' object='$@' libtool=yes 
@AMDEPBACKSLASH@
address@hidden@@am__fastdepCC_FALSE@    depfile='$(DEPDIR)/$*.Plo' 
tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
address@hidden@@am__fastdepCC_FALSE@    $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
address@hidden@ $(LTCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+       -rm -f *.lo
+
+clean-libtool:
+       -rm -rf .libs _libs
+
+distclean-libtool:
+       -rm -f libtool
+uninstall-info-am:
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+#     (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+       @set fnord $$MAKEFLAGS; amf=$$2; \
+       dot_seen=no; \
+       target=`echo $@ | sed s/-recursive//`; \
+       list='$(SUBDIRS)'; for subdir in $$list; do \
+         echo "Making $$target in $$subdir"; \
+         if test "$$subdir" = "."; then \
+           dot_seen=yes; \
+           local_target="$$target-am"; \
+         else \
+           local_target="$$target"; \
+         fi; \
+         (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+          || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+       done; \
+       if test "$$dot_seen" = "no"; then \
+         $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+       fi; test -z "$$fail"
+
+mostlyclean-recursive clean-recursive distclean-recursive \
+maintainer-clean-recursive:
+       @set fnord $$MAKEFLAGS; amf=$$2; \
+       dot_seen=no; \
+       case "$@" in \
+         distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+         *) list='$(SUBDIRS)' ;; \
+       esac; \
+       rev=''; for subdir in $$list; do \
+         if test "$$subdir" = "."; then :; else \
+           rev="$$subdir $$rev"; \
+         fi; \
+       done; \
+       rev="$$rev ."; \
+       target=`echo $@ | sed s/-recursive//`; \
+       for subdir in $$rev; do \
+         echo "Making $$target in $$subdir"; \
+         if test "$$subdir" = "."; then \
+           local_target="$$target-am"; \
+         else \
+           local_target="$$target"; \
+         fi; \
+         (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+          || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+       done && test -z "$$fail"
+tags-recursive:
+       list='$(SUBDIRS)'; for subdir in $$list; do \
+         test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); 
\
+       done
+ctags-recursive:
+       list='$(SUBDIRS)'; for subdir in $$list; do \
+         test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) 
ctags); \
+       done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+       list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+       unique=`for i in $$list; do \
+           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+         done | \
+         $(AWK) '    { files[$$0] = 1; } \
+              END { for (i in files) print i; }'`; \
+       mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+               $(TAGS_FILES) $(LISP)
+       tags=; \
+       here=`pwd`; \
+       if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+         include_option=--etags-include; \
+         empty_fix=.; \
+       else \
+         include_option=--include; \
+         empty_fix=; \
+       fi; \
+       list='$(SUBDIRS)'; for subdir in $$list; do \
+         if test "$$subdir" = .; then :; else \
+           test ! -f $$subdir/TAGS || \
+             tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
+         fi; \
+       done; \
+       list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+       unique=`for i in $$list; do \
+           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+         done | \
+         $(AWK) '    { files[$$0] = 1; } \
+              END { for (i in files) print i; }'`; \
+       if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+         test -n "$$unique" || unique=$$empty_fix; \
+         $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+           $$tags $$unique; \
+       fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+               $(TAGS_FILES) $(LISP)
+       tags=; \
+       here=`pwd`; \
+       list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+       unique=`for i in $$list; do \
+           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+         done | \
+         $(AWK) '    { files[$$0] = 1; } \
+              END { for (i in files) print i; }'`; \
+       test -z "$(CTAGS_ARGS)$$tags$$unique" \
+         || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+            $$tags $$unique
+
+GTAGS:
+       here=`$(am__cd) $(top_builddir) && pwd` \
+         && cd $(top_srcdir) \
+         && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+check-TESTS: $(TESTS)
+       @failed=0; all=0; xfail=0; xpass=0; skip=0; \
+       srcdir=$(srcdir); export srcdir; \
+       list='$(TESTS)'; \
+       if test -n "$$list"; then \
+         for tst in $$list; do \
+           if test -f ./$$tst; then dir=./; \
+           elif test -f $$tst; then dir=; \
+           else dir="$(srcdir)/"; fi; \
+           if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
+             all=`expr $$all + 1`; \
+             case " $(XFAIL_TESTS) " in \
+             *" $$tst "*) \
+               xpass=`expr $$xpass + 1`; \
+               failed=`expr $$failed + 1`; \
+               echo "XPASS: $$tst"; \
+             ;; \
+             *) \
+               echo "PASS: $$tst"; \
+             ;; \
+             esac; \
+           elif test $$? -ne 77; then \
+             all=`expr $$all + 1`; \
+             case " $(XFAIL_TESTS) " in \
+             *" $$tst "*) \
+               xfail=`expr $$xfail + 1`; \
+               echo "XFAIL: $$tst"; \
+             ;; \
+             *) \
+               failed=`expr $$failed + 1`; \
+               echo "FAIL: $$tst"; \
+             ;; \
+             esac; \
+           else \
+             skip=`expr $$skip + 1`; \
+             echo "SKIP: $$tst"; \
+           fi; \
+         done; \
+         if test "$$failed" -eq 0; then \
+           if test "$$xfail" -eq 0; then \
+             banner="All $$all tests passed"; \
+           else \
+             banner="All $$all tests behaved as expected ($$xfail expected 
failures)"; \
+           fi; \
+         else \
+           if test "$$xpass" -eq 0; then \
+             banner="$$failed of $$all tests failed"; \
+           else \
+             banner="$$failed of $$all tests did not behave as expected 
($$xpass unexpected passes)"; \
+           fi; \
+         fi; \
+         dashes="$$banner"; \
+         skipped=""; \
+         if test "$$skip" -ne 0; then \
+           skipped="($$skip tests were not run)"; \
+           test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
+             dashes="$$skipped"; \
+         fi; \
+         report=""; \
+         if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
+           report="Please report to $(PACKAGE_BUGREPORT)"; \
+           test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
+             dashes="$$report"; \
+         fi; \
+         dashes=`echo "$$dashes" | sed s/./=/g`; \
+         echo "$$dashes"; \
+         echo "$$banner"; \
+         test -z "$$skipped" || echo "$$skipped"; \
+         test -z "$$report" || echo "$$report"; \
+         echo "$$dashes"; \
+         test "$$failed" -eq 0; \
+       else :; fi
+
+distdir: $(DISTFILES)
+       @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+       list='$(DISTFILES)'; for file in $$list; do \
+         case $$file in \
+           $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+           $(top_srcdir)/*) file=`echo "$$file" | sed 
"s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+         esac; \
+         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+           dir="/$$dir"; \
+           $(mkdir_p) "$(distdir)$$dir"; \
+         else \
+           dir=''; \
+         fi; \
+         if test -d $$d/$$file; then \
+           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+             cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+           fi; \
+           cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+         else \
+           test -f $(distdir)/$$file \
+           || cp -p $$d/$$file $(distdir)/$$file \
+           || exit 1; \
+         fi; \
+       done
+       list='$(SUBDIRS)'; for subdir in $$list; do \
+         if test "$$subdir" = .; then :; else \
+           test -d "$(distdir)/$$subdir" \
+           || mkdir "$(distdir)/$$subdir" \
+           || exit 1; \
+           (cd $$subdir && \
+             $(MAKE) $(AM_MAKEFLAGS) \
+               top_distdir="../$(top_distdir)" \
+               distdir="../$(distdir)/$$subdir" \
+               distdir) \
+             || exit 1; \
+         fi; \
+       done
+check-am: all-am
+       $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
+       $(MAKE) $(AM_MAKEFLAGS) check-TESTS
+check: check-recursive
+all-am: Makefile $(LTLIBRARIES)
+installdirs: installdirs-recursive
+installdirs-am:
+       for dir in "$(DESTDIR)$(libdir)"; do \
+         test -z "$$dir" || $(mkdir_p) "$$dir"; \
+       done
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+       $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+         install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+         `test -z '$(STRIP)' || \
+           echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+       -rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-checkPROGRAMS clean-generic clean-libLTLIBRARIES \
+       clean-libtool mostlyclean-am
+
+distclean: distclean-recursive
+       -rm -rf ./$(DEPDIR)
+       -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+       distclean-libtool distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-exec-am: install-libLTLIBRARIES
+
+install-info: install-info-recursive
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+       -rm -rf ./$(DEPDIR)
+       -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+       mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
+
+uninstall-info: uninstall-info-recursive
+
+.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-TESTS \
+       check-am clean clean-checkPROGRAMS clean-generic \
+       clean-libLTLIBRARIES clean-libtool clean-recursive ctags \
+       ctags-recursive distclean distclean-compile distclean-generic \
+       distclean-libtool distclean-recursive distclean-tags distdir \
+       dvi dvi-am html html-am info info-am install install-am \
+       install-data install-data-am install-exec install-exec-am \
+       install-info install-info-am install-libLTLIBRARIES \
+       install-man install-strip installcheck installcheck-am \
+       installdirs installdirs-am maintainer-clean \
+       maintainer-clean-generic maintainer-clean-recursive \
+       mostlyclean mostlyclean-compile mostlyclean-generic \
+       mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
+       tags tags-recursive uninstall uninstall-am uninstall-info-am \
+       uninstall-libLTLIBRARIES
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:

Added: GNUnet/src/util/cron/cron.c
===================================================================
--- GNUnet/src/util/cron/cron.c 2006-06-24 20:40:19 UTC (rev 3038)
+++ GNUnet/src/util/cron/cron.c 2006-06-24 21:17:06 UTC (rev 3039)
@@ -0,0 +1,716 @@
+/*
+     This file is part of GNUnet.
+     (C) 2001, 2002, 2003, 2004, 2005, 2006 Christian Grothoff (and other 
contributing authors)
+
+     GNUnet is free software; you can redistribute it and/or modify
+     it under the terms of the GNU General Public License as published
+     by the Free Software Foundation; either version 2, or (at your
+     option) any later version.
+
+     GNUnet is distributed in the hope that it will be useful, but
+     WITHOUT ANY WARRANTY; without even the implied warranty of
+     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+     General Public License for more details.
+
+     You should have received a copy of the GNU General Public License
+     along with GNUnet; see the file COPYING.  If not, write to the
+     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+     Boston, MA 02111-1307, USA.
+*/
+
+/**
+ * @file util/pthreads/cron.c
+ * @author Christian Grothoff
+ * @brief Module for periodic background (cron) jobs.
+ *
+ * The module only uses one thread, thus every cron-job must be
+ * short-lived, should never block for an indefinite amount of
+ * time. Specified deadlines are only a guide-line, the 10ms
+ * timer-resolution is only an upper-bound on the possible precision,
+ * in practice it will be worse (depending on the other cron-jobs).
+ *
+ * If you need to schedule a long-running or blocking cron-job,
+ * run a function that will start another thread that will
+ * then run the actual job.
+ */
+
+#include "gnunet_util.h"
+#include "platform.h"
+
+#define DEBUG_CRON NO
+
+#if DEBUG_CRON
+#define HAVE_PRINT_CRON_TAB 1
+#else
+#define HAVE_PRINT_CRON_TAB 0
+#endif
+
+/**
+ * The initial size of the cron-job table
+ */
+#define INIT_CRON_JOBS 16
+
+/**
+ * how long do we sleep at most? In some systems, the
+ * signal-interrupted sleep does not work nicely, so to ensure
+ * progress, we should rather wake up periodically. (But we don't want
+ * to burn too much CPU time doing busy waiting; every 2s strikes a
+ * good balance)
+ */
+#define MAXSLEEP 2000
+
+#define CHECK_ASSERTS 1
+
+/**
+ * The Delta-list for the cron jobs.
+ */
+typedef struct {
+  /** The start-time for this event (in milliseconds). */
+  cron_t delta;
+  /** The method to call at that point. */
+  CronJob method;
+  /** for cron-jobs: when this should be repeated
+      automatically, 0 if this was a once-only job */
+  unsigned int deltaRepeat;
+  /** The index of the next entry in the delta list
+      after this one */
+  int next;
+  /** data ptr (argument to the method) */
+  void * data;
+} UTIL_cron_DeltaListEntry;
+
+/**
+ * The delta-list of waiting tasks.
+ */
+static UTIL_cron_DeltaListEntry * deltaList_;
+
+/**
+ * The current size of the DeltaList.
+ */
+static unsigned int deltaListSize_;
+
+/**
+ * The lock for the delta-list.
+ */
+static Mutex deltaListLock_;
+
+/**
+ * The currently running job.
+ */
+static CronJob runningJob_;
+static unsigned int runningRepeat_;
+static void * runningData_;
+
+/**
+ * The first empty slot in the delta-list.
+ */
+static int firstFree_;
+
+/**
+ * The first empty slot in the delta-list.
+ */
+static int firstUsed_;
+
+/**
+ * The cron thread.
+ */
+static int cron_shutdown = YES;
+static Semaphore * cron_signal = NULL;
+static Semaphore * cron_signal_up = NULL;
+
+static PTHREAD_T cron_handle;
+
+
+static Mutex inBlockLock_;
+
+
+/* change this value to artificially speed up all
+   GNUnet cron timers by this factor. E.g. with 10,
+   a cron-job scheduled after 1 minute in the code
+   will occur after 6 seconds. This is useful for
+   testing bugs that would otherwise occur only after
+   a long time.
+
+   For releases, this value should always be 1 */
+#define SPEED_UP 1
+
+/** number of cron units (ms) in a second */
+#define CRON_UNIT_TO_SECONDS (1000 / SPEED_UP)
+
+/** number of us [usec] in a cron-unit (1000) */
+#define MICROSEC_TO_CRON_UNIT (1000 * SPEED_UP)
+
+
+
+
+/**
+ * Initialize the cron service.
+ */
+void initCron() {
+  unsigned int i;
+#ifndef MINGW
+  static struct sigaction sig;
+  static struct sigaction old;
+#endif
+
+  deltaListSize_ = INIT_CRON_JOBS;
+  deltaList_
+    = MALLOC(sizeof(UTIL_cron_DeltaListEntry) * deltaListSize_);
+  for (i=0;i<deltaListSize_;i++)
+    deltaList_[i].next = i-1;
+  firstFree_ = deltaListSize_-1;
+  MUTEX_CREATE_RECURSIVE(&deltaListLock_);
+  MUTEX_CREATE(&inBlockLock_);
+  runningJob_ = NULL;
+  firstUsed_  = -1;
+  /* SA_NODEFER == SA_NOMASK but is available on linux */
+
+  cron_signal_up = SEMAPHORE_NEW(0);
+}
+
+static void noJob(void * unused) {
+#if DEBUG_CRON
+  GE_LOG(NULL,
+        GE_STATUS | GE_DEVELOPER | GE_BULK,
+        "In noJob.\n");
+#endif
+}
+
+/**
+ * Stop the cron service.
+ */
+void stopCron() {
+  void * unused;
+
+#if DEBUG_CRON
+  GE_LOG(NULL,
+        GE_STATUS | GE_DEVELOPER | GE_BULK,
+        "Stopping cron\n");
+#endif
+  cron_shutdown = YES;
+  addCronJob(&noJob, 0, 0, NULL);
+  SEMAPHORE_DOWN(cron_signal);
+  SEMAPHORE_FREE(cron_signal);
+  cron_signal = NULL;
+  PTHREAD_JOIN(&cron_handle, &unused);
+#if DEBUG_CRON
+  GE_LOG(NULL,
+        GE_STATUS | GE_DEVELOPER | GE_BULK,
+        "Cron stopped\n");
+#endif
+}
+
+static int inBlock = 0;
+
+/**
+ * CronJob to suspend the cron thread
+ * until it is resumed.
+ */
+static void block(void * sem) {
+  Semaphore * sig = sem;
+  int ok = SYSERR;
+
+  if (sig != NULL)
+    SEMAPHORE_UP(sig);
+  while (ok == SYSERR) {
+    SEMAPHORE_DOWN(cron_signal_up);
+    MUTEX_LOCK(&inBlockLock_);
+    inBlock--;
+    if (inBlock == 0)
+      ok = OK;
+    MUTEX_UNLOCK(&inBlockLock_);
+  }
+}
+                               
+/**
+ * Stop running cron-jobs for a short time.  This method may only be
+ * called by a thread that is not holding any locks (otherwise
+ * there is the danger of a deadlock).
+ */
+void suspendCron() {
+  Semaphore * blockSignal;
+
+  GE_ASSERT(NULL, cron_shutdown == NO);
+  GE_ASSERT(NULL, NO == PTHREAD_SELF_TEST(&cron_handle));
+  MUTEX_LOCK(&inBlockLock_);
+  inBlock++;
+  if (inBlock == 1) {
+    blockSignal = SEMAPHORE_NEW(0);
+    addCronJob(&block,
+              0,
+              0,
+              blockSignal);
+    SEMAPHORE_DOWN(blockSignal);
+    SEMAPHORE_FREE(blockSignal);
+  }
+  MUTEX_UNLOCK(&inBlockLock_);
+}
+
+int isCronRunning() {
+  if ( (NO == cron_shutdown) || (inBlock > 0) )
+    return YES;
+  else
+    return NO;
+}
+
+/**
+ * Resume running cron-jobs.
+ */
+void resumeCron() {
+  GE_ASSERT(NULL, inBlock > 0);
+  SEMAPHORE_UP(cron_signal_up);
+}
+
+void suspendIfNotCron() {
+  if (NO == PTHREAD_SELF_TEST(&cron_handle))
+    suspendCron();
+}
+
+void resumeIfNotCron() {
+  if (NO == PTHREAD_SELF_TEST(&cron_handle))
+    resumeCron();
+}
+
+static void abortSleep() {
+  if (cron_signal == NULL)
+    return; /* cron_handle not valid */
+  PTHREAD_KILL(&cron_handle, SIGALRM);
+}
+
+
+#if HAVE_PRINT_CRON_TAB
+/**
+ * Print the cron-tab.
+ */
+void printCronTab() {
+  int jobId;
+  UTIL_cron_DeltaListEntry * tab;
+  cron_t now;
+
+  cronTime(&now);
+  MUTEX_LOCK(&deltaListLock_);
+
+  jobId = firstUsed_;
+  while (jobId != -1) {
+    tab = &deltaList_[jobId];
+    GE_LOG(NULL,
+          GE_STATUS | GE_DEVELOPER | GE_BULK,
+          "%3u: delta %8lld CU --- method %p --- repeat %8u CU\n",
+          jobId,
+          tab->delta - now,
+          (int)tab->method,
+          tab->deltaRepeat);
+    jobId = tab->next;
+  }
+  MUTEX_UNLOCK(&deltaListLock_);
+}
+#endif
+
+
+/**
+ * If the specified cron-job exists in th delta-list, move it to the
+ * head of the list.  If it is running, do nothing.  If it is does not
+ * exist and is not running, add it to the list to run it next.
+ *
+ * @param method which method should we run
+ * @param deltaRepeat if this is a periodic, the time between
+ *        the runs, otherwise 0.
+ * @param data extra argument to calls to method, freed if
+ *        non-null and cron is shutdown before the job is
+ *        run and/or delCronJob is called
+ */
+void advanceCronJob(CronJob method,
+                   unsigned int deltaRepeat,
+                   void * data) {
+  UTIL_cron_DeltaListEntry * job;
+  UTIL_cron_DeltaListEntry * last;
+  int jobId;
+
+#if DEBUG_CRON
+  GE_LOG(NULL,
+        GE_STATUS | GE_DEVELOPER | GE_BULK,
+        "Advancing job %p-%p\n",
+        method,
+        data);
+#endif
+  MUTEX_LOCK(&deltaListLock_);
+  jobId = firstUsed_;
+  if (jobId == -1) {
+    /* not in queue; add if not running */
+    if ( (method != runningJob_) ||
+         (data != runningData_) ||
+        (deltaRepeat != runningRepeat_) ) {
+      GE_LOG(NULL,
+            GE_ERROR | GE_USER | GE_DEVELOPER | GE_BULK,
+            _("`%s' called with cron job not in queue, adding.  This may not 
be what you want.\n"),
+            __FUNCTION__);
+      addCronJob(method,
+                0,
+                deltaRepeat,
+                data);
+    }
+    MUTEX_UNLOCK(&deltaListLock_);
+    return;
+  }
+  last = NULL;
+  job = &deltaList_[jobId];
+  while ( (job->method != method) ||
+         (job->data != data) ||
+         (job->deltaRepeat != deltaRepeat) ) {
+    last = job;
+    if (job->next == -1) {
+      /* not in queue; add if not running */
+      if ( (method != runningJob_) ||
+          (data != runningData_) ||
+          (deltaRepeat != runningRepeat_) ) {
+       addCronJob(method,
+                  0,
+                  deltaRepeat,
+                  data);
+      }
+      MUTEX_UNLOCK(&deltaListLock_);
+      return;
+    }
+    jobId = job->next;
+    job = &deltaList_[jobId];
+  }
+  /* ok, found it; remove, re-add with time 0 */
+  delCronJob(method,
+            deltaRepeat,
+            data);
+  addCronJob(method,
+            0,
+            deltaRepeat,
+            data);
+  MUTEX_UNLOCK(&deltaListLock_);
+}
+
+/**
+ * Add a cron-job to the delta list.
+ *
+ * @param method which method should we run
+ * @param delta how many milliseconds until we run the method
+ * @param deltaRepeat if this is a periodic, the time between
+ *        the runs, otherwise 0.
+ * @param data extra argument to calls to method, freed if
+ *        non-null and cron is shutdown before the job is
+ *        run and/or delCronJob is called
+ */
+void addCronJob(CronJob method,
+               unsigned int delta,
+               unsigned int deltaRepeat,
+               void * data) {
+  UTIL_cron_DeltaListEntry * entry;
+  UTIL_cron_DeltaListEntry * pos;
+  int last;
+  int current;
+
+#if DEBUG_CRON
+  GE_LOG(NULL,
+        GE_STATUS | GE_DEVELOPER | GE_BULK,
+        "Adding job %p-%p to fire in %d CU\n",
+        method,
+        data,
+        delta);
+#endif
+
+  MUTEX_LOCK(&deltaListLock_);
+  if (firstFree_ == -1) { /* need to grow */
+    unsigned int i;
+
+    GROW(deltaList_,
+        deltaListSize_,
+        deltaListSize_ * 2);
+    for (i=deltaListSize_/2;i<deltaListSize_;i++)
+      deltaList_[i].next = i-1;
+    deltaList_[deltaListSize_/2].next = -1;
+    firstFree_ = deltaListSize_-1;
+  }
+  entry = &deltaList_[firstFree_];
+  entry->method = method;
+  entry->data = data;
+  entry->deltaRepeat = deltaRepeat;
+  entry->delta = cronTime(NULL) + delta;
+  if (firstUsed_ == -1) {
+    firstUsed_
+      = firstFree_;
+    firstFree_
+      = entry->next;
+    entry->next = -1; /* end of list */
+    MUTEX_UNLOCK(&deltaListLock_);
+    /* interrupt sleeping cron-thread! */
+    abortSleep();
+    return;
+  }
+  /* no, there are jobs waiting */
+  last = -1;
+  current = firstUsed_;
+  pos = &deltaList_[current];
+
+  while (entry->delta > pos->delta) {
+    if (pos->next != -1) {
+      last = current;
+      current = pos->next;
+      pos = &deltaList_[current];
+    } else { /* append */
+      pos->next = firstFree_;
+      firstFree_
+       = entry->next;
+      entry->next = -1;
+      MUTEX_UNLOCK(&deltaListLock_);
+#if HAVE_PRINT_CRON_TAB
+      printCronTab();
+#endif
+      return;
+    }
+  }
+  /* insert before pos */
+  if (last == -1) {
+    firstUsed_ = firstFree_;
+    abortSleep();
+  } else {
+    deltaList_[last].next = firstFree_;
+#if HAVE_PRINT_CRON_TAB
+    printCronTab();
+#endif
+  }
+  firstFree_
+    = entry->next;
+  entry->next = current;
+  MUTEX_UNLOCK(&deltaListLock_);
+}
+
+/**
+ * Process the cron-job at the beginning of the waiting queue, that
+ * is, remove, invoke, and re-insert if it is a periodical job. Make
+ * sure the cron job is held when calling this method, but
+ * note that it will be released briefly for the time
+ * where the job is running (the job to run may add other
+ * jobs!)
+ */
+static void runJob() {
+  UTIL_cron_DeltaListEntry * job;
+  int jobId;
+  CronJob method;
+  void * data;
+  unsigned int repeat;
+
+  jobId = firstUsed_;
+  if (jobId == -1)
+    return; /* no job to be done */
+  job    = &deltaList_[jobId];
+  method = job->method;
+  runningJob_ = method;
+  data   = job->data;
+  runningData_ = data;
+  repeat = job->deltaRepeat;
+  runningRepeat_ = repeat;
+  /* remove from queue */
+  firstUsed_
+    = job->next;
+  job->next
+    = firstFree_;
+  firstFree_ = jobId;
+  MUTEX_UNLOCK(&deltaListLock_);
+  /* re-insert */
+  if (repeat > 0) {
+#if DEBUG_CRON
+    GE_LOG(NULL,
+          GE_STATUS | GE_DEVELOPER | GE_BULK,
+          "adding periodic job %p-%p to run again in %u\n",
+          method,
+          data,
+          repeat);
+#endif
+    addCronJob(method, repeat, repeat, data);
+  }
+  /* run */
+#if DEBUG_CRON
+  GE_LOG(NULL,
+        GE_STATUS | GE_DEVELOPER | GE_BULK,
+        "running job %p-%p\n",
+        method,
+        data);
+#endif
+  method(data);
+  MUTEX_LOCK(&deltaListLock_);
+  runningJob_ = NULL;
+#if DEBUG_CRON
+  GE_LOG(NULL,
+        GE_STATUS | GE_DEVELOPER | GE_BULK,
+        "job %p-%p done\n",
+        method,
+        data);
+#endif
+}
+
+/**
+ * The main-method of cron.
+ */
+static void * cron(void * unused) {
+  cron_t now;
+  cron_t next;
+
+  while (cron_shutdown == NO) {
+#if HAVE_PRINT_CRON_TAB
+    printCronTab();
+#endif
+    cronTime(&now);
+    next = now + 0xFFFFFFFF;
+    MUTEX_LOCK(&deltaListLock_);
+    while (firstUsed_ != -1) {
+      cronTime(&now);
+      next = deltaList_[firstUsed_].delta;
+      if (next <= now) {
+#if DEBUG_CRON
+       LOG(LOG_CRON,
+           "running cron job, table is\n");
+       printCronTab();
+#endif
+       runJob();
+#if DEBUG_CRON
+       GE_LOG(NULL,
+              GE_STATUS | GE_DEVELOPER | GE_BULK,
+              "job run, new table is\n");
+       printCronTab();
+#endif
+      } else
+       break;
+    }
+    MUTEX_UNLOCK(&deltaListLock_);
+    next = next - now; /* how long to sleep */
+#if DEBUG_CRON
+    GE_LOG(NULL,
+          GE_STATUS | GE_DEVELOPER | GE_BULK,
+          "Sleeping at %llu for %llu CU (%llu s, %llu CU)\n",
+          now,
+          next,
+          next / cronSECONDS,
+          next);
+#endif
+    if (next > MAXSLEEP)
+      next = MAXSLEEP;
+    if (cron_shutdown == NO) 
+      gnunet_util_sleep(next);
+#if DEBUG_CRON
+    GE_LOG(NULL,
+          GE_STATUS | GE_DEVELOPER | GE_BULK,
+          "woke up at  %llu - %lld CS late\n",
+          cronTime(NULL),
+          cronTime(NULL)-(now+next));
+#endif
+  }
+  SEMAPHORE_UP(cron_signal);
+#if DEBUG_CRON
+  GE_LOG(NULL,
+        GE_STATUS | GE_DEVELOPER | GE_BULK,
+        "Cron thread exits.\n");
+  printCronTab();
+#endif
+  return NULL;
+}
+
+
+/**
+ * Make sure to call stopCron before calling this method!
+ */
+void doneCron() {
+  int i;
+
+  i = firstUsed_;
+  while (i != -1) {
+    FREENONNULL(deltaList_[i].data);
+    i = deltaList_[i].next;
+  }
+  MUTEX_DESTROY(&deltaListLock_);
+  MUTEX_DESTROY(&inBlockLock_);
+  FREE(deltaList_);
+  SEMAPHORE_FREE(cron_signal_up);
+  deltaList_ = NULL;
+}
+
+/**
+ * Start the cron jobs.
+ */
+void startCron() {
+  GE_ASSERT(NULL, cron_signal == NULL);
+  cron_shutdown = NO;
+  cron_signal = SEMAPHORE_NEW(0);
+  /* large stack, we don't know for sure
+     what the cron jobs may be doing */
+  if (0 != PTHREAD_CREATE(&cron_handle,
+                         &cron,
+                         NULL,
+                         256 * 1024))
+    GE_DIE_STRERROR(NULL, 
+                   GE_FATAL | GE_ADMIN | GE_USER | GE_BULK, 
+                   "pthread_create");
+}
+
+
+/**
+ * Remove all matching cron-jobs from the list. This method should
+ * only be called while cron is suspended or stopped, or from a cron
+ * job that deletes another cron job.  If cron is not suspended or
+ * stopped, it may be running the method that is to be deleted, which
+ * could be bad (in this case, the deletion will not affect the
+ * running job and may return before the running job has terminated).
+ *
+ * @param method which method is listed?
+ * @param repeat which repeat factor was chosen?
+ * @param data what was the data given to the method
+ * @return the number of jobs removed
+ */
+int delCronJob(CronJob method,
+              unsigned int repeat,
+              void * data) {
+  UTIL_cron_DeltaListEntry * job;
+  UTIL_cron_DeltaListEntry * last;
+  int jobId;
+
+#if DEBUG_CRON
+  GE_LOG(NULL,
+        GE_STATUS | GE_DEVELOPER | GE_BULK,
+        "deleting job %p-%p\n",
+        method,
+        data);
+#endif
+  MUTEX_LOCK(&deltaListLock_);
+  jobId = firstUsed_;
+  if (jobId == -1) {
+    MUTEX_UNLOCK(&deltaListLock_);
+    return 0;
+  }
+  last = NULL;
+  job = &deltaList_[jobId];
+  while ( (job->method != method) ||
+         (job->data != data) ||
+         (job->deltaRepeat != repeat) ) {
+    last = job;
+    if (job->next == -1) {
+      MUTEX_UNLOCK(&deltaListLock_);
+      return 0;
+    }
+    jobId = job->next;
+    job = &deltaList_[jobId];
+  }
+  if (last != NULL)
+    last->next = job->next;
+  else
+    firstUsed_ = job->next;
+  job->next
+    = firstFree_;
+  firstFree_ = jobId;
+  job->method = NULL;
+  job->data = NULL;
+  job->deltaRepeat = 0;
+  MUTEX_UNLOCK(&deltaListLock_);
+  /* ok, there may be more matches, go again! */
+  return 1 + delCronJob(method, repeat, data);
+}
+
+
+
+
+
+/* end of cron.c */

Added: GNUnet/src/util/cron/crontest.c
===================================================================
--- GNUnet/src/util/cron/crontest.c     2006-06-24 20:40:19 UTC (rev 3038)
+++ GNUnet/src/util/cron/crontest.c     2006-06-24 21:17:06 UTC (rev 3039)
@@ -0,0 +1,105 @@
+/**
+ * @file test/crontest.c
+ * @brief Testcase for cron.
+ * @author Christian Grothoff
+ */
+
+#include "gnunet_util.h"
+#include "platform.h"
+
+static int global;
+static int global2;
+static int global3;
+
+/**
+ * Initialize controlThread.
+ */
+void initCron();
+
+/**
+ * Make sure to call stopCron before calling this method!
+ */
+void doneCron();
+
+/**
+ * Process the cron-job at the beginning of the waiting
+ * queue, that is, remove, invoke, and re-insert if
+ * it is a periodical job. Make sure the sync is down
+ * while the job is running (it may add other jobs!)
+ */
+void runJob();
+
+static void cronJob(void * unused) {
+  global++;
+}
+static void cronJob2(void * unused) {
+  global2++;
+}
+static void cronJob3(void * unused) {
+  global3++;
+}
+
+int testCron() {
+  int i;
+
+  global = -1;
+  global2 = -1;
+  global3 = -1;
+  addCronJob(&cronJob, cronSECONDS*1, cronSECONDS*1, NULL);
+  addCronJob(&cronJob2, cronSECONDS*4, cronSECONDS*4, NULL);
+  addCronJob(&cronJob3, cronSECONDS*16, cronSECONDS*16, NULL);
+  for (i=0;i<10;i++) {
+    /*    fprintf(stderr,"."); */
+    sleep(1);
+    if (((global-i) * (global-i)) > 9) {
+      fprintf(stderr,"1: Expected %d got %d\n", i, global);
+      return 1;
+    }
+    if (((global2-(i>>2)) * (global2-(i>>2))) > 9) {
+      fprintf(stderr,"2: Expected %d got %d\n", i>>2, global2);
+      return 1;
+    }
+    if (((global3-(i>>4)) * (global3-(i>>4))) > 9) {
+      fprintf(stderr,"3: Expected %d got %d\n", i>>4, global3);
+      return 1;
+    }
+  }
+  delCronJob(&cronJob, cronSECONDS*1, NULL);
+  delCronJob(&cronJob2, cronSECONDS*4, NULL);
+  delCronJob(&cronJob3, cronSECONDS*16, NULL);
+  return 0;
+}
+
+static void delJob() {
+  delCronJob(&cronJob, 42, NULL);
+}
+
+static int testDelCron() {
+  global = 0;
+  addCronJob(&cronJob, cronSECONDS*1, 42, NULL);
+  addCronJob(&delJob, 500 * cronMILLIS, 0, NULL);
+  sleep(1);
+  if (global != 0) {
+    fprintf(stderr,
+           "cron job was supposed to be deleted, but ran anyway!\n");
+    return 1;
+  } else
+    return 0;
+}
+
+int main(int argc, char * argv[]) {
+  int failureCount = 0;
+
+  initCron();
+  startCron();
+  failureCount += testCron();
+  failureCount += testDelCron();
+  stopCron();
+  doneCron();
+  if (failureCount == 0)
+    return 0;
+  else {
+    printf("\n\n%d TESTS FAILED!\n\n",failureCount);
+    return -1;
+  }
+} /* end of main */

Added: GNUnet/src/util/dump
===================================================================
--- GNUnet/src/util/dump        2006-06-24 20:40:19 UTC (rev 3038)
+++ GNUnet/src/util/dump        2006-06-24 21:17:06 UTC (rev 3039)
@@ -0,0 +1,20 @@
+  case 'H': {
+    port_string = strstr(optarg, ":");   
+    if (NULL != port_string) {
+      port = (unsigned short) atoi(port_string+1);
+      setConfigurationInt("NETWORK",
+                         "CLIENT-PORT",
+                         port);
+      host = MALLOC(1 + port_string - optarg);
+      memcpy(host, optarg, port_string - optarg);
+      host[port_string - optarg] = '\0';
+    } else {
+      host = STRDUP(optarg);
+    }
+    FREENONNULL(setConfigurationString("NETWORK",
+                                      "HOST",
+                                      host));
+    FREE(host);
+    break;
+  }
+





reply via email to

[Prev in Thread] Current Thread [Next in Thread]