6246345ef7
Remove nonnull attribute from some functions
...
* include/wget/wget.h: Remove nonnull attribute from some functions
* libwget/encoding.c: Add explicit checks for NULL
* libwget/io.c: Likewise
* libwget/pipe.c: Likewise
* libwget/strlcpy.c: Likewise
* libwget/utils.c: Likewise
2017-05-15 10:28:03 +02:00
c6ee3d79ad
Fix syntax-check 'sc_prohibit_have_config_h'
...
* cfg.mk: Remove sc_prohibit_have_config_h from local-checks-to-skip
* libwget/*.c: Include <config.h> unconditionally
* src/*.c: Likewise
* tests/*.c: Likewise
2017-04-30 22:01:34 +02:00
ec396c577f
Fix URLs to HTTPS where possible
2017-02-28 15:31:30 +01:00
bfcd65c12b
Use typedefs for function pointer arguments
...
* include/wget/wget.h: Add typedefs
* libwget/cookie.c: Use typedefs
* libwget/css.c: Likewise
* libwget/css_url.c: Likewise
* libwget/decompressor.c: Likewise
* libwget/hashmap.c: Likewise
* libwget/hsts.c: Likewise
* libwget/http.c: Likewise
* libwget/init.c: Likewise
* libwget/io.c: Likewise
* libwget/list.c: Likewise
* libwget/logger.c: Likewise
* libwget/metalink.c: Likewise
* libwget/net.c: Likewise
* libwget/netrc.c: Likewise
* libwget/ocsp.c: Likewise
* libwget/private.h: Likewise
* libwget/robots.c: Likewise
* libwget/stringmap.c: Likewise
* libwget/tls_session.c: Likewise
* libwget/vector.c: Likewise
* libwget/xml.c: Likewise
* src/blacklist.c: Likewise
* src/host.c: Likewise
* src/options.c: Likewise
* src/wget.c: Likewise
* tests/stringmap_perf.c: Likewise
* tests/test.c: Likewise
2017-01-23 14:43:17 +01:00
09b172dfc0
* libwget/io.c (wget_ready_2_transfer): Fix INF timeout for select()
2017-01-18 20:17:14 +01:00
5495dab56a
Fallback to select() if poll() not available
...
* bootstrap.conf: Add module select
* libwget/io.c (wget_ready_2_transfer): Add fallback code
2017-01-18 11:15:24 +01:00
1f39794852
Add function wget_truncate()
...
* bootstrap.conf: Ad gnulib module ftruncate
* include/wget/wget.h: Add wget_truncate
* libwget/io.c: Add wget_truncate
* src/job.c: Call wget_truncate instead of truncate
The truncate() function is not covered by gnulib.
wget_truncate() is a wrapper around ftruncate(), which is covered
by gnulib.
2017-01-06 12:14:40 +01:00
7803f3a01a
* libwget/io.c: Use open() instead of creat()
...
open() is covered by gnulib, creat() not.
2016-11-09 19:27:34 +01:00
ed53ecbfa1
Use gnulib basename
...
* bootstrap.conf: Add gnulib module 'dirname'
* libwget/io.c: Use base_name() to get file basename
2016-11-08 12:41:12 +01:00
9568b0c87e
Rename include/libwget.h to include/wget/wget.h+wgetver.h
2016-09-30 09:47:32 +02:00
5e342a99d9
* libwget/io.c (wget_update_file): Add comment regarding owner
...
flags when using mkstemp().
2016-09-15 10:48:03 +02:00
76d5b60c9d
Fix printf format warnings
...
* libwget/http.c: Fix printf format warnings
* libwget/http_highlevel.c: Likewise
* libwget/io.c: Likewise
* libwget/ssl_gnutls.c: Likewise
* src/wget.c: Likewise
2016-06-14 15:06:26 +02:00
1ee2b8b67b
Fix build for systems without getuid()
...
* configure.ac: Check for getuid()
* libwget/io.c (wget_update_file): Check for HAVE_GETUID
2016-05-08 22:45:41 +02:00
af658606af
* libwget/io.c: Remove bug introduced when fixing Coverity
2016-02-07 12:54:55 +01:00
a582d324d6
Fix / silence some Coverity findings
2016-02-07 12:48:41 +01:00
54481adc48
* libwget/io.c: Fix some small glitches in Doxygen area
2016-02-06 21:48:39 +01:00
dd3c2f63b2
Updated copyright year for all relevant files
2016-01-25 13:06:21 +01:00
5304d93dd5
Add docs for I/O functions
...
* docs/Makefile.am: Add libwget-io.3
* libwget/io.c: Add I/O function docs
2016-01-19 10:44:13 +01:00
620a8ae205
Add gnulib module poll
...
* autogen.sh: Add gnulib module poll
* configure.ac: Remove searching for poll.h and sys/poll.h
* libwget/io.c: Remove conditional code
2016-01-11 22:12:43 +01:00
660b47aebb
Fix error return value in I/O code
...
* libwget/io.c: fix return value of __read() in case of error
2015-12-13 16:50:55 +01:00
8aa679cef6
Complete docs in I/O API
...
* libwget/http.c (wget_http_get_response_cb): removed unused variable
(compiler warning).
* libwget/io.c
(wget_fdgetline,wget_getline,wget_read_file,wget_update_file): added
source docs. Refactor: avoid code repetition.
(wget_ready_2_transfer): fixed HTML rendering of docs.
* docs/libwget/libwget-sections.txt: added new functions to GTK-Doc.
2015-12-01 12:00:03 +01:00
e484bef18f
Fix basename in wget_update_file()
...
* libwget/io.c (wget_update_file): Fxi basename
2015-11-18 11:38:07 +01:00
09474588cf
Amend message when successfully updating files
...
* libwget/io.c (wget_update_file): Amend message
2015-11-09 17:02:45 +01:00
d85c4b3fe2
Add new function wget_update_file()
...
* include/libwget.h: Add wget_update_file()
* libwget/io.c: Add wget_update_file()
Add a function to care about locking, temp files, opening
overhead for our typical updating file database procedure.
Useful for HSTS, OCSP and Cookie file databases.
2015-11-09 11:08:43 +01:00
b16792d80a
Typos
2015-10-23 15:49:07 +02:00
0f8e49128a
Transfer copyright to Free Software Foundation, Inc.
2015-09-22 11:50:06 +02:00
c6b0e461a1
Transform Mget into Wget
2015-09-19 22:54:38 +02:00