svn commit: r204803 - head/usr.bin/uniq

Andrey Chernov ache at nagual.pp.ru
Sun Mar 7 20:10:34 UTC 2010


On Sun, Mar 07, 2010 at 09:31:39PM +0300, Andrey Chernov wrote:
> It is right idea. I'll use sysconf(__SC_LINE_MAX) there.
> But currently it does the same (sysconf.c):
>         case _SC_LINE_MAX:
>                 return (LINE_MAX);
...
> To add more:
> NetBSD uniq grows (contrary, NetBSD comm silently discarding everything 
> afterwards).
> OpenBSD uniq just use fgets with 8192.
> GNU uniq grows.

After thinking a bit more I consider to reimplement unlimited lines here 
instead because enforcing POSIX limit was not the main goal of my commit 
(it was to remove getwc() which is evil). Someone may deal with the limit 
on his own way afterwards.

Will be in the next commit.

-- 
http://ache.pp.ru/


More information about the svn-src-head mailing list