1. 18 Oct, 2006 1 commit
    • Per Cederqvist's avatar
      Renamed sync_output_header to foutput_header, and clean up the · ba79469c
      Per Cederqvist authored
      time handling.  This is more preparation for bug 1616.
      * src/server/simple-cache.c (sync_output_header): Renamed to
      foutput_header and moved to ram-output.c.  All callers updated.
      * src/server/ramkomd.c (current_time): Moved to server-time.c.
      (main): Use set_initial_time instead of calling gettimeofday and
      accessing current_time directly.
      * src/server/ram-output.c, src/server/ram-output.h
      (foutput_header): Renamed from sync_output_header.  Use
      output_format instead of a hardcoding it to 2.
      * src/server/dbck.c (main): Call set_initial_time().
      * src/server/dbck-cache.c (sync_output_header): Use foutput_header
      to output a format 2 header.
      * src/server/server-time.c: New file.
      (current_time): Moved here from ramkomd.c.
      * src/server/server-time.c, src/server/server-time.h
      (set_time): Moved here from connections.c.
      (set_initial_time): New function.
      * src/server/connections.c (set_ time): Moved to server-time.c.
      * src/server/Makefile.am (GENOBJS): Added server-time.c.
      (DBCK): Ditto.
      ba79469c
  2. 17 Oct, 2006 1 commit
    • Per Cederqvist's avatar
      Added functions wrapper functions around a few stdio functions, · d7498aeb
      Per Cederqvist authored
      and use them when accessing database files.  This is a preparatory
      step for introducing "struct dbfile", which will enable lyskomd to
      manipulate more than one database file format at the same time.
      That ability is needed for solving bug 1616.
      * src/server/ram-io.c, src/server/ram-io.h: New files.
      (dbfile_ftell): New function.
      (dbfile_getc): New function.
      (dbfile_ungetc): New function.
      * src/server/Makefile.am (libcheck_a_SOURCES): Added ram-io.c.
      (lyskomd_SOURCES): Added ram-io.h and ram-io.c.
      (DBCK): Added ram-io.h and ram-io.c.
      * src/server/simple-cache.c (read_person): Check the return value
      from fparse_set_pos().
      (read_conference): Ditto.
      (read_text_stat): Ditto.
      (write_conf): New static function.
      (save_one_conf): Use it to simplify code.
      (write_text): New static function.
      (save_one_text): Use it to simplify code.
      * src/server/ram-parse.h, src/server/ram-parse.c
      (fparse_set_pos): New function.
      * src/server/ram-output.c: Include ram-io.h.
      (foutput_space): New static function.  Use it where appropriate.
      (foutput_bool): Ditto.
      (foutput_array_start): Ditto.
      (foutput_array_end): Ditto.
      (foutput_array_nodata): Ditto.
      * src/server/ram-output.h, src/server/ram-output.c
      (foutput_atsign): New function.
      (foutput_newline): New function.
      * src/server/dbck-cache.c: Include ram-io.h.  Use dbfile_getc()
      instead of getc(), dbfile_ungetc() instead of ungetc(), and
      dbfile_ftell() instead of ftell(), when accessing the database
      file.  Use foutput_atsign and foutput_newline when appropriate.
      * src/server/local-to-global.c: Ditto.
      * src/server/ram-parse.c: Ditto.
      * src/server/simple-cache.c: Ditto.
      d7498aeb
  3. 01 Jan, 2006 1 commit
  4. 27 Dec, 2005 1 commit
    • Per Cederqvist's avatar
      "make check" without a previous "make" failed, because · efa7c6b0
      Per Cederqvist authored
      checkkomspace was not built early enough.  Also, the test suite
      should not fail on platforms that don't support fsusage.c.
      * src/server/Makefile.am (CHECKKOMSPACE): New empty variable.
      Append checkkomspace$(EXEEXT) to it if we HAVE_FSUSAGE.
      (check-lyskomd): Depend on $(CHECKKOMSPACE).
      (check-recursive): Ditto.
      * src/server/testsuite/lyskomd.0/50.exp: Report "unsupported" if
      checkkomspace is not built.  (Don't fail with fatal errors.)
      efa7c6b0
  5. 03 Oct, 2003 2 commits
  6. 25 Aug, 2003 1 commit
  7. 23 Aug, 2003 1 commit
  8. 22 Aug, 2003 1 commit
  9. 20 Aug, 2003 2 commits
  10. 16 Aug, 2003 2 commits
    • Per Cederqvist's avatar
      Refer to Bugzilla, not email. · d8b0b96a
      Per Cederqvist authored
      d8b0b96a
    • Per Cederqvist's avatar
      (MOSTLYCLEANFILES): Added paths.h. · e87caeac
      Per Cederqvist authored
      (AM_CPPFLAGS): Removed the DEFAULT_PREFIX define.  Use paths.h instead.
      (sbin_PROGRAMS): Was: bin_PROGRAMS.
      (BUILT_SOURCES): Added paths.h.
      (.gdbinit): Removed redundant "-f" option to $(RM).
      (DEFP): New constant.
      (paths.h): New target.
      (server-config.o): Added explicit dependency on paths.h.
      e87caeac
  11. 13 Aug, 2003 1 commit
  12. 12 Aug, 2003 2 commits
  13. 31 Jul, 2003 1 commit
  14. 30 Jul, 2003 1 commit
  15. 23 Jul, 2003 1 commit
  16. 17 Jul, 2003 1 commit
  17. 12 Jul, 2003 3 commits
  18. 25 Nov, 2002 1 commit
  19. 31 Oct, 2002 1 commit
  20. 27 Oct, 2002 1 commit
  21. 21 Oct, 2002 1 commit
  22. 09 Oct, 2002 1 commit
  23. 10 Sep, 2002 1 commit
    • Per Cederqvist's avatar
      (INCLUDES): Added libansi. · cc1c5196
      Per Cederqvist authored
      (lyskomd_LDADD): New variable.
      (dbck_LDADD): New variable.
      (LDADD): Removed several libraries that the other programs don't use.
      cc1c5196
  24. 17 Aug, 2002 1 commit
  25. 06 Aug, 2002 1 commit
  26. 06 Apr, 2002 1 commit
    • Per Cederqvist's avatar
      (aux.h): New target. · b1c728db
      Per Cederqvist authored
      (MOSTLYCLEANFILES): Added aux.h.
      (NODIST_GENOBJS): Added aux.h.
      (BUILT_SOURCES): Added aux.h.
      (version.incl): Fixed spelling error.
      (version-info.c): Ditto.
      b1c728db
  27. 29 Mar, 2002 1 commit
  28. 26 Mar, 2002 1 commit
  29. 18 Nov, 2001 1 commit
  30. 11 Nov, 2001 2 commits
  31. 30 Sep, 2001 1 commit
  32. 29 Sep, 2001 1 commit
    • Per Cederqvist's avatar
      (MOSTLYCLEANFILES): Added version-info.c and prot-a-parse-arg.c. · 85c37356
      Per Cederqvist authored
      (nodist_lyskomd_SOURCES): New target.
      (nodist_dbck_SOURCES): New target.
      (NODIST_PROTA): New variable.  Moved prot-a-parse-arg.c from PROTA to
      	this variable.
      (NODIST_GENOBJS): New variable.  Moved version-info.c from DISKOBJS to
      	this variable.
      (NODIST_DISKOBJS): New variable.
      (NODIST_DBCK): New variable.  Moved version-info.c from DBCK to
      	this variable.
      85c37356
  33. 24 Jul, 1999 1 commit