yaz-moved-to-github.git
17 years agoDefinition of wrbuf_diags moved to querytowrbuf.h. Function wrbuf_put_zquery
Adam Dickmeiss [Mon, 19 Mar 2007 21:07:35 +0000 (21:07 +0000)]
Definition of wrbuf_diags moved to querytowrbuf.h. Function wrbuf_put_zquery
removed, because function yaz_query_to_wrbuf does the same.

17 years agoNotes on ZOOM changes
Adam Dickmeiss [Mon, 19 Mar 2007 20:58:47 +0000 (20:58 +0000)]
Notes on ZOOM changes

17 years agoAPI changes to ZOOM. Functions for setting options returns int, rather
Adam Dickmeiss [Mon, 19 Mar 2007 20:58:34 +0000 (20:58 +0000)]
API changes to ZOOM. Functions for setting options returns int, rather
than void, so we have a way to flag unknown options. ZOOM_resultset_sort1
has become "the" ZOOM_resultset_sort. (and old ZOOM_resultset_sort is
removed). ZOOM_connection_scan1 removed. The generic scan is
ZOOM_connection_scan and the ZOOM_connection_scan_pqf is a handy short-hand
taking a PQF string as argument.

17 years agoAPI changes to WRBUF. wrbuf_free removed; replaced by wrbuf_destroy. And
Adam Dickmeiss [Mon, 19 Mar 2007 14:40:06 +0000 (14:40 +0000)]
API changes to WRBUF. wrbuf_free removed; replaced by wrbuf_destroy. And
wrbuf_puts no longer appends '\0'. Use wrbuf_cstr to get C-string out.
Deprecated functions for yaz_marc-removed.
Changed prototype of yaz_marc_decode_buf: const char for result and size_t
for rsize.

17 years agoNote on branch
Adam Dickmeiss [Mon, 19 Mar 2007 13:32:40 +0000 (13:32 +0000)]
Note on branch

17 years agoNew packges libyaz3, libyaz3-dev with libyaz so version 3.
Adam Dickmeiss [Mon, 19 Mar 2007 13:32:11 +0000 (13:32 +0000)]
New packges libyaz3, libyaz3-dev with libyaz so version 3.

17 years agolibyaz major so version=3
Adam Dickmeiss [Mon, 19 Mar 2007 13:31:48 +0000 (13:31 +0000)]
libyaz major so version=3

17 years agoBump version to 2.1.99
Adam Dickmeiss [Mon, 19 Mar 2007 13:31:05 +0000 (13:31 +0000)]
Bump version to 2.1.99

17 years agoDisable lOG_-defines by default
Adam Dickmeiss [Mon, 19 Mar 2007 12:54:58 +0000 (12:54 +0000)]
Disable lOG_-defines by default

17 years agoAdded continuation line support for MARC line format reader.
Adam Dickmeiss [Sun, 18 Mar 2007 13:00:37 +0000 (13:00 +0000)]
Added continuation line support for MARC line format reader.

