mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-11 04:42:16 +01:00
25696725b6
This replaces fgetln() with getline(). The main reason for this is portability, making things easier for people who want to compile these tools on non-FreeBSD systems. I appreciate that's probably not the top concern for FreeBSD base tools, but fgetln() is impossible to port to most platforms, as concurrent access is essentially impossible to implement fully correct without the line buffer on the FILE struct. Other than this, many generic FreeBSD tools compile fairly cleanly on Linux with a few small changes. Most uses of fgetln() pre-date getline() support (added in 2009 with |
||
---|---|---|
.. | ||
tests | ||
backupfile.c | ||
backupfile.h | ||
common.h | ||
inp.c | ||
inp.h | ||
Makefile | ||
Makefile.depend | ||
mkpath.c | ||
patch.1 | ||
patch.c | ||
pathnames.h | ||
pch.c | ||
pch.h | ||
util.c | ||
util.h |