mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00:00
b05785953e
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 | ||
cut.1 | ||
cut.c | ||
Makefile | ||
Makefile.depend |