yaz-moved-to-github.git
19 years agoRename pqf scan parameter from x-ScanClause to x-pScanClause
Adam Dickmeiss [Sun, 9 Jan 2005 21:50:26 +0000 (21:50 +0000)]
Rename pqf scan parameter from x-ScanClause to x-pScanClause

19 years agoAdded support for SRW scan in yaz-client
Adam Dickmeiss [Sat, 8 Jan 2005 01:20:18 +0000 (01:20 +0000)]
Added support for SRW scan in yaz-client

19 years agoAdded a warning (always to stderr) when opening the log file fails
Heikki Levanto [Fri, 7 Jan 2005 10:28:28 +0000 (10:28 +0000)]
Added a warning (always to stderr) when opening the log file fails

19 years agoCheck that assignments to NMEM memory for some basic types
Adam Dickmeiss [Wed, 5 Jan 2005 10:29:42 +0000 (10:29 +0000)]
Check that assignments to NMEM memory for some basic types

19 years agoOnly use type 'long long' when available.
Adam Dickmeiss [Wed, 5 Jan 2005 10:23:41 +0000 (10:23 +0000)]
Only use type 'long long' when available.

19 years agoRecognise yet ANOTHER location where docbookx.dtd may be found -- this
Mike Taylor [Tue, 4 Jan 2005 21:31:44 +0000 (21:31 +0000)]
Recognise yet ANOTHER location where docbookx.dtd may be found -- this
time, it's /usr/share/sgml/docbook/dtd/4.2 which is what my Debian
testing laptop uses.  Must be a change in sarge.

19 years agoIgnore generated file tstlog
Mike Taylor [Tue, 4 Jan 2005 21:29:10 +0000 (21:29 +0000)]
Ignore generated file tstlog

19 years agonmem alighment.
Mike Taylor [Tue, 4 Jan 2005 21:28:06 +0000 (21:28 +0000)]
nmem alighment.

19 years agoReturn aligned blocks on the smallest boundaries that are suitably
Mike Taylor [Tue, 4 Jan 2005 21:27:54 +0000 (21:27 +0000)]
Return aligned blocks on the smallest boundaries that are suitably
aligned for all possible types on the particular architecture YAZ is
being built for.

19 years agoBump version to 2.0.31
Adam Dickmeiss [Tue, 4 Jan 2005 09:41:34 +0000 (09:41 +0000)]
Bump version to 2.0.31

19 years agoFix date YAZ.2.0.30
Adam Dickmeiss [Tue, 4 Jan 2005 08:34:41 +0000 (08:34 +0000)]
Fix date

19 years agoMention most important changes
Adam Dickmeiss [Tue, 4 Jan 2005 01:39:22 +0000 (01:39 +0000)]
Mention most important changes

19 years agoAlign NMEM blocks to 2*sizeof(long)
Adam Dickmeiss [Tue, 4 Jan 2005 01:25:20 +0000 (01:25 +0000)]
Align NMEM blocks to 2*sizeof(long)

19 years agoTowards 2.0.30
Adam Dickmeiss [Mon, 3 Jan 2005 13:36:06 +0000 (13:36 +0000)]
Towards 2.0.30

19 years agoTowards 2.0.30.
Adam Dickmeiss [Mon, 3 Jan 2005 13:28:35 +0000 (13:28 +0000)]
Towards 2.0.30.

19 years agoTowards 2.0.30
Adam Dickmeiss [Mon, 3 Jan 2005 12:34:09 +0000 (12:34 +0000)]
Towards 2.0.30

19 years agoFix threading
Adam Dickmeiss [Mon, 3 Jan 2005 11:56:08 +0000 (11:56 +0000)]
Fix threading

19 years agoFor daemon mode (-D), let parent wait till child has created PID file
Adam Dickmeiss [Mon, 3 Jan 2005 09:18:36 +0000 (09:18 +0000)]
For daemon mode (-D), let parent wait till child has created PID file

19 years agoMake negotiationCharsetRecords of type int
Adam Dickmeiss [Sun, 2 Jan 2005 20:31:39 +0000 (20:31 +0000)]
Make negotiationCharsetRecords of type int

