busybox/include
Denis Vlasenko 57abf9e947 libbb: make history saving/loading concurrent-safe
* all history writers always append (not overwrite) history files
* they reload history if they detect that file length has changed since last
write
* they trim history file only when it grows 4 times longer than MAXLINES
* they do this atomically by creating new file and renaming it to old

Unfortunately, this comes at a price:

function                                             old     new   delta
load_history                                           -     346    +346
read_line_input                                     3155    3358    +203
new_line_input_t                                      17      31     +14
...irrelevant small jitter...
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 5/5 up/down: 573/-13)           Total: 560 bytes
2009-03-22 19:00:05 +00:00
..
applets.h ftpd: new applet by Adam Tkac 2009-03-08 09:30:56 +00:00
busybox.h Use intra-DSO calls when we build libbusybox. No-op for normal build. 2008-05-09 17:59:34 +00:00
dump.h libbb: get rid of statics in dump.c; code shrinks a lot too 2008-07-16 11:00:16 +00:00
grp_.h - commentary typo fix 2008-09-26 11:23:22 +00:00
inet_common.h *: introduce and use FAST_FUNC: regparm on i386, otherwise no-on 2008-06-27 02:52:20 +00:00
libbb.h libbb: make history saving/loading concurrent-safe 2009-03-22 19:00:05 +00:00
platform.h optimize 16- and 32-bit moves 2008-12-08 22:56:18 +00:00
pwd_.h - commentary typo fix 2008-09-26 11:23:22 +00:00
rtc_.h libpwdgrp: make it coexist with <pwd.h>, <grp.h> and <shadow.h>. 2008-09-26 10:35:55 +00:00
shadow_.h - commentary typo fix 2008-09-26 11:23:22 +00:00
unarchive.h gunzip: restore mtime. approx +80 bytes of code 2008-11-01 12:54:56 +00:00
usage.h Compatibility fixes: 2009-03-20 22:17:13 +00:00
volume_id.h blkid: new applet. We almost had everything needed for it already 2008-10-12 11:20:08 +00:00
xatonum.h s/othervise/otherwise/g 2008-07-23 08:41:08 +00:00
xregex.h *: introduce and use FAST_FUNC: regparm on i386, otherwise no-on 2008-06-27 02:52:20 +00:00