-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Portability improvements, cleanup, and bug fixes #36
base: master
Are you sure you want to change the base?
Portability improvements, cleanup, and bug fixes #36
Commits on Aug 9, 2024
-
* Add or fix support for building on Solaris, illumos, Linux/musl, NetBSD, OpenBSD, IBM AIX, and Haiku. * Use pkg-config when available to determine CFLAGS and libraries. * Cleanup Makefile. * Cleanup excess trailing whitespace characters. * Indent nested preprocessor directives with GNU Cppi. * Tested build under Oracle Solaris, OpenIndiana illumos, Linux/musl, Linux/glibc, IBM AIX, Haiku, FreeBSD, OpenBSD, NetBSD, and Apple macOS. * Compilation tested and working with PCC, GCC, Clang, IBM XL C, IBM Open XL C, Oracle Studio C, NVIDIA HPC SDK C, Portland Group C, and DMD ImportC. Signed-off-by: Jeffrey H. Johnson <trnsz@pobox.com>
Configuration menu - View commit details
-
Copy full SHA for 5fc3404 - Browse repository at this point
Copy the full SHA 5fc3404View commit details -
Fix some variables that are twiddled while uninitialized.
Signed-off-by: Jeffrey H. Johnson <trnsz@pobox.com>
Configuration menu - View commit details
-
Copy full SHA for cc9b175 - Browse repository at this point
Copy the full SHA cc9b175View commit details -
Fix off-by-one resulting in out-of-bounds write.
supdup.c:1157:6: error: Array 'loc[128]' accessed at index 128, which is out of bounds. [arrayIndexOutOfBounds] loc[i] = '\0'; /* terminate */ ^ supdup.c:1136:3: note: After for loop, i has value 128 for (i = 0; i < sizeof(loc); i++) { ^ supdup.c:1157:6: note: Array index out of bounds loc[i] = '\0'; /* terminate */ ^ Signed-off-by: Jeffrey H. Johnson <trnsz@pobox.com>
Configuration menu - View commit details
-
Copy full SHA for e9974ef - Browse repository at this point
Copy the full SHA e9974efView commit details -
Actually suppress error when Chaosnet bridge socket is missing
On every system I've tested, errno is set to ENOENT rather than ECONNREFUSED. This change successfully suppreses the spurious "connect(server): No such file or directory" error message. Signed-off-by: Jeffrey H. Johnson <trnsz@pobox.com>
Configuration menu - View commit details
-
Copy full SHA for e2f5ced - Browse repository at this point
Copy the full SHA e2f5cedView commit details -
Create README.md and fix various spelling errors
Signed-off-by: Jeffrey H. Johnson <trnsz@pobox.com>
Configuration menu - View commit details
-
Copy full SHA for addd9d3 - Browse repository at this point
Copy the full SHA addd9d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 209a7b0 - Browse repository at this point
Copy the full SHA 209a7b0View commit details -
Ensure file handle is valid (non-negative) before closing
Signed-off-by: Jeffrey H. Johnson <trnsz@pobox.com>
Configuration menu - View commit details
-
Copy full SHA for ac001cf - Browse repository at this point
Copy the full SHA ac001cfView commit details -
Fix non-ANSI function declaration (put_newline)
supdup.c:191:19: warning: non-ANSI function declaration of function 'put_newline' Found with smatch. Signed-off-by: Jeffrey H. Johnson <trnsz@pobox.com>
Configuration menu - View commit details
-
Copy full SHA for 0fe59fd - Browse repository at this point
Copy the full SHA 0fe59fdView commit details -
Properly detect bad ports (negative or >65535)
Signed-off-by: Jeffrey H. Johnson <trnsz@pobox.com>
Configuration menu - View commit details
-
Copy full SHA for 553393c - Browse repository at this point
Copy the full SHA 553393cView commit details -
Add *.ln (Lint),
compile_commands.json
, andsupdupd
to.gitignore
Signed-off-by: Jeffrey H. Johnson <trnsz@pobox.com>
Configuration menu - View commit details
-
Copy full SHA for f83521c - Browse repository at this point
Copy the full SHA f83521cView commit details -
Exclude `doc/` from GitHub Linguist; resolves 48.9% of the project being detected (incorrectly) as CartoCSS. Signed-off-by: Jeffrey H. Johnson <trnsz@pobox.com>
Configuration menu - View commit details
-
Copy full SHA for 6f7860c - Browse repository at this point
Copy the full SHA 6f7860cView commit details