19 years agoCast PIDs to longs so they can be printfd
Adam Dickmeiss [Thu, 30 Dec 2004 00:25:20 +0000 (00:25 +0000)]
Cast PIDs to longs so they can be printfd

19 years agoAvoid signed char subscript
Adam Dickmeiss [Thu, 30 Dec 2004 00:21:12 +0000 (00:21 +0000)]
Avoid signed char subscript

19 years agoInclude unistd.h always
Adam Dickmeiss [Thu, 30 Dec 2004 00:20:15 +0000 (00:20 +0000)]
Include unistd.h always

19 years agoAvoid signed char subscript
Adam Dickmeiss [Thu, 30 Dec 2004 00:11:00 +0000 (00:11 +0000)]
Avoid signed char subscript

19 years agoRemove extra space in request log output
Adam Dickmeiss [Wed, 22 Dec 2004 23:48:34 +0000 (23:48 +0000)]
Remove extra space in request log output

19 years agoChange GFS so that it listen&accept in parent process rather than
Adam Dickmeiss [Wed, 22 Dec 2004 23:47:11 +0000 (23:47 +0000)]
Change GFS so that it listen&accept in parent process rather than
child. This avoid the synchronization pipe, and seem to make the
GFS a little faster.

19 years agoAdded OID for charneg-4.
Adam Dickmeiss [Wed, 22 Dec 2004 23:45:13 +0000 (23:45 +0000)]
Added OID for charneg-4.

19 years agoCommand negcharset may take up to three args
Adam Dickmeiss [Tue, 21 Dec 2004 20:25:39 +0000 (20:25 +0000)]
Command negcharset may take up to three args
 charset records version
where records is an integer (0=false, 1=true), version is charset
negotatition version (3 or 4).

19 years agoWhen receiving no records in present response don't throw
Adam Dickmeiss [Tue, 21 Dec 2004 00:34:31 +0000 (00:34 +0000)]
When receiving no records in present response don't throw
non-surrogate diagnostic "decoding failed. Instead add surrogate
diagnostic record 14: System error in presenting records.

19 years agoMinor tweaks in logging (mostly for SRW search)
Adam Dickmeiss [Tue, 21 Dec 2004 00:31:03 +0000 (00:31 +0000)]
Minor tweaks in logging (mostly for SRW search)

19 years agoPrefix PRN/Type-1 queries with RPN: rather than Z:
Adam Dickmeiss [Mon, 20 Dec 2004 23:38:39 +0000 (23:38 +0000)]
Prefix PRN/Type-1 queries with RPN: rather than Z:

19 years agoFixed bug in pack_records that caused piggyback searches to crash.
Adam Dickmeiss [Mon, 20 Dec 2004 23:38:03 +0000 (23:38 +0000)]
Fixed bug in pack_records that caused piggyback searches to crash.
Improved logging of diagnostics a bit. seshigh now using zget_-
utilities.

19 years agoDefine YAZ_USE_NEW_LOG for YAZ itself
Adam Dickmeiss [Mon, 20 Dec 2004 23:36:13 +0000 (23:36 +0000)]
Define YAZ_USE_NEW_LOG for YAZ itself

19 years agoAdded functions to initialize various structures for diagnostics:
Adam Dickmeiss [Mon, 20 Dec 2004 23:35:42 +0000 (23:35 +0000)]
Added functions to initialize various structures for diagnostics:
zget_DefaultDiagFormat, zget_surrogateDiagRec, zget_init_diagnostics,
zget_DiagRecs, zget_DiacRec.

19 years agoAdded YLOG_FLUSH to the default log level, to avoid problems on
Heikki Levanto [Mon, 20 Dec 2004 15:52:53 +0000 (15:52 +0000)]
Added YLOG_FLUSH to the default log level, to avoid problems on
Solaris. Maybe this should be conditional on the OS, as it works
fine under Linux?

19 years agoInclude marcdisp.h so that atoi_n gets public on WIN32
Adam Dickmeiss [Thu, 16 Dec 2004 08:59:56 +0000 (08:59 +0000)]
Include marcdisp.h so that atoi_n gets public on WIN32