17 years agoAdded wrbuf_cut_right which cuts WRBUF by a number of characters (chop
Adam Dickmeiss [Sun, 18 Mar 2007 12:59:56 +0000 (12:59 +0000)]
Added wrbuf_cut_right which cuts WRBUF by a number of characters (chop
right).

17 years agoUse nmem_init + nmem_exit to track memory usage easier.
Adam Dickmeiss [Sat, 17 Mar 2007 09:14:00 +0000 (09:14 +0000)]
Use nmem_init + nmem_exit to track memory usage easier.

17 years agoUse WRBUF for MARC line reading.
Adam Dickmeiss [Sat, 17 Mar 2007 09:13:29 +0000 (09:13 +0000)]
Use WRBUF for MARC line reading.

17 years agoRemove unneeded assert.
Adam Dickmeiss [Sat, 17 Mar 2007 08:44:24 +0000 (08:44 +0000)]
Remove unneeded assert.

17 years agoFixed marc8 flush to deal with sub/sup scripts. Refactor marc-8 page
Adam Dickmeiss [Sat, 17 Mar 2007 00:10:40 +0000 (00:10 +0000)]
Fixed marc8 flush to deal with sub/sup scripts. Refactor marc-8 page
switch code to function yaz_write_marc8_page_chr.

17 years agoVersion 2.1.55.
Adam Dickmeiss [Fri, 16 Mar 2007 10:50:19 +0000 (10:50 +0000)]
Version 2.1.55.

17 years agoFix news version YAZ.2.1.54
Adam Dickmeiss [Fri, 16 Mar 2007 09:12:08 +0000 (09:12 +0000)]
Fix news version

17 years agoFix ChangeLog dist
Adam Dickmeiss [Fri, 16 Mar 2007 08:58:39 +0000 (08:58 +0000)]
Fix ChangeLog dist

17 years agoRemove ether_h echo
Adam Dickmeiss [Fri, 16 Mar 2007 08:11:13 +0000 (08:11 +0000)]
Remove ether_h echo

17 years agoTowards 2.1.54
Adam Dickmeiss [Fri, 16 Mar 2007 08:08:10 +0000 (08:08 +0000)]
Towards 2.1.54

17 years agoMore news
Adam Dickmeiss [Fri, 16 Mar 2007 08:06:38 +0000 (08:06 +0000)]
More news

17 years agoChangeLog part of dist
Adam Dickmeiss [Fri, 16 Mar 2007 08:06:26 +0000 (08:06 +0000)]
ChangeLog part of dist

17 years agoZOOM-C async reconnection.
Mike Taylor [Thu, 15 Mar 2007 14:15:06 +0000 (14:15 +0000)]
ZOOM-C async reconnection.

17 years agoFixed bug #969: Fixed compiltation errors on OpenBSD 4.0.
Adam Dickmeiss [Thu, 15 Mar 2007 14:07:41 +0000 (14:07 +0000)]
Fixed bug #969: Fixed compiltation errors on OpenBSD 4.0.

17 years agoFixed update command so that record ID = none means none.
Adam Dickmeiss [Wed, 14 Mar 2007 11:46:37 +0000 (11:46 +0000)]
Fixed update command so that record ID = none means none.

17 years agoMissing return value for function
Adam Dickmeiss [Tue, 13 Mar 2007 09:12:09 +0000 (09:12 +0000)]
Missing return value for function

17 years agoUse wrbuf_puts rather than wrbuf_printf for GRS-1 display.
Adam Dickmeiss [Mon, 12 Mar 2007 16:16:49 +0000 (16:16 +0000)]
Use wrbuf_puts rather than wrbuf_printf for GRS-1 display.

17 years agoadvancegreek ; NOT greekadvance.
Adam Dickmeiss [Mon, 12 Mar 2007 11:18:00 +0000 (11:18 +0000)]
advancegreek ; NOT greekadvance.

17 years agoAdded character conversion support for "greekadvance"; based on patch from
Adam Dickmeiss [Mon, 12 Mar 2007 10:59:58 +0000 (10:59 +0000)]
Added character conversion support for "greekadvance"; based on patch from
Giannis Kosmas.

17 years agoEncapsulate ZOOM_resultset_destroy.
Adam Dickmeiss [Mon, 12 Mar 2007 08:27:44 +0000 (08:27 +0000)]
Encapsulate ZOOM_resultset_destroy.

17 years agoFixed yaz_iconv to return YAZ_ICONV_EINVAL if an incomplete MARC-8
Adam Dickmeiss [Fri, 9 Mar 2007 08:39:38 +0000 (08:39 +0000)]
Fixed yaz_iconv to return YAZ_ICONV_EINVAL if an incomplete MARC-8
combo sequence is met. Before the error was not set so it would
be unknown.

17 years agoAdjust marcdump so that it skips until record separator is read
Adam Dickmeiss [Thu, 8 Mar 2007 12:45:02 +0000 (12:45 +0000)]
Adjust marcdump so that it skips until record separator is read

17 years agoFixed reconnect problem for ZOOM-C. The event queue was becoming empty
Adam Dickmeiss [Wed, 7 Mar 2007 14:26:44 +0000 (14:26 +0000)]
Fixed reconnect problem for ZOOM-C. The event queue was becoming empty
in some cases of connect which failed.

17 years agoCheck for errors at all times in this event test
Adam Dickmeiss [Wed, 7 Mar 2007 13:12:42 +0000 (13:12 +0000)]
Check for errors at all times in this event test

17 years agocorrected spelling error
Marc Cromme [Wed, 7 Mar 2007 11:29:39 +0000 (11:29 +0000)]
corrected spelling error
corrected ziffy dependencies

17 years agoOmit acx_pthread.m4 from installation (only part of make dist). YAZ.2.1.53
Adam Dickmeiss [Wed, 7 Mar 2007 09:09:22 +0000 (09:09 +0000)]
Omit acx_pthread.m4 from installation (only part of make dist).

17 years agoYAZ 2.1.53.
Adam Dickmeiss [Wed, 7 Mar 2007 08:54:13 +0000 (08:54 +0000)]
YAZ 2.1.53.

17 years agoTowards 2.1.52. YAZ.2.1.52
Adam Dickmeiss [Wed, 7 Mar 2007 08:05:25 +0000 (08:05 +0000)]
Towards 2.1.52.

17 years agoRemove hardcoded limit of 1024 sockets in ZOOM_event_sys_poll().
Mike Taylor [Wed, 28 Feb 2007 11:14:56 +0000 (11:14 +0000)]
Remove hardcoded limit of 1024 sockets in ZOOM_event_sys_poll().
Note that ZOOM_event_sys_select() still has the limit due to the
fixed-size fd_set structure used as a bitmask for the FDs to
be selected on.

17 years agoFix "HAVE SNPRINTF" check.
Adam Dickmeiss [Mon, 26 Feb 2007 14:24:00 +0000 (14:24 +0000)]
Fix "HAVE SNPRINTF" check.

17 years agoDeal with empty thread spec if that is what ACX_PTHREAD returns.
Adam Dickmeiss [Sun, 25 Feb 2007 21:04:04 +0000 (21:04 +0000)]
Deal with empty thread spec if that is what ACX_PTHREAD returns.
Unfortunately empty thread lib spec is problematic because
'yaz-config --cflags' is not always passed to linker in applications
using YAZ (such as Zebra).

17 years agoChange the use of CFLAGS WRT ACX_PTHREAD. Thread libs/cflags are
Adam Dickmeiss [Sun, 25 Feb 2007 14:46:50 +0000 (14:46 +0000)]
Change the use of CFLAGS WRT ACX_PTHREAD. Thread libs/cflags are
always returned in yaz-config, i.e. 'thread' option for yaz-config is
a no-op.

17 years agoFixed bug #927: DOM Module returns wrong diagnostic (24, should be 25).
Adam Dickmeiss [Sat, 24 Feb 2007 18:44:54 +0000 (18:44 +0000)]
Fixed bug #927: DOM Module returns wrong diagnostic (24, should be 25).

17 years agoUse m4 macro ACX_PTHREAD for POSIX threads detection.
Adam Dickmeiss [Sat, 24 Feb 2007 13:35:23 +0000 (13:35 +0000)]
Use m4 macro ACX_PTHREAD for POSIX threads detection.

17 years agoYAZ 2.1.51
Adam Dickmeiss [Fri, 23 Feb 2007 14:04:37 +0000 (14:04 +0000)]
YAZ 2.1.51

17 years agoYAZ 2.1.50. YAZ.2.1.50
Adam Dickmeiss [Fri, 23 Feb 2007 11:54:38 +0000 (11:54 +0000)]
YAZ 2.1.50.

17 years agoAPI version 2.1.49 due to new functoins yaz_snprintf, yaz_vsnprintf
Adam Dickmeiss [Fri, 23 Feb 2007 10:58:25 +0000 (10:58 +0000)]
API version 2.1.49 due to new functoins yaz_snprintf, yaz_vsnprintf

17 years agoAdded snprintf/vsnprintf wrappers for systems that don't have
Adam Dickmeiss [Fri, 23 Feb 2007 10:15:00 +0000 (10:15 +0000)]
Added snprintf/vsnprintf wrappers for systems that don't have
limits (heavens forbid).

17 years agoNote changes regarding recent ZOOM-C changes
Adam Dickmeiss [Thu, 22 Feb 2007 12:37:28 +0000 (12:37 +0000)]
Note changes regarding recent ZOOM-C changes

17 years agoInternal Debian 2.1.49-1 YAZ.2.1.49.1
Adam Dickmeiss [Wed, 21 Feb 2007 13:00:19 +0000 (13:00 +0000)]
Internal Debian 2.1.49-1

17 years agoRemove event queue when a new task is initiated. Also remove events
Adam Dickmeiss [Wed, 21 Feb 2007 12:53:01 +0000 (12:53 +0000)]
Remove event queue when a new task is initiated. Also remove events
when a connection is destroyed (to prevent a leak if connection is
destroyed while events are outstanding).

17 years agoMoved prototype of ZOOM_connection_remove_tasks further to the "top" of
Adam Dickmeiss [Wed, 21 Feb 2007 09:19:26 +0000 (09:19 +0000)]
Moved prototype of ZOOM_connection_remove_tasks further to the "top" of
the source to prevent warning.

17 years agoChanged task queue management a little for ZOOM C.
Adam Dickmeiss [Wed, 21 Feb 2007 09:17:51 +0000 (09:17 +0000)]
Changed task queue management a little for ZOOM C.
When a diagnostic is produced/received (error condition), the task queue is
cleared immediately. In earlier versions the task queue was cleared when
a new task was inserted in the queue. The effect was that a newly inserted task
was _immediately_ removed and never fired. Hence tasks were silenty
forgotten. The error code is still cleared when a new task is inserted
in the queue.

17 years agoAdded test for checking ZOOM task/event handling.
Adam Dickmeiss [Wed, 21 Feb 2007 09:10:19 +0000 (09:10 +0000)]
Added test for checking ZOOM task/event handling.

17 years agoFixed bug #900: Configure warnings on FreeBSD.
Adam Dickmeiss [Tue, 20 Feb 2007 09:53:30 +0000 (09:53 +0000)]
Fixed bug #900: Configure warnings on FreeBSD.

17 years agoFixed spelling
Adam Dickmeiss [Tue, 20 Feb 2007 09:53:01 +0000 (09:53 +0000)]
Fixed spelling

17 years agoFix type of thread id
Adam Dickmeiss [Tue, 20 Feb 2007 09:39:17 +0000 (09:39 +0000)]
Fix type of thread id

17 years agoFixed compilation and tests for case where Libxml2 is unavailable.
Adam Dickmeiss [Sat, 17 Feb 2007 10:53:05 +0000 (10:53 +0000)]
Fixed compilation and tests for case where Libxml2 is unavailable.

17 years agoFixed bug #615: Document retrievalInfo facilities for Frontend Server.
Adam Dickmeiss [Thu, 8 Feb 2007 11:36:59 +0000 (11:36 +0000)]
Fixed bug #615: Document retrievalInfo facilities for Frontend Server.

17 years agoUpdate retrievalinfo example.
Adam Dickmeiss [Thu, 8 Feb 2007 10:52:06 +0000 (10:52 +0000)]
Update retrievalinfo example.

17 years agoUpdate example.
Adam Dickmeiss [Thu, 8 Feb 2007 10:51:23 +0000 (10:51 +0000)]
Update example.

17 years agoDescribe the asterisk substution for CQL to RPN mappings.
Adam Dickmeiss [Thu, 8 Feb 2007 09:03:31 +0000 (09:03 +0000)]
Describe the asterisk substution for CQL to RPN mappings.

17 years agoIntroduce zoom_yaz_str_to_z3950oid() wrapper, which called
Mike Taylor [Wed, 7 Feb 2007 17:52:44 +0000 (17:52 +0000)]
Introduce zoom_yaz_str_to_z3950oid() wrapper, which called
yaz_str_to_z3950oid() and reports lookup failures with
yaz_log(YLOG_WARN).  This helps to detect otherwise "silent errors",
such as getting back a default-format record when having misspelled a
desired preferredRecordSyntax.

17 years agoFix comment.
Mike Taylor [Wed, 7 Feb 2007 15:13:16 +0000 (15:13 +0000)]
Fix comment.

17 years agoImplemented pass-through CQL-to-PQF conversions. Bug #861.
Adam Dickmeiss [Wed, 7 Feb 2007 13:36:57 +0000 (13:36 +0000)]
Implemented pass-through CQL-to-PQF conversions. Bug #861.

17 years agoDo not print leading space when log level 'notime' is used.
Adam Dickmeiss [Mon, 5 Feb 2007 17:51:48 +0000 (17:51 +0000)]
Do not print leading space when log level 'notime' is used.

17 years agoFixed overly ambitional conditional which led to incorrect handling of
Sebastian Hammer [Sun, 4 Feb 2007 02:24:56 +0000 (02:24 +0000)]
Fixed overly ambitional conditional which led to incorrect handling of
retrieval/backend sub-element

17 years agoOnly use XML standard entities
Adam Dickmeiss [Thu, 1 Feb 2007 09:56:14 +0000 (09:56 +0000)]
Only use XML standard entities

17 years agoBad entity '&nums;'
Adam Dickmeiss [Wed, 31 Jan 2007 15:27:17 +0000 (15:27 +0000)]
Bad entity '&nums;'

17 years agoCapture Ctrl-C and save history
Adam Dickmeiss [Wed, 24 Jan 2007 23:10:01 +0000 (23:10 +0000)]
Capture Ctrl-C and save history

17 years agoDo not save command history if it is empty
Adam Dickmeiss [Wed, 24 Jan 2007 23:09:48 +0000 (23:09 +0000)]
Do not save command history if it is empty

17 years agoFixed bug #832: Problem with MARC/charset in yaz-client.
Adam Dickmeiss [Wed, 24 Jan 2007 15:14:57 +0000 (15:14 +0000)]
Fixed bug #832: Problem with MARC/charset in yaz-client.

17 years agoFix misleading comment
Adam Dickmeiss [Wed, 24 Jan 2007 15:13:20 +0000 (15:13 +0000)]
Fix misleading comment

17 years agoFixed bug #668: save command line history for yaz-client. The history
Adam Dickmeiss [Wed, 24 Jan 2007 11:50:18 +0000 (11:50 +0000)]
Fixed bug #668: save command line history for yaz-client. The history
is saved in ~/.yazclient.history .

17 years agoFixed bug #830: pkg-config support. YAZ installs yaz.pc for Debian
Adam Dickmeiss [Wed, 24 Jan 2007 10:09:31 +0000 (10:09 +0000)]
Fixed bug #830: pkg-config support. YAZ installs yaz.pc for Debian
package libyaz-dev and Redhat package libyaz-devel.

17 years agoFixed bug #831: New yaz-client command: 'source'.
Adam Dickmeiss [Wed, 24 Jan 2007 09:54:04 +0000 (09:54 +0000)]
Fixed bug #831: New yaz-client command: 'source'.

17 years agoVersion 2.1.49.
Adam Dickmeiss [Tue, 23 Jan 2007 20:02:09 +0000 (20:02 +0000)]
Version 2.1.49.

17 years agoTowards 2.1.48. YAZ.2.1.48
Adam Dickmeiss [Tue, 23 Jan 2007 19:31:10 +0000 (19:31 +0000)]
Towards 2.1.48.

17 years agoMore news.
Adam Dickmeiss [Tue, 23 Jan 2007 19:28:08 +0000 (19:28 +0000)]
More news.

17 years agoExtended ZOOM result set options with two options that may be read by
Adam Dickmeiss [Tue, 23 Jan 2007 19:25:21 +0000 (19:25 +0000)]
Extended ZOOM result set options with two options that may be read by
a client: resultSetStatus and presentStatus with values as specified for
the ASN.1. See:
http://www.loc.gov/z3950/agency/markup/04.html#Search-status

17 years agoRule 'make yazj.pdf' produces PDF using jade. Good for checking that the
Adam Dickmeiss [Mon, 22 Jan 2007 12:14:09 +0000 (12:14 +0000)]
Rule 'make yazj.pdf' produces PDF using jade. Good for checking that the
Docbook format is valid.

17 years agoImplemented alternative Item Order package for ZOOM. If option "doc" is set,
Adam Dickmeiss [Mon, 22 Jan 2007 10:35:07 +0000 (10:35 +0000)]
Implemented alternative Item Order package for ZOOM. If option "doc" is set,
that is treated as an ItemOrder with itemRequest being an XML document
external. The value of "doc" is the content.

17 years agoRemove dead code
Adam Dickmeiss [Mon, 22 Jan 2007 09:21:16 +0000 (09:21 +0000)]
Remove dead code

17 years agoIgnore three more files.
Mike Taylor [Sat, 20 Jan 2007 00:31:41 +0000 (00:31 +0000)]
Ignore three more files.

17 years agoUsing dblatex instead of pdfjadetex
Adam Dickmeiss [Fri, 19 Jan 2007 16:08:33 +0000 (16:08 +0000)]
Using dblatex instead of pdfjadetex

17 years agoAdded authorgroup for author(s). Added releaseinfo.
Adam Dickmeiss [Fri, 19 Jan 2007 15:59:49 +0000 (15:59 +0000)]
Added authorgroup for author(s). Added releaseinfo.

17 years agoFor GFS, display COMSTACK error when cs_bind fails.
Adam Dickmeiss [Fri, 19 Jan 2007 10:29:13 +0000 (10:29 +0000)]
For GFS, display COMSTACK error when cs_bind fails.

17 years agoFixed bug #827: Using SSL fails on Debian etch. Fixed by Using
Adam Dickmeiss [Fri, 19 Jan 2007 10:28:42 +0000 (10:28 +0000)]
Fixed bug #827: Using SSL fails on Debian etch. Fixed by Using
SSL_library_init() rather than SSLeay_add_all_algorithms(). Works fine
with libssl0.9.6 (woody) and libssl0.9.8(etch).

17 years agomarc8 test records in dist
Adam Dickmeiss [Thu, 18 Jan 2007 14:46:58 +0000 (14:46 +0000)]
marc8 test records in dist

17 years agoFixed bug #826: Weird looking chars for set of MARC records.
Adam Dickmeiss [Thu, 18 Jan 2007 14:45:05 +0000 (14:45 +0000)]
Fixed bug #826: Weird looking chars for set of MARC records.
Problematic record in test/marc8.marc . The record switched to MARC-8
mode 'Basic Arabic', then back to 'basic Hebrew' (and never back
to Latin1/ASCII).

17 years agoFix test of xmllint precense
Adam Dickmeiss [Thu, 18 Jan 2007 11:44:50 +0000 (11:44 +0000)]
Fix test of xmllint precense

17 years agoExtended the GFS search facility. New member of bend_search_rr
Adam Dickmeiss [Tue, 16 Jan 2007 14:12:37 +0000 (14:12 +0000)]
Extended the GFS search facility. New member of bend_search_rr
'estimated_hit_count' signals that hits is known to be an estmate
(higher or lower than real hit count). New member 'partial_resultset'
signals that the search was partial (hit count is lower or equal than
real hit count). For Z39.50, the information is stored in resultSetStatus
member of SearchResponse APDU. For SRU, the information is signalled
via SRU diagnostic 59: "Result set created with valid partial results
available".

17 years agoIgnore nfaxmltest1.log
Mike Taylor [Mon, 15 Jan 2007 23:43:14 +0000 (23:43 +0000)]
Ignore nfaxmltest1.log

17 years agoYAZ 2.1.47
Adam Dickmeiss [Sat, 13 Jan 2007 10:37:26 +0000 (10:37 +0000)]
YAZ 2.1.47

17 years agoTowards 2.1.46 YAZ.2.1.46
Adam Dickmeiss [Sat, 13 Jan 2007 09:00:03 +0000 (09:00 +0000)]
Towards 2.1.46

17 years agoRemoved mainpage - moved to yaz-util.h
Adam Dickmeiss [Sat, 13 Jan 2007 08:57:47 +0000 (08:57 +0000)]
Removed mainpage - moved to yaz-util.h

17 years agoAdded Doxygen mainpage.
Adam Dickmeiss [Fri, 12 Jan 2007 21:41:53 +0000 (21:41 +0000)]
Added Doxygen mainpage.

17 years agoRenamed ZOOM_process_event to ZOOM_event_nonblock to signal that it
Adam Dickmeiss [Fri, 12 Jan 2007 21:03:30 +0000 (21:03 +0000)]
Renamed ZOOM_process_event to ZOOM_event_nonblock to signal that it
it is the non-blocking part of ZOOM_event. Added per-connection
version called ZOOM_connecton_process which is used by implementation
of ZOOM_event_nonblock.

17 years agoAdded ZOOM_API() to definition of ZOOM_connection_peek_event
Adam Dickmeiss [Thu, 11 Jan 2007 11:05:01 +0000 (11:05 +0000)]
Added ZOOM_API() to definition of ZOOM_connection_peek_event

17 years agoMove HTTP logic out of zgdu.c to http.c.
Adam Dickmeiss [Thu, 11 Jan 2007 10:55:56 +0000 (10:55 +0000)]
Move HTTP logic out of zgdu.c to http.c.