Commit Graph

133 Commits

Author SHA1 Message Date
Brian Cox 7fa7d01f7c more buildsys tinkering -- default compiler args, unicode escapes, swab() detection, setting autoconf language to c++ early on 2019-07-28 09:30:26 -07:00
Brian Cox b308f6871b Bump © year to 2019, because 2019 2019-01-03 20:30:41 -08:00
Brian Cox a95dd9e2a4
Merge pull request #31 from Tripwire/feature/standard-types
Use standard '_t' fixed-width types instead of rolling our own, where available
2018-10-28 14:10:58 -07:00
Brian Cox 15dfea4d85 clean up some formatting issues w/ standard type PR, etc. 2018-10-28 14:04:29 -07:00
Brian Cox c9e32170ba use standard '_t' fixed-width types instead of rolling our own, where available 2018-10-28 12:07:34 -07:00
Brian Cox b36af8598d Update buildsys with automake 1.16 2018-10-15 19:49:19 -07:00
Brian Cox d504fbd37e Tweak so it still builds w/ -std=c++98 2018-10-13 21:07:13 -07:00
Brian Cox 432efb34fb Make OST buildable w/ Apple Clang with -std=c++17. Changes are mostly avoiding conflict w/ std::byte, and replacing std::ptr_fun with lambdas, and getting rid of set_unexpected calls 2018-10-13 20:56:05 -07:00
Brian Cox ee71c537a8 Fix assorted warnings on gcc 8.2.2 2018-10-13 16:54:16 -07:00
Brian Cox 84983b13d4 Add compiler detection for several non-gcc compilers, & fix a gxlc++ compilation issue 2018-09-23 23:54:53 -07:00
Brian Cox ccf8a62fa4 Clean up code formatting with clang-format; add a custom clang-format style that tries to approximate the existing OST code style 2018-03-24 21:28:30 -07:00
Brian Cox 0f236fabf4 Use system/popen on Syllable since msystem/mpopen fail there; root cause is still TBD. 2018-02-24 22:50:25 -08:00
Brian Cox f1525a267a Bump version & copyright year 2018-01-01 17:44:15 -08:00
Brian Cox d06b001efe Platform macros for QNX, & recognize the QNX-only 'Named special file' filetype 2017-09-27 20:25:24 -07:00
Brian Cox 249c2cd33f Additional unit test tweaks to make DOS+DJGPP happier 2017-09-24 23:48:57 -07:00
Brian Cox 9872bef2f2 Fix/implement more unit tests that were marked as 'skipped' 2017-09-24 18:44:47 -07:00
Brian Cox 1333f3c15e LibertyBSD platform detection 2017-09-23 18:21:13 -07:00
Brian Cox 99641c468f Add a platform macro indicating whether OS lets temp files be unlinked while open 2017-09-23 13:19:40 -07:00
Brian Cox ea885446c2 Small Redox path tweaks 2017-09-22 23:40:36 -07:00
brc0x1 9b6750a98c More for Redox support, & cleaner exclusion of SMTP stuff when SUPPORTS_NETWORKING is false 2017-09-22 21:02:50 -07:00
Brian Cox 6a104efd03 Update config.guess & config.sub to GNU latest (but re-adding MidnightBSD fix); add config macros for struct stat fields that aren't always present (instead of static defines in platform.h); platform detection & path handling for Redox 2017-09-22 20:20:17 -07:00
Brian Cox 4f0b019ef3 Tinker with BSD platform detection (now including Bitrig); add policy files for various BSDs (adapted from policy for the closest BSD, Free or Open), plus one for HP-UX adapted from the generic policy 2017-09-21 19:46:56 -07:00
Brian Cox b60dcfa7d6 Merge branch 'dev/next' of https://github.com/Tripwire/tripwire-open-source into dev/next 2017-09-21 13:07:46 -07:00
Brian Cox 096a96ad55 Platform.h tweak & policy file for MirOS BSD 2017-09-21 13:06:52 -07:00
Brian Cox 7545beb0e6 Make sure cFile_i is constructed & destructed cleanly; clean up GetSymLinkStr a bit more; improve Debug/Basic & UnixFSServices/GetExecutableFilename unit tests 2017-09-21 01:12:28 -07:00
brc0x1 a4ae3af444 Fix/implement RISC OS path handling 2017-09-18 17:55:17 -07:00
Brian Cox e18003bb14 AROS path fix 2017-09-13 23:39:50 -07:00
Brian Cox f67c370f29 Enable some new path unit tests 2017-09-13 23:01:22 -07:00
Brian Cox 769874d34b Path fixes for FreeDOS/DJGPP 2017-09-13 21:35:56 -07:00
Brian Cox b648b2493f Fix various unit tests that didn't test anything, or needed cleanup; disable some cTWLocale methods that were unused outside of their own unit tests. 2017-09-08 16:31:36 -07:00
Brian Cox 2a3d69e8c9 Fixes for Cygwin: Use local swab() impl, and tweak policy update test-harness test path handling -- it was prepending a path variable that's always empty, but we were also using absolute paths so we didn't notice elsewhere, though we were using paths of the form //foo/bar/baz. Leading double slashes are significant on Cygwin since they're used to denote UNC paths, so tests failed there & uncovered this problem 2017-09-08 11:58:19 -07:00
Brian Cox 078bf28164 A few little tweaks for SkyOS unit tests & configure robustitude (i.e. relying on stdint.h (if present) to tell us which intrinsic type is 64 bits) 2017-09-07 01:00:58 -07:00
Brian Cox a56bae5397 Only use /dev/urandom if --enable-urandom configure arg is used, since current impl falls over on HP-UX & Solaris 10 SPARC & possibly elsewhere 2017-09-05 19:14:27 -07:00
Brian Cox 7a262bf1c1 Fix AROS build issue that crept in somehow 2017-09-01 17:13:57 -07:00
Brian Cox 5184fe01c4 Customize 'make clean' to also remove test data dirs and gcov files 2017-08-31 19:51:50 -07:00
Brian Cox 7fe1e4f79a Detect support for doors & event ports in a proper autoconf way. 2017-08-31 18:50:02 -07:00
Brian Cox 7310422053 Clean up iCodeConverter singleton on exit 2017-08-28 20:08:38 -07:00
brc0x1 92580983ec Remove more leakage in cHashTable & policy parser 2017-08-25 04:43:52 -07:00
Brian Cox 55020401d9 Fix a few simple leaks inside twtest; fix some file permissions that got set wrong in last commit 2017-08-25 18:28:09 -07:00
Brian Cox b3bcdbbcd9 Fix low hanging fruit items from valgrind memcheck results, mostly array deletes 2017-08-25 12:36:15 -07:00
brc0x1 8cec86246f Fix build issues cross compiling for RISC OS (haven't verified we actually work yet, though); fix a couple of build issues left over from recent test-dir changes to twtest 2017-08-24 19:20:40 -07:00
Brian Cox bd3b071e1b ifdef out some unused methods in our HAVAL impl. 2017-08-24 00:57:11 -07:00
Brian Cox 01e25eb493 Remove a couple of unused FSServices methods 2017-08-19 20:38:57 -07:00
Brian Cox d8e323e186 Rename 2038 epoch check to something more accurate & less alarming than 'TimeBombExploded' (sheesh), and only bother with it if time_t is 32 bits. 2017-07-31 18:49:36 -07:00
Brian Cox 24dba1b374 Remove or disable a little dead code uncovered by gcov 2017-07-28 20:15:50 -07:00
Brian Cox 180bf761e0 Buildsys files regenerated with automake 1.15.1, with no exciting new features 2017-07-08 22:18:04 -07:00
Brian Cox dae64c48ed Update copyright years 2017-04-25 18:31:11 -07:00
Brian Cox 8ba032c424 Change uses of _DEBUG and _DEBUG_DB defines to be DEBUG, since that's the only symbol that gets defined by configuring with --enable-debug. 2017-04-12 21:44:51 -07:00
Brian Cox a1e614d694 Remove irritating 'eof:' comments, and some ancient dead code in stringutil.cpp 2017-04-11 21:29:32 -07:00
Brian Cox 9e1b078aac Fix setting of IS_xxx OS macros for various platforms 2017-03-29 00:13:22 -07:00