about summary refs log tree commit diff
path: root/src/portab
AgeCommit message (Collapse)Author
2024-02-10Remove outdated, unsupported and broken support for splint(1)Alexander Barton
2023-01-02Make the debug loglevel always availablemichi
This basically means to unifdef DEBUG in (almost) all places. We keep it in src/portab/portab.h so DEBUG stays available to enable assert(). Also add a comment about this.
2022-12-25Spelling fixes, mostly in file commentsAlexander Barton
2020-04-20Unbreak GCC 10 (-fno-common) buildmichi
2020-02-15Fix memory leak in portabtest Check_strtok_r()Alexander Barton
Fix the following Clang "LeakSanitizer" error (which isn't quite relevant in this test program, but anyway): ERROR: LeakSanitizer: detected memory leaks Direct leak of 7 byte(s) in 1 object(s) allocated from: #0 0x7f8c4d022810 in strdup (/lib/x86_64-linux-gnu/libasan.so.5+0x3a810) #1 0x5601a801491a in Check_strtok_r (/net/arthur/home/alex/Develop/ngIRCd/ngIRCd.git/src/portab/portabtest+0x291a) #2 0x5601a8014d77 in main (/net/arthur/home/alex/Develop/ngIRCd/ngIRCd.git/src/portab/portabtest+0x2d77) #3 0x7f8c4c69009a in __libc_start_main ../csu/libc-start.c:308 SUMMARY: AddressSanitizer: 7 byte(s) leaked in 1 allocation(s). FAIL: portabtest
2018-02-25portab/Makefile: Split list into separate linesAlexander Barton
2016-07-22Make sure that SYSCONFDIR is always setAlexander Barton
This is useful when ./configure hasn't been run but some source code linters are run in an editor, for example.
2015-08-01Whitespace fixes (no functional changes)Alexander Barton
2015-07-19Streamline ".gitignore" filesAlexander Barton
2014-03-17Update copyright notices of recently changed filesAlexander Barton
2014-03-17portab.h: Restructure and clean up codeAlexander Barton
- Don't use HAVE_SYS_TYPES_H, <sys/types.h> is a required header now. - Streamline check for boolean data types. - Better indent #ifdef constructs.
2014-03-17Remove imp.h and exp.h header filesAlexander Barton
These include files don't have a function any more, remove them.
2014-03-16strdup.c: Code cleanupAlexander Barton
2014-03-16Code cleanup, remove blank linesAlexander Barton
2014-01-17Fix configure script and "make check" for TCP WrappersAlexander Barton
Add missing #include's and static variables. Problem spotted on OpenBSD.
2014-01-04Support non-standard vsnprintf() return codeAlexander Barton
C99 states that vsnprintf() "returns the number of characters that would have been printed if the n were unlimited"; but according to the Linux manual page "glibc until 2.0.6 would return -1 when the output was truncated" -- so we have to handle both cases ...
2014-01-01portabtest: Add checks for strdup(), strndup(), and strtok_r()Alexander Barton
2014-01-01portabtest: Actually test functionsAlexander Barton
Test functions snprintf(), strlcpy(), strlcat(), vsnprintf() for correctness, not only existance (which was quite useless, because if they weren't available, the program could not have been linked at all ...).
2013-12-29portabtest: Only use one exit code to indicate errorsAlexander Barton
2013-12-29portabtest: Code cleanupAlexander Barton
2013-11-09vsnprintf.c: make code compatible with ansi2knr toolAlexander Barton
2013-11-09Remove unused vsnprintf.c test functionAlexander Barton
2013-08-26private strndup() implementation in case libc does not provide itFederico G. Schwindt
2012-12-25Add Cygwin binaries (*.exe) to .gitignore filesAlexander Barton
2012-10-11Disable UID/GID checks on "single user OS"Alexander Barton
Don't abort on "single user operating systems" that don't know more than one user account and therefore can't change user and group IDs. Currently, the only such system supported by ngIRCd is Haiku, a BeOS clone.
2012-09-24Remove all geneerated Makefile.am on "make maintainer-clean"Alexander Barton
2012-09-24Include all build-system files into distribution archivesAlexander Barton
2012-09-23Change build system to support new and old GNU automakeAlexander Barton
Starting with GNU automake 1.12, the "de-ANSI-fication support" has been removed, which ngIRCd used to enable building itself on very old systems. Now the problem is, that using automake >= 1.12 isn't working because of the now unsupported M4 macros. Therefore the solution that this patch implements is to dynamically generate the automake input files with our own ./autogen.sh script: configure.ng => configure.in Makefile.ng => Makefile.am This is quite an ugly approach, but it works and enables us to: 1. use current automake >= 1.12 for development and "private builds", 2. still build distribution archives using automake 1.11.x that have "de-ANSI-fication support" enabled in the generated Makefile's. And if you are using Makefile's generated with a automake version newer than 1.11.x (without "de-ANSI-fication support"), the ./configure script warns you not to use this generated build system to generate distribution archives. Drawback of this patch: you MUST use our autogen.sh script, you can't call the autoconf/automake commands directly any more; but autoreconf should still work ...
2012-09-13configure.in: use AC_CANONICAL_HOST (not AC_CANONICAL_TARGET)Alexander Barton
See the autoconf manual for details: http://www.gnu.org/software/autoconf/manual/autoconf.html#Specifying-Target-Triplets
2011-11-06Test for gai_strerror()Alexander Barton
If gai_strerror() isn't available, use a macro that simply returns a static error message (regardless of the real error code). For example, GNU libc 2.0.7 doesn't implement gai_strerror().
2011-02-13Code cleanup: mostly removing empty linesAlexander Barton
2011-02-13Add Doxygen @file documentation to each source and header fileAlexander Barton
2010-10-19Only use "__attribute__ ((unused))" if GCC >=2.8 is usedAlexander Barton
At least GCC 2.7.2 doesn't support this attribute.
2008-11-13Added some missing files of GIT tree to distribution archivesAlexander Barton
The following bits and bytes were not included in distribution archives: - contrib: ngindent, ngircd.sh - contrib/Debian: ngircd.postinst - contrib/MacOSX: preinstall.sh, postinstall.sh - doc/src: Doxyfile, header.inc.html, footer.inc.html, ngircd-doc.css - src/portab: splint.h
2008-08-01Make ngIRCd compile and run on NeXTSTEP 3.3 and OPENSTEP 4.2Alexander Barton
by Steven D. Blackford <kb7sqi@aol.com>: "I wanted to let you know that I've done a quick port of ngircd-0.12.0 for NEXTSTEP3.3/OPENSTEP4.2. There wasn't a lot of changes required to get it to compile clean, but I did make the necessary changes so that I didn't have to use -posix flag. The NeXT has a pretty buggy POSIX implementation so I always try to work around it. :-) Anway, here's the changes required to get it to compile."
2008-05-26Use strtok_r instead of strchr in IRC_JOIN.Scott Perry
This patch does significant cleanup on the join code by using strtok_r instead of mangling strchr to parse channel names and keys in parallel when a JOIN command contains a list of channels and keys. Also adds an strtok_r implementation to libportab.
2008-04-09Added "portabtest" binary to .gitignore file in src/portabtest/.Alexander Barton
2008-04-09Moved .cvsignore files to .gitignoreAlexander Barton
Since we are using GIT starting from now, I converted all the .cvsignore files to .gitignore files.
2006-12-28added "portabtest" binary to list of files to ignore.Alexander Barton
2006-12-28Added .cvsignore files to hide generated files from CVS.Alexander Barton
2005-07-31Removed unnecessary #define of "LOCAL", now use plain C "static" instead.Alexander Barton
2005-04-16use strdup() to add oper hostname mask.Florian Westphal
2005-04-16private strdup() implementation in case libc does not provide it.Florian Westphal
2005-04-09Use typedef instead of #define to declare the socklen_t type if needed.Alexander Barton
2005-03-30Debine NDEBUG if DEBUG isn't defined to disable all assert() checks as well.Alexander Barton
2005-03-19Remove INT, LONG, BOOLEAN, STATIC, CONST, CHAR datatypes.Florian Westphal
use stdbool.h / inttypes.h if available.
2005-02-27Updated to latest strl{cat|cpy} code of rsync:Alexander Barton
- Make sure that strlcpy() returns the right value when the bufsize is 0. - Fixed a bug in strlcat() where it would not properly detect a no-change condition if called with an initial string longer than the specified size limit (due to an unsigned var's inability to go negative). Patch by Florian Westphal, <westphal@foo.fh-furtwangen.de>.
2005-01-18Fixed return values of our own implementation of strlcpy(). The code hasAlexander Barton
been taken from rsync and they fixed it, but we didn't until today :-/
2004-03-15Fixed detection of GNU C version and usability of __attribute__.Alexander Barton
2004-01-17Use "__attribute__" only if gcc is at least version 2.7Alexander Barton