19 years agoFix declaration (WIN32 section)
Adam Dickmeiss [Thu, 16 Dec 2004 08:59:36 +0000 (08:59 +0000)]
Fix declaration (WIN32 section)

19 years agoGet rid of tex messages
Adam Dickmeiss [Wed, 15 Dec 2004 09:10:12 +0000 (09:10 +0000)]
Get rid of tex messages

19 years agoInclude stddef.h because of size_t use in header.
Adam Dickmeiss [Tue, 14 Dec 2004 10:52:13 +0000 (10:52 +0000)]
Include stddef.h because of size_t use in header.

19 years agoChange wording WRT ylog.h/log.h
Adam Dickmeiss [Mon, 13 Dec 2004 20:17:41 +0000 (20:17 +0000)]
Change wording WRT ylog.h/log.h

19 years agoChange order but not semantics regarding old LOG_-defs.
Adam Dickmeiss [Mon, 13 Dec 2004 20:16:50 +0000 (20:16 +0000)]
Change order but not semantics regarding old LOG_-defs.

19 years agoIncluded xmalloc.h from log.h, if usingthe old system, as it used to be
Heikki Levanto [Mon, 13 Dec 2004 14:31:19 +0000 (14:31 +0000)]
Included xmalloc.h from log.h, if usingthe old system, as it used to be
there... If using new system, you need to include it yourself

19 years agoMoved back to a single log.h, with the new #define YAZ_USE_NEW_LOG
Heikki Levanto [Mon, 13 Dec 2004 14:21:54 +0000 (14:21 +0000)]
Moved back to a single log.h, with the new #define YAZ_USE_NEW_LOG

19 years agoDefine YAZ_USE_NEW_LOG=1 if app require YAZ > 2.0.28
Adam Dickmeiss [Mon, 13 Dec 2004 14:15:55 +0000 (14:15 +0000)]
Define YAZ_USE_NEW_LOG=1 if app require YAZ > 2.0.28

19 years agoDeprecated yaz-util.h with a warinng in place. Re-enabled the warning in log.h
Heikki Levanto [Fri, 10 Dec 2004 10:42:33 +0000 (10:42 +0000)]
Deprecated yaz-util.h with a warinng in place. Re-enabled the warning in log.h
Note: All these warings can be avoided with
  CFLAGS="-Wall -g -D YAZ_USE_OLD_LOG" ./configure

19 years agoFixed place for YAZ_END_CDECL
Adam Dickmeiss [Thu, 9 Dec 2004 09:37:00 +0000 (09:37 +0000)]
Fixed place for YAZ_END_CDECL

19 years agoDocument commands: list_all, set_auto_reconnect, negcharset,
Adam Dickmeiss [Thu, 9 Dec 2004 09:30:00 +0000 (09:30 +0000)]
Document commands: list_all, set_auto_reconnect, negcharset,
displaycharset, register_tab, sleep, zversion, options.

19 years agoDocument .yazclientrc
Adam Dickmeiss [Thu, 9 Dec 2004 09:27:51 +0000 (09:27 +0000)]
Document .yazclientrc

19 years ago3rd argument for charset is marccharset
Adam Dickmeiss [Thu, 9 Dec 2004 09:25:44 +0000 (09:25 +0000)]
3rd argument for charset is marccharset

19 years agoImplemented commands negcharset and displaycharset that specifies
Adam Dickmeiss [Thu, 9 Dec 2004 07:53:21 +0000 (07:53 +0000)]
Implemented commands negcharset and displaycharset that specifies
character set for negotiation and display respectively. Command
charset works as usual and is implemented using the two.

19 years agoHad to remove. We will enable after has been public available for
Adam Dickmeiss [Wed, 8 Dec 2004 09:08:01 +0000 (09:08 +0000)]
Had to remove. We will enable after has been public available for
one or two months.

19 years agoInclude old yaz/log.h so that old things still work (for some time)
Adam Dickmeiss [Wed, 8 Dec 2004 09:06:06 +0000 (09:06 +0000)]
Include old yaz/log.h so that old things still work (for some time)

