busybox/libbb
Denis Vlasenko 50f7f446ec bb_full_fd_action: remove potential xmalloc from NOFORK path
cat: stop using stdio.h opens
libbb: introduce & use open[3]_or_warn
function                                             old     new   delta
open3_or_warn                                          -      54     +54
bb_cat                                               115     144     +29
open_or_warn                                           -      25     +25
unlzma                                              2404    2412      +8
chattr_main                                          334     339      +5
xstrtoul_range_sfx                                   251     255      +4
telnet_main                                         1514    1510      -4
static.opt                                             4       -      -4
qgravechar                                           122     118      -4
fuser_add_pid                                         61      54      -7
fuser_add_inode                                      154     147      -7
writeFileToTarball                                  1542    1534      -8
refresh                                             1156    1148      -8
do_show                                              856     846     -10
read_leases                                          212     200     -12
setup_redirects                                      236     222     -14
iproute_list_or_flush                               1582    1568     -14
read_config                                          427     411     -16
write_leases                                         284     264     -20
hash_file                                            338     318     -20
copy_file                                           1760    1740     -20
do_iproute                                          2610    2588     -22
bb_full_fd_action                                    320     269     -51
open_to_or_warn                                      103      49     -54
fuser_main                                          1660    1596     -64
.rodata                                           131160  131096     -64
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 4/19 up/down: 125/-423)        Total: -298 bytes
2007-04-11 23:20:53 +00:00
..
ask_confirmation.c
bb_askpass.c passwd: rework: 2006-11-30 16:41:15 +00:00
bb_do_delay.c
bb_pwd.c random style fixes (extra spaces deleted) 2007-03-24 15:40:16 +00:00
bb_strtonum.c merge post-1.3.0 fixes 2006-12-26 18:17:42 +00:00
change_identity.c login: re-enable Ctrl-^C before execing shell. 2006-10-31 17:34:44 +00:00
chomp.c wget: fix error message. 2006-11-10 23:25:53 +00:00
compare_string_array.c - fix bug where we did not reject invalid classes like '[[:alpha' 2007-03-30 14:43:27 +00:00
concat_path_file.c ls: cleanup part 1 2006-10-28 12:37:16 +00:00
concat_subpath_file.c chattr: bugfixes and size reduction 2006-12-26 03:36:28 +00:00
Config.in cmdedit is not a 'command' editing anymore, it's just editing (generic), 2007-01-22 09:03:07 +00:00
copy_file.c bb_full_fd_action: remove potential xmalloc from NOFORK path 2007-04-11 23:20:53 +00:00
copyfd.c bb_full_fd_action: remove potential xmalloc from NOFORK path 2007-04-11 23:20:53 +00:00
correct_password.c Do not fail password check if shadow password does not exist - 2007-03-13 13:01:14 +00:00
crc32.c make compressed help code NOMMU- and NOFORK-friendly - 2007-04-10 21:40:19 +00:00
create_icmp6_socket.c ping: don't measure times if ping payload is less than 8 bytes; 2007-03-03 00:36:35 +00:00
create_icmp_socket.c clean up accumulated whitespace damage 2007-03-07 09:35:43 +00:00
default_error_retval.c Rename two config options: 2007-04-10 23:03:30 +00:00
device_open.c small stupid changes. no code changes 2006-12-24 07:30:09 +00:00
dump.c preparatory patch for -Wwrite-strings #2 2007-01-29 22:51:25 +00:00
error_msg_and_die.c Rename two config options: 2007-04-10 23:03:30 +00:00
error_msg.c
execable.c Rename two config options: 2007-04-10 23:03:30 +00:00
fclose_nonstdin.c hunt down improper include <>, make mkswap output 4Gb+ friendly 2006-11-24 15:38:03 +00:00
fflush_stdout_and_exit.c Rename two config options: 2007-04-10 23:03:30 +00:00
fgets_str.c rename functions to more understandable names 2006-10-26 23:25:17 +00:00
find_mount_point.c cut 0.5k off mkfs.minix 2006-11-29 18:15:52 +00:00
find_pid_by_name.c replace /proc scanning code by more versatile one. 2006-11-05 00:43:51 +00:00
find_root_device.c preparatory patch for -Wwrite-strings #1 2007-01-29 22:51:00 +00:00
full_write.c httpd: a little bit more correct handling of CGI "HTTP/xxx" output 2007-02-13 23:42:54 +00:00
get_console.c init: code readability enhancements; very small code changes 2007-02-17 15:52:02 +00:00
get_last_path_component.c preparatory patch for -Wwrite-strings #2 2007-01-29 22:51:25 +00:00
get_line_from_file.c sed,get_line_from_file: improve comments 2007-01-17 23:16:16 +00:00
getopt32.c style fixes. No code changes. 2007-04-10 15:42:06 +00:00
herror_msg_and_die.c make a few struct bb_applet members conditional 2007-04-10 21:38:30 +00:00
herror_msg.c
human_readable.c random style fixes (extra spaces deleted) 2007-03-24 15:40:16 +00:00
inet_common.c - sed -i -e "/\$Id:/d;" 2007-01-22 17:04:53 +00:00
info_msg.c
inode_hash.c - fix segfault in reset_ino_dev_hashtable() when *hashtable was null. 2007-04-05 09:21:24 +00:00
isdirectory.c
Kbuild - add libbb function str_tolower to convert a string to lowercase. 2007-04-10 09:37:29 +00:00
kernel_version.c modprobe: reformat to match bbox style 2006-10-27 15:12:50 +00:00
last_char_is.c diff: fix -q exit code 2006-12-16 22:18:44 +00:00
lineedit.c fix inadvertently leaked PWD_BUFFER_SIZE 2007-03-18 00:57:15 +00:00
llist.c getopt32: fix llist_t options ordering. llist_rev is not unused. 2007-04-08 15:08:42 +00:00
login.c login: re-enable Ctrl-^C before execing shell. 2006-10-31 17:34:44 +00:00
loop.c strdup -> xstrdup 2007-01-19 21:33:19 +00:00
make_directory.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
makedev.c fix warning from needlessly-global functions 2007-01-22 23:04:27 +00:00
match_fstype.c svn add match_fstype.c :( 2007-04-05 22:19:43 +00:00
md5.c #if CONFIG_xxx -> #if ENABLE_xxx 2006-11-01 09:13:26 +00:00
messages.c gzip: Improve ptr_to_globals trick, allowing gcc 2007-03-15 19:48:35 +00:00
mode_string.c - the archivers expect mode to be a mode_t, so do not trip signed/unsigned conversion purposefully 2007-01-22 17:48:08 +00:00
mtab_file.c tar: sanitize option handling 2006-11-24 21:54:44 +00:00
mtab.c erase_mtab: do not limit ourself to 40 mtab entries 2006-11-27 17:29:09 +00:00
obscure.c passwd: rework: 2006-11-30 16:41:15 +00:00
parse_mode.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
perror_msg_and_die.c make a few struct bb_applet members conditional 2007-04-10 21:38:30 +00:00
perror_msg.c
perror_nomsg_and_die.c fix warning from needlessly-global functions 2007-01-22 23:04:27 +00:00
perror_nomsg.c fix warning from needlessly-global functions 2007-01-22 23:04:27 +00:00
pidfile.c pidfile creation mode set to 0666 (umask affects it as usual) 2007-03-27 22:05:34 +00:00
process_escape_sequence.c Implement first instance of NOFORK applet - echo 2007-04-09 13:04:50 +00:00
procps.c make sure ps/top output what they claim: vsz, not rss ... down the line we should make the output controllable either at runtime or buildtime as both statistics are quite useful 2007-02-08 08:21:58 +00:00
pw_encrypt.c passwd: small size optimization. salt generation improved 2006-11-30 20:41:28 +00:00
read.c clean up accumulated whitespace damage 2007-03-07 09:35:43 +00:00
README
recursive_action.c find: fix handling of -prune 2007-04-08 10:52:28 +00:00
remove_file.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
restricted_shell.c su: make /etc/shells check configurable 2006-12-19 00:20:20 +00:00
run_shell.c
safe_strncpy.c httpd: add -u user[:grp] support 2006-10-05 22:50:22 +00:00
safe_write.c
selinux_common.c fix accumulated whitespace and indentation damage 2007-03-20 11:30:28 +00:00
setup_environment.c runit/chpst: "change process state" utility 2006-10-03 15:57:40 +00:00
sha1.c style fixes 2006-12-26 10:42:51 +00:00
simplify_path.c syslogd: fix "readpath bug" by using readlink instead 2007-02-11 16:19:28 +00:00
skip_whitespace.c leftover of e2fsck surgery 2006-12-26 02:51:29 +00:00
speed_table.c
str_tolower.c - add libbb function str_tolower to convert a string to lowercase. 2007-04-10 09:37:29 +00:00
trim.c
u_signal_names.c stop using (yet another) static buffer 2007-03-14 21:56:51 +00:00
udp_io.c nc: port nc 1.10 to busybox 2007-04-05 20:26:28 +00:00
uuencode.c
vdprintf.c accumulated post-1.4.0 fixes 2007-01-24 22:02:01 +00:00
verror_msg.c random small shrinkage and elimination of statics 2007-04-07 00:44:31 +00:00
vfork_daemon_rexec.c fix misplaced #if 2007-04-11 07:26:56 +00:00
vherror_msg.c
vinfo_msg.c
vperror_msg.c
warn_ignoring_args.c hunt down improper include <>, make mkswap output 4Gb+ friendly 2006-11-24 15:38:03 +00:00
wfopen_input.c bb_full_fd_action: remove potential xmalloc from NOFORK path 2007-04-11 23:20:53 +00:00
wfopen.c rename functions to more understandable names 2006-10-26 23:25:17 +00:00
xatonum_template.c s/extern inline/static ATTRIBUTE_ALWAYS_INLINE/g 2006-12-16 23:48:13 +00:00
xatonum.c s/extern inline/static ATTRIBUTE_ALWAYS_INLINE/g 2006-12-16 23:48:13 +00:00
xconnect.c make a few struct bb_applet members conditional 2007-04-10 21:38:30 +00:00
xfuncs.c bb_full_fd_action: remove potential xmalloc from NOFORK path 2007-04-11 23:20:53 +00:00
xgetcwd.c syslogd: fix "readpath bug" by using readlink instead 2007-02-11 16:19:28 +00:00
xgethostbyname.c xgethostbyname: more readable 2006-11-21 20:35:22 +00:00
xreadlink.c syslogd: fix "readpath bug" by using readlink instead 2007-02-11 16:19:28 +00:00
xregcomp.c less: stop dying on bad regexps, quietly pipe data w/o 2006-12-21 13:24:58 +00:00

Please see the LICENSE file for copyright information (GPLv2)

libbb is BusyBox's utility library.  All of this stuff used to be stuffed into
a single file named utility.c.  When I split utility.c to create libbb, some of
the very oldest stuff ended up without their original copyright and licensing
information (which is now lost in the mists of time).  If you see something
that you wrote that is mis-attributed, do let me know so we can fix that up.

	Erik Andersen
	<andersen@codepoet.org>