Up to [local] / src / usr.bin / grep
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_6_5_BASE
Revision 1.59 / (download) - annotate - [select for diffs], Thu Jan 31 01:30:46 2019 UTC (5 years, 4 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5
Changes since 1.58: +7 -3 lines
Diff to previous 1.58 (colored)
convert fgetln to getline. this improves portability and sets a good better example for other code to follow. in the common case, grep uses mmap anyway (so no functional change). despite fgetln doing sneaky things with stdio internals, preliminary analysis by lauri suggests this may actually reduce the number of allocations. from Lauri Tirkkonen.