19 years agoFix double-free in code that handles encoding errors (from backend)
Adam Dickmeiss [Thu, 2 Dec 2004 19:12:52 +0000 (19:12 +0000)]
Fix double-free in code that handles encoding errors (from backend)

19 years agoReturn values in cmd_source_ functions
Adam Dickmeiss [Thu, 2 Dec 2004 14:04:17 +0000 (14:04 +0000)]
Return values in cmd_source_ functions

19 years agoFixed bug 227 and bug 228
ja7 [Thu, 2 Dec 2004 13:55:35 +0000 (13:55 +0000)]
Fixed bug 227 and bug 228

19 years agoAdded a way to get around the old log warning
Heikki Levanto [Fri, 26 Nov 2004 11:06:29 +0000 (11:06 +0000)]
Added a way to get around the old log warning

19 years agoyaz-log.7 man pages part of RedHat package yaz
Adam Dickmeiss [Fri, 26 Nov 2004 11:01:05 +0000 (11:01 +0000)]
yaz-log.7 man pages part of RedHat package yaz

19 years agoyaz-log.7 man pages part of Debian package yaz
Adam Dickmeiss [Fri, 26 Nov 2004 11:00:27 +0000 (11:00 +0000)]
yaz-log.7 man pages part of Debian package yaz

19 years agoReintroduced the bit "defines for those log bits that are deprecated and
Heikki Levanto [Fri, 26 Nov 2004 10:58:38 +0000 (10:58 +0000)]
Reintroduced the bit "defines for those log bits that are deprecated and
not defined in the new ylog.h

19 years agoTreat field as having subfields even if first char is blank/other
Adam Dickmeiss [Thu, 25 Nov 2004 09:43:10 +0000 (09:43 +0000)]
Treat field as having subfields even if first char is blank/other

19 years agoAdded a man page for yaz-log (7)
Heikki Levanto [Tue, 23 Nov 2004 14:11:03 +0000 (14:11 +0000)]
Added a man page for yaz-log (7)

19 years agoRe-enabled the -v notime option, it was broken.
Heikki Levanto [Tue, 23 Nov 2004 14:10:47 +0000 (14:10 +0000)]
Re-enabled the -v notime option, it was broken.

19 years agoFix new bug introduced by previous commit (../yaz* not used)
Adam Dickmeiss [Mon, 22 Nov 2004 10:54:23 +0000 (10:54 +0000)]
Fix new bug introduced by previous commit (../yaz* not used)

19 years agoUpdate SRW/SRU diagnostic message definitions and store them in separate
Adam Dickmeiss [Sun, 21 Nov 2004 21:56:28 +0000 (21:56 +0000)]
Update SRW/SRU diagnostic message definitions and store them in separate
source: diagsrw.c.

19 years agoAbout log system changes
Adam Dickmeiss [Sun, 21 Nov 2004 21:55:31 +0000 (21:55 +0000)]
About log system changes

19 years agoUpdate log chapter for new log system
Adam Dickmeiss [Sun, 21 Nov 2004 21:55:15 +0000 (21:55 +0000)]
Update log chapter for new log system

19 years agoFixed bug #212: make distcheck uses global yaz, not a local one
Adam Dickmeiss [Fri, 19 Nov 2004 18:31:05 +0000 (18:31 +0000)]
Fixed bug #212: make distcheck uses global yaz, not a local one

19 years agoMoved the #define of logf back into log.h, so that it won't be
Heikki Levanto [Fri, 19 Nov 2004 10:07:08 +0000 (10:07 +0000)]
Moved the #define of logf back into log.h, so that it won't be
available innewer software using ylog.h. It conflicted with a
math function

19 years agoFixed a CDECL thing that broke yaz++
Heikki Levanto [Fri, 19 Nov 2004 09:59:31 +0000 (09:59 +0000)]
Fixed a CDECL thing that broke yaz++

19 years agoDeprecated log.h and created a new ylog.h
Heikki Levanto [Thu, 18 Nov 2004 15:18:10 +0000 (15:18 +0000)]
Deprecated log.h and created a new ylog.h
Renamed all LOG_ #defines to matching YLOG_, and used them everywhere
Used the new dynamic log system in deveral places

