busybox/editors
Denys Vlasenko 259b3c047a sed: open input files sequentially to avoid EMFILE
Currently, sed pre-opens all files, which may cause EMFILE errors
on systems with low ulimit -n.  Change sed to open one file at a time.

function                                             old     new   delta
get_next_line                                        177     235     +58
sed_main                                             682     652     -30
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 58/-30)             Total: 28 bytes

Based on the patch by Daniel Borca <dborca@yahoo.com>

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-11-28 03:14:16 +01:00
..
awk.c awk: fix a bug in argc counting in recent change 2013-11-21 15:09:55 +01:00
cmp.c switch editors/* to embedded-in-source kbuild system 2013-11-13 12:45:33 +01:00
Config.src switch editors/* to embedded-in-source kbuild system 2013-11-13 12:45:33 +01:00
diff.c switch editors/* to embedded-in-source kbuild system 2013-11-13 12:45:33 +01:00
ed.c switch editors/* to embedded-in-source kbuild system 2013-11-13 12:45:33 +01:00
Kbuild.src switch editors/* to embedded-in-source kbuild system 2013-11-13 12:45:33 +01:00
patch_bbox.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
patch_toybox.c *: replace xopen3 with xopen where makes sense 2010-10-18 02:38:27 +02:00
patch.c patch: make -p count path components, not slashes (think /blah//thing) 2011-10-10 19:59:38 +02:00
sed1line.txt add sed mini-doc 2007-11-13 17:13:31 +00:00
sed_summary.htm doc: add info about sed s/.../.../I modifier 2008-03-01 19:29:56 +00:00
sed.c sed: open input files sequentially to avoid EMFILE 2013-11-28 03:14:16 +01:00
vi.c vi: make regexp search case-insensitive if ":set ignorecase" is active 2013-04-21 15:51:41 +02:00