Commit Graph

600 Commits

Author SHA1 Message Date
Jens Maus c02665938f
Merge pull request #13 from sodero/topic/additional_error_codes
Add ENOTSUP error code
2021-05-14 00:38:42 +02:00
Jens Maus 1e2863c5b8
fixed README.md 2021-05-14 00:32:09 +02:00
Jens Maus e1da3dadfb
moved from travis-ci to github actions and retired codeclimate. 2021-05-14 00:31:17 +02:00
ola.soder@axis.com b51c79577e Add ENOTSUP error code. 2021-01-20 15:34:37 +01:00
obarthel 975f949aa1 Rewritten to handle date ranges better which lie outside the expected time of day, day of month and month.
The 'struct tm' is now properly updated to reflect the time and date information which comes out of the number of seconds calculated.

A bug reported by Andreas Falkenhahn is resolved which had the effect of distorting the number of seconds calculated.
2020-07-06 12:09:51 +02:00
Olaf Barthel 5f14118d73 Fix for translation bug, which would make "a/../b" into "a./b". Contributed by Thomas Frieden - thank you very much! 2018-12-05 13:31:43 +01:00
Sebastian Bauer b874ff71de Add wcscoll() dummy. 2018-04-22 11:21:24 +02:00
Sebastian Bauer 397013922c Use IsMinListEmpty() for MinList rather than IsListEmpty().
This removes the warnings about breaking the strict-aliasing rules.
2018-04-10 23:20:20 +02:00
Sebastian Bauer 85c36839d5 Create the proper directoy for MAKELIB. 2018-04-10 23:19:13 +02:00
Sebastian Bauer 196d37b28a Compile with -nostdlib, rather than -mcrt=clib2.
We are actually building the clib2 here.
2018-04-10 23:18:30 +02:00
Sebastian Bauer e8086be768 Disable -Wunused-label.
There are a lot of unused lables, depending on the actual
compiling mode.
2018-04-10 23:17:08 +02:00
Sebastian Bauer 82dd474e3b Disable -Wbad-function-cast. It produces a lot of useless warnings. 2018-04-09 23:24:56 +02:00
Sebastian Bauer 58f36203b1 Fix cast to function pointer. 2018-04-09 23:24:07 +02:00
Sebastian Bauer 425f899302
Merge pull request #7 from sba1/wchar-fixes
Wchar fixes
2018-03-31 09:37:50 +02:00
Sebastian Bauer febe89c61b Update changelog. 2018-03-30 22:17:41 +02:00
Sebastian Bauer 3e50be491b Include stdint.h for WCHAR_MAX to avoid redundant definitions. 2018-03-30 21:42:12 +02:00
Sebastian Bauer dfc7f310d6 Don't define wchar_t in C++ as it is a bultin-type there. 2018-03-30 21:35:06 +02:00
Sebastian Bauer a6a9352a00 Compile wchar_wscoll.c. 2018-03-30 21:21:31 +02:00
Sebastian Bauer eb1d784c0d Provide stub for mbrtowc(). 2018-03-30 21:21:11 +02:00
Sebastian Bauer d1092099d0 Provide some more wide char functions. 2018-03-29 20:59:02 +02:00
Sebastian Bauer bc621bed9c Disable the LOG_COMMAND.
Piping will have the consequence that the exit status of the first command
will not be considered. As this is the compiling command in our case, make
will not exit with an error code even if the compiling failed.