19 years agoAdded an option to specify -word in the loglevel parsing, to clear a specific
Heikki Levanto [Wed, 17 Nov 2004 13:03:07 +0000 (13:03 +0000)]
Added an option to specify -word in the loglevel parsing, to clear a specific
bit: -v all,-log

19 years agoModify wrbuf_put_zquery and wrbuf_scan_term so the generated
Adam Dickmeiss [Wed, 17 Nov 2004 00:18:54 +0000 (00:18 +0000)]
Modify wrbuf_put_zquery and wrbuf_scan_term so the generated
PQF code is valid for reparsing.

19 years agoFor @prox operator, the "which" member being known or private
Adam Dickmeiss [Wed, 17 Nov 2004 00:17:17 +0000 (00:17 +0000)]
For @prox operator, the "which" member being known or private
was not set correctly. Use odr_intdup where appropriate.

19 years agoAvoid generating tsticonv.log
Adam Dickmeiss [Tue, 16 Nov 2004 22:51:52 +0000 (22:51 +0000)]
Avoid generating tsticonv.log

19 years agoClean up temp CQL test files
Adam Dickmeiss [Tue, 16 Nov 2004 22:44:31 +0000 (22:44 +0000)]
Clean up temp CQL test files

19 years agoAvoid new ANSI inline declaration
Adam Dickmeiss [Tue, 16 Nov 2004 22:10:29 +0000 (22:10 +0000)]
Avoid new ANSI inline declaration

19 years agoMake sure test only write to build directory to make distcheck happier.
Adam Dickmeiss [Tue, 16 Nov 2004 17:12:28 +0000 (17:12 +0000)]
Make sure test only write to build directory to make distcheck happier.

19 years agoImprovements in the log system, especially on the server side. Now logging on
Heikki Levanto [Tue, 16 Nov 2004 17:08:11 +0000 (17:08 +0000)]
Improvements in the log system, especially on the server side. Now logging on
levels 'server', 'session', 'request', and 'requestdetail', and on 'request',
making only one-line log entries for each request. Documented it too!

20 years agoBump version to 2.0.29
Adam Dickmeiss [Wed, 10 Nov 2004 09:26:43 +0000 (09:26 +0000)]
Bump version to 2.0.29

20 years agoUse strchr,strrchr instead of index/rindex. YAZ.2.0.28
Adam Dickmeiss [Tue, 9 Nov 2004 20:54:08 +0000 (20:54 +0000)]
Use strchr,strrchr instead of index/rindex.

20 years agoAdded marc these regressions test MARCXML records
Adam Dickmeiss [Tue, 9 Nov 2004 20:42:32 +0000 (20:42 +0000)]
Added marc these regressions test MARCXML records

20 years agoTowards 2.0.28
Adam Dickmeiss [Tue, 9 Nov 2004 20:35:30 +0000 (20:35 +0000)]
Towards 2.0.28

20 years agoAnnounce 2.0.27 because of new functions in log.h
Adam Dickmeiss [Tue, 9 Nov 2004 20:33:48 +0000 (20:33 +0000)]
Announce 2.0.27 because of new functions in log.h

20 years agoDescribe the new log utilities
Adam Dickmeiss [Tue, 9 Nov 2004 20:31:13 +0000 (20:31 +0000)]
Describe the new log utilities

20 years agoFixed a bug that caused extra [level] tags in the log
Heikki Levanto [Thu, 4 Nov 2004 14:19:58 +0000 (14:19 +0000)]
Fixed a bug that caused extra [level] tags in the log

20 years agoUsing blanks for assignments (no code changes)
Adam Dickmeiss [Wed, 3 Nov 2004 22:33:17 +0000 (22:33 +0000)]
Using blanks for assignments (no code changes)

20 years agoAdded test program for logging.
Adam Dickmeiss [Wed, 3 Nov 2004 22:30:52 +0000 (22:30 +0000)]
Added test program for logging.

