CVSROOT: /cvs Module name: src Changes by: t...@cvs.openbsd.org 2019/01/30 18:30:46
Modified files: usr.bin/grep : file.c grep.c Log message: 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.