- 17 Oct, 2006 1 commit
-
-
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.
-
- 23 Aug, 2003 1 commit
-
-
Per Cederqvist authored
-
- 16 Aug, 2003 1 commit
-
-
Per Cederqvist authored
-
- 12 Jul, 2003 1 commit
-
-
Per Cederqvist authored
<sys/time.h> directly.
-
- 12 Jan, 2003 1 commit
-
-
Per Cederqvist authored
-
- 06 Nov, 2002 1 commit
-
-
Per Cederqvist authored
range-based representation of memberships. (foutput_membership_0): Use it. (foutput_membership_2): Use it.
-
- 29 Mar, 2002 1 commit
-
-
Per Cederqvist authored
-
- 01 Jan, 2002 1 commit
-
-
Per Cederqvist authored
-
- 04 Nov, 2001 2 commits
-
-
Per Cederqvist authored
-
Per Cederqvist authored
-
- 26 Jun, 1999 1 commit
-
-
Per Cederqvist authored
(foutput_mark_list): Declare the function static in all declarations, not only some.
-
- 03 Jun, 1999 1 commit
-
-
Per Cederqvist authored
-
- 24 May, 1999 3 commits
-
-
Per Cederqvist authored
(foutput_membership_list): Call foutput_membership_list_0 for output format 1.
-
Per Cederqvist authored
-
Per Cederqvist authored
-
- 20 May, 1999 1 commit
-
-
Per Cederqvist authored
-
- 12 May, 1999 1 commit
-
-
David Byers authored
set-pers-flags Modified RPC calls create-person (new parameter pers-flags) Removed several hard-coded constants and paths. Max texts Max conferences Nologin file Support for aux-item validation functions (not just regexps.) Support for aux-items that can only be created by the server Support for linking pairs of aux items Added test cases to improve code coverage Renamed log to kom_log to avoid conflicts with math function log. Several bug fixes (code and documentation)
-
- 05 Apr, 1999 1 commit
-
-
Per Cederqvist authored
(foutput_person_2): Likewise. (foutput_person): Likewise. (foutput_conference_2): Added const qualifier to the conf_c argument. (foutput_aux_flags): Now static. (foutput_aux_item): Now static. (foutput_aux_item_list): Now static. Added const qualifier to the aux argument. (foutput_membership_type): Now static. (foutput_string): Now static. (foutput_priv_bits): Now static. (foutput_personal_flags): Now static. (foutput_text_list): Now static. (foutput_mark_list): Added const qualifier to the mark_list argument. (foutput_mark): Now static. (foutput_membership_list): Now static. (foutput_time): Now static. (foutput_member_list): Now static. (foutput_member): Now static. (foutput_conf_type): Now static. (foutput_misc_info): Now static. (foutput_ulong): Now static.
-
- 13 Jan, 1999 1 commit
-
-
David Byers authored
-
- 26 Dec, 1998 1 commit
-
-
David Byers authored
-
- 22 Aug, 1998 1 commit
-
-
Per Cederqvist authored
-
- 26 Jul, 1998 1 commit
-
-
Per Cederqvist authored
(foutput_person_2): Use l2g_write instead of foutput_text_list. (foutput_conference_2): Likewise. (foutput_conference_1): Adjusted to new API of foutput_text_list. (foutput_conference_0): Likewise. (foutput_text_list): The text_list argument is now a pointer to Local_to_global instead of a Text_list. The generated output is still the same. (foutput_ulong): Eliminated a future buffer overrun. Cleaned up the code.
-
- 08 Jul, 1998 1 commit
-
-
Per Cederqvist authored
unsigned long. (foutput_time): Renamed a parameter name to avoid warnings from gcc. (rcsid): Added a missing const.
-
- 14 Jun, 1998 1 commit
-
-
David Byers authored
-
- 13 Sep, 1997 1 commit
-
-
David Byers authored
Documented the aux-item definition file format. Updated the database format documentation. Server: Implemented aux-items. Checked error returns and set error-status to something useful in most cases. New RPC calls: create-text create-anonymous-text create-conf create-person get-text-stat get-conf-stat modify-text-info modify-conf-info get-info modify-server-info get-collate-table set-expire query-unread-texts New asynchronous messages: new-text deleted-text
-
- 03 Aug, 1996 2 commits
-
-
Per Cederqvist authored
-
Per Cederqvist authored
-
- 28 Jul, 1996 1 commit
-
-
Per Cederqvist authored
-
- 27 Jul, 1996 1 commit
-
-
David Byers authored
conf_type. (foutput_conference_0): New function. Outputs conference with a four_bit conf type.
-
- 23 Jul, 1996 1 commit
-
-
David Byers authored
now has a version number.
-
- 08 Nov, 1995 1 commit
-
-
Per Cederqvist authored
has a version number.
-
- 31 Oct, 1995 1 commit
-
-
David Byers authored
Added get_uconf_stat server call. Database can now store eight-bit Conf_type Call to get Small_conf data in the cache added UConference protocol data type added
-
- 01 Jan, 1995 2 commits
-
-
Per Cederqvist authored
-
Per Cederqvist authored
-
- 05 Apr, 1994 1 commit
-
-
Per Cederqvist authored
-
- 18 Oct, 1993 1 commit
-
-
Per Cederqvist authored
any files.
-
- 16 Oct, 1993 1 commit
-
-
Per Cederqvist authored
-
- 14 Oct, 1993 2 commits
-
-
Per Cederqvist authored
Include <sys/types.h>.
-
Per Cederqvist authored
-
- 10 Oct, 1993 1 commit
-
-
Per Cederqvist authored
-