20 years agoFixed a silly typo that made a numeric -v crash
Heikki Levanto [Wed, 3 Nov 2004 17:52:53 +0000 (17:52 +0000)]
Fixed a silly typo that made a numeric -v crash

20 years agoAdded dynamic log-levels:
Heikki Levanto [Wed, 3 Nov 2004 14:25:06 +0000 (14:25 +0000)]
Added dynamic log-levels:
  - yaz_log_mask_str (and _x) can now be called with a previously unknown
  name, which will get a new log bit assigned. This happens in most programs
  when parsing the -v command line option.
  - yaz_log_module_level can be called with a name, and if that name has
  got a bit defined, this bit will be returned, otherwise zero. This
  can then be used as the log_level in yaz_log and logf calls.
  - the names are cleaned from prefix paths and suffixes, so ./foo.c becomes
  foo.
Also added a routine to set the maximum log size, and a few comments in log.h

20 years agoprotecting log rotation with a mutex
Heikki Levanto [Tue, 2 Nov 2004 15:47:31 +0000 (15:47 +0000)]
protecting log rotation with a mutex

20 years agoIgnore .lib, .map, .exp
Adam Dickmeiss [Tue, 2 Nov 2004 14:13:11 +0000 (14:13 +0000)]
Ignore .lib, .map, .exp

20 years agoRotating logfile if exceeding a gigabyte
Heikki Levanto [Tue, 2 Nov 2004 14:13:09 +0000 (14:13 +0000)]
Rotating logfile if exceeding a gigabyte
(need to add a semaphore around it, for multithreaded things)

20 years agoNot buffering the log file, unless LOG_FLUSH is set. Reopening if necessary
Heikki Levanto [Tue, 2 Nov 2004 13:52:54 +0000 (13:52 +0000)]
Not buffering the log file, unless LOG_FLUSH is set. Reopening if necessary

20 years agooops, forgot to give a name to LOG_FLUSH. Now added
Heikki Levanto [Tue, 2 Nov 2004 12:57:54 +0000 (12:57 +0000)]
oops, forgot to give a name to LOG_FLUSH. Now added

20 years agoAdded a new log flag LOG_FLUSH that forces flushing the log after every
Heikki Levanto [Tue, 2 Nov 2004 12:55:04 +0000 (12:55 +0000)]
Added a new log flag LOG_FLUSH that forces flushing the log after every
write. Yaz used to do this unconditionally, now it only does if LOG_FLUSH or
LOG_DEBUG are set in the log level. Presumably speeds up stuff that writes
many log entries...

20 years agoyaz_log_time_format sets the format of the timestamp. See man 3 strftime
Heikki Levanto [Tue, 2 Nov 2004 11:37:21 +0000 (11:37 +0000)]
yaz_log_time_format sets the format of the timestamp. See man 3 strftime
Calling with "old" sets to the old format "11:55:06-02/11"
Calling with NULL or "" sets to the new format "20041102-115719"
If not called at all, the old format is used, for backward compatibility

20 years agoUse Sleep(mseconds) on Windows
Adam Dickmeiss [Mon, 1 Nov 2004 21:19:08 +0000 (21:19 +0000)]
Use Sleep(mseconds) on Windows

20 years agoTowards 2.0.27
Adam Dickmeiss [Mon, 1 Nov 2004 20:59:23 +0000 (20:59 +0000)]
Towards 2.0.27

20 years agoReformat a bit
Adam Dickmeiss [Mon, 1 Nov 2004 20:16:44 +0000 (20:16 +0000)]
Reformat a bit

20 years agoFixed bug #148: CQL parser may leak. CQL nodes now allocated using
Adam Dickmeiss [Mon, 1 Nov 2004 20:13:02 +0000 (20:13 +0000)]
Fixed bug #148: CQL parser may leak. CQL nodes now allocated using
NMEM instead of xmalloc. For this reason, few prototypes were changed in
include/yaz/cql.h.

20 years agoBug fix: explainRequest decoder did not initialize some members when
Adam Dickmeiss [Sun, 31 Oct 2004 19:23:22 +0000 (19:23 +0000)]
Bug fix: explainRequest decoder did not initialize some members when
explain record was missing.