While there are shell-specific solutions, disabling LOG_COMMAND seems to
be the most general solution.
2018-03-29 20:57:32 +02:00
Sebastian Bauer 60eebbe732 Implement wcscat(). 2018-03-28 21:23:13 +02:00
Sebastian Bauer 345995000a Implement some more of the iswXXX() functions. 2018-03-28 21:16:14 +02:00
Sebastian Bauer ef18bf5f3e Fix vswprintf() prototype. 2018-03-28 18:47:24 +02:00
Sebastian Bauer 6f3b3b6d28 Implement few wide char functions. 2018-03-28 17:09:18 +02:00
Sebastian Bauer 846eebc66c Fix mbtowc() to and compile it. 2018-03-28 17:08:42 +02:00
Sebastian Bauer 75d47ccdad Build all existing wchar and wctype functions. 2018-03-27 20:03:45 +02:00
Sebastian Bauer 456123fe7f Add dummy wctob(). 2018-03-27 20:02:54 +02:00
Sebastian Bauer 5733c99ba1 Fix wcspbrk() definition to match the prototype. 2018-03-27 20:00:28 +02:00
Sebastian Bauer 391e7e39ad Add wcscoll() prototype. 2018-03-27 19:59:54 +02:00
Sebastian Bauer f5f0e17e78 Define ISO 99 multibyte functions also in C++ context. 2018-03-27 19:59:23 +02:00
Sebastian Bauer f6f0082a0e Include sys/clib2_stdc.h for restrict. 2018-03-27 19:56:45 +02:00
obarthel c84b1fc1ff Tiny fixes 2018-02-18 13:58:25 +01:00
obarthel e35307a7e3 Ignore linker map files, too. 2018-02-17 13:45:21 +01:00
Henning Nielsen Lund 911114c286 add an unimplemented tzset().
ctime_r() and localtime_r() are already using the localtime, so no need to do anything.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/tzset.html

Signed-off-by: Henning Nielsen Lund <hnl_dk@amigaos.dk>
2017-08-27 13:30:12 +02:00
Henning Nielsen Lund 9e998ca108 should have been sys/clib2_stdc.h 2017-08-15 21:53:49 +02:00
Henning Nielsen Lund 99695dec0b we use restrict
Signed-off-by: Henning Nielsen Lund <hnl_dk@amigaos.dk>
2017-08-15 21:45:33 +02:00
Henning Nielsen Lund 0ec7094877 Code depending on statfs or fstatfs do both depend on sys/mount.h and sys/param.h where we only had sys/mount.h
Signed-off-by: Henning Nielsen Lund <hnl_dk@amigaos.dk>
2017-08-15 21:26:45 +02:00
Henning Nielsen Lund a471e73adf add timespec declaration 2017-08-05 17:28:39 +02:00
Henning Nielsen Lund c76bf8e20b add strnlen() 2017-08-01 21:28:07 +02:00
Henning Nielsen Lund 309bbd8c8c Add a few extra wide-character prototypes and the missing typedef locale_t 2017-08-01 21:26:59 +02:00
Henning Nielsen Lund d6e5769bc5 using restrict, so restrict to c99 2017-08-01 14:52:45 +02:00
Henning Nielsen Lund 976b6ae7e1 Change the mbrlen declaration to equal ISO C.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/mbrlen.html

Signed-off-by: Henning Nielsen Lund <hnl_dk@amigaos.dk>
2017-08-01 13:55:11 +02:00
obarthel 8af96cb6cb Merge branch 'master' of https://github.com/adtools/clib2 2017-07-08 18:10:45 +02:00
obarthel febe690623 This got lost last year
The missing calloc() overflow test never made it to the CVS or git repositories :-(
2017-07-08 18:10:28 +02:00
Jens Maus e36ebff16e Merge pull request #3 from adtools/gcc5-fixes
Fixes for compiling with GCC 5.4.0 on AmigaOS 4.1
2017-06-28 08:55:21 +02:00
Steven Solie 6a1fd36b3a Revision bump. 2017-06-28 06:35:31 +02:00
Steven Solie feebeb6751 GCC 5 changes 2017-06-28 06:34:57 +02:00
obarthel 1b2c798467 Fixed calloc() and getopt_long()
Added integer overflow test to calloc().

Tiny change in getopt_long() so that the value pointed to by the "longindex" parameter is always initialized to an invalid index position (that being -1), instead of 0. The value of 0 can break some shell commands, most notably GNU wget.
2017-05-01 18:06:23 +02:00
Jens Maus 053a61fc4b Create LICENSE 2016-12-05 14:41:06 +01:00