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
dump.h
grp_.h - commentary typo fix 2008-09-26 11:23:22 +00:00
inet_common.h
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
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
xregex.h