Commit Graph

22 Commits

Author SHA1 Message Date
188989e067 Update copyright year 2024-01-07 12:41:02 +01:00
15ba1db248 Update copyrights 2023-08-31 12:57:30 +02:00
33a6454aa7 gcc specific C constructor/destructors support for MSVC
* libwget/private.h: Define INITIALIZER to support constructors with MSVC.
* libwget/dns.c: Use INITIALIZER for library constructor.
* libwget/http.c: Likewise.
* libwget/init.c: Likewise.
* libwget/random.c: Likewise.
* libwget/ssl_gnutls.c: Likewise.
* libwget/ssl_openssl.c: Likewise.
* libwget/ssl_wolfssl.c: Likewise.

Co-authored-by: Tim Rühsen <tim.ruehsen@gmx.e
2023-08-18 20:40:02 +02:00
3dc7f71098 Update copyright year 2022-02-25 17:46:43 +01:00
22162f82b2 Update copyright year 2021-01-22 21:58:38 +01:00
59d9ecd9c0 * Update copyright year to 2020 2020-01-10 00:33:02 +01:00
15050b36fa * libwget/random.c: Improve C99 compliancy 2019-09-23 21:17:38 +02:00
4b9edbad2d Update Copyright statements to be compatible with update-copyright module 2019-09-10 23:41:56 +02:00
aadf56562f Rename wget_thread_mutex_t -> wget_thread_mutex
* include/wget/wget.h: Rename wget_thread_mutex_t -> wget_thread_mutex
* libwget/*.c: Likewise
* src/*.c: Likewise
* unit-tests/test-cond.c: Likewise
2019-07-18 12:54:37 +02:00
cdb3600791 Update copyrigght to 2019 2019-01-02 12:42:53 +01:00
3178560d7b Fix misspellings 2018-12-27 19:22:27 -02:00
3688ffb941 Update copyright to 2018 2018-04-30 20:52:11 +02:00
b82f692949 Thread abstraction via gnulib thread wrapper (glthread)
* bootstrap.conf: Add modules cond, lock and thread,
  remove module pthread
* include/wget/wget.h: Remove pthread code,
  add new wget_thread_* functions,
  amend params of wget_thread_* functions,
  add init and exit functions for mutex initialization
* */*.[ch]: Amend threading to new API

This change let libwget work with different kinds of
threading libraries incl. pthreads and windows threads.
2017-12-17 14:20:01 +01: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
cd88f68f44 * libwget/random.c: Include process.h on Windows 2017-03-21 12:56:45 +01:00
ec396c577f Fix URLs to HTTPS where possible 2017-02-28 15:31:30 +01:00
9568b0c87e Rename include/libwget.h to include/wget/wget.h+wgetver.h 2016-09-30 09:47:32 +02:00
6ceb635ef6 Fix wget_srandom()
* include/libwget.h.in: Adjust wget_random() return type to int
* libwget/random.c (libwget/random.c): Use initstate_r() for seeding,
  (wget_srandom): Use initstate_r() for seeding
2016-05-08 22:40:33 +02:00
bc385663ad Fix docs for wget_srandom()
* libwget/random.c: Fix param description
2016-04-25 21:15:30 +02:00
ac5204e56e Fix argument to srandom()
* libwget/random.c: Cast argument to unsigned int
2016-02-06 20:43:31 +01:00
95c43f479f Fix docs for wget_srandom()
* libwget/random.c: Fix docs for wget_srandom()
2016-02-06 20:42:32 +01:00
826e5ac601 Add thread-safe wrapper code around random() and srandom()
* docs/Makefile.am: Add wget_random and wget_srandom to docs
* include/libwget.h.in: Add wget_random and wget_srandom
* libwget/Makefile.am: Add random.c
* libwget/http.c: Use wget_random()
* libwget/random.c: New file with wget_random and wget_srandom
* src/options.c: Remove call to srandom()
2016-01-22 20:50:12 +01:00