Define O_BINARY as 0 on Unix. Add declarations for camel_read_socket() and
authorTor Lillqvist <tml@novell.com>
Wed, 30 Nov 2005 09:54:54 +0000 (09:54 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Wed, 30 Nov 2005 09:54:54 +0000 (09:54 +0000)
commit934206b6ab4ee6a11940e649853d91c5efc00f0b
treee27a7950c6e75c31892618eb46991c49598229a9
parentfef4ef16071ed9342cd8ffc1b245e5bcaaea3bd2
Define O_BINARY as 0 on Unix. Add declarations for camel_read_socket() and

2005-11-30  Tor Lillqvist  <tml@novell.com>

* camel-file-utils.h: Define O_BINARY as 0 on Unix. Add
declarations for camel_read_socket() and camel_write_socket(). (In
a not yet committed addition to camel-file-utils.c.)

* camel-block-file.c
* camel-certdb.c
* camel-data-cache.c
* camel-disco-diary.c
* camel-folder-summary.c
* camel-mime-parser.c
* camel-offline-journal.c
* camel-provider.c
* camel-session.c
* camel-store-summary.c
* camel-stream-fs.c
* camel-text-index.c
* camel-uid-cache.c
* camel-vee-store.c: Use gstdio wrappers for full non-ASCII
filename support on Windows.

* camel-block-file.c (key_file_use)
* camel-certdb.c (camel_certdb_save)
* camel-disco-diary.c (camel_disco_diary_new)
* camel-folder-summary.c (camel_folder_summary_load)
* camel-offline-journal.c (camel_offline_journal_construct)
* camel-store-summary.c (camel_store_summary_load,
camel_store_summary_save, camel_store_summary_header_load)
* camel-stream-fs.c (camel_stream_fs_new_with_name)
* camel-text-index.c (dump_raw)
* camel-uid-cache.c (camel_uid_cache_new, camel_uid_cache_save):
Open file in binary mode.

* camel-data-cache.c (data_cache_expire)
* camel-provider.c (camel_provider_init): Use GDir instead of
dirent API for portability and full non-ASCII filename support on
Windows.

* camel-folder-summary.c (camel_folder_summary_load): On Win32
unlink destination before attempting a rename.

* camel-mime-parser.c: Drop unused includes. Use
g_ascii_strcasecmp() instead of strcasecmp() for well-definedness,
and the other string being compared is an ASCII literal anyway.

* camel-provider.c (camel_provider_init) Use G_MODULE_SUFFIX
instead of hardcoding .so.

* camel-session.c (session_thread_wait): Use g_usleep() instead of
usleep() for portability.

* camel-utf8.c: Use g_htons() and g_ntohs() instead of htons() and
ntohs() for portability.
17 files changed:
camel/ChangeLog
camel/camel-block-file.c
camel/camel-certdb.c
camel/camel-data-cache.c
camel/camel-disco-diary.c
camel/camel-file-utils.h
camel/camel-folder-summary.c
camel/camel-mime-parser.c
camel/camel-offline-journal.c
camel/camel-provider.c
camel/camel-session.c
camel/camel-store-summary.c
camel/camel-stream-fs.c
camel/camel-text-index.c
camel/camel-uid-cache.c
camel/camel-utf8.c
camel/camel-vee-store.c