busybox/util-linux
Denys Vlasenko 8220399173 nsenter,unshare: share common code; fix a bug of not closing all fds
function                                             old     new   delta
xvfork_parent_waits_and_exits                          -      64     +64
exec_prog_or_SHELL                                     -      39     +39
unshare_main                                         873     810     -63
nsenter_main                                         663     596     -67
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/2 up/down: 106/-130)          Total: -27 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-04-02 18:06:24 +02:00
..
volume_id blkid: add bcache support 2015-12-16 14:42:25 -05:00
acpid.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
blkdiscard.c blkdiscard: new applet 2016-01-02 01:18:32 +01:00
blkid.c blkid: if parameters are given, do not scan /dev 2012-03-03 15:09:07 +01:00
blockdev.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
Config.src setarch: add support for '-R' (disable randomization) 2015-10-19 23:26:50 +02:00
dmesg.c dmesg: add -r option to print raw format even when FEATURE_DMESG_PRETTY is enabled 2015-08-24 21:08:02 +02:00
fatattr.c fatattr: use the standard type for 32-bit int 2014-07-04 15:16:46 +02:00
fbset.c Use bb_error_msg instead of bb_info_msg in all commented-out debug printouts 2016-03-30 16:04:37 +02:00
fdformat.c build system: -fno-builtin-printf 2015-10-07 22:42:45 +02:00
fdisk_aix.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
fdisk_gpt.c build system: -fno-builtin-printf 2015-10-07 22:42:45 +02:00
fdisk_osf.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
fdisk_sgi.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
fdisk_sun.c fdisk_sun: fix partition alignment 2013-02-11 00:22:59 +01:00
fdisk.c build system: -fno-builtin-printf 2015-10-07 22:42:45 +02:00
findfs.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
flock.c whitespace fixes. no code changes 2013-01-14 01:34:48 +01:00
freeramdisk.c move remaining help text from include/usage.src.h 2011-04-11 03:29:49 +02:00
fsck_minix.c build system: -fno-builtin-printf 2015-10-07 22:42:45 +02:00
fstrim.c fstrim: fix help text 2015-02-04 15:19:38 +01:00
getopt.c build system: -fno-builtin-printf 2015-10-07 22:42:45 +02:00
hexdump.c Commonalize typical [b,]k,m suffix struct 2013-07-13 23:49:45 +02:00
hwclock.c Use chomp to remove newlines 2015-03-12 20:18:51 +01:00
ipcrm.c build system: -fno-builtin-printf 2015-10-07 22:42:45 +02:00
ipcs.c Use unsigned printf/scanf conversion where more appropriate 2013-11-29 16:45:45 +01:00
Kbuild.src setarch: add support for '-R' (disable randomization) 2015-10-19 23:26:50 +02:00
losetup.c losetup: assorted fixes. Closes 6314 2013-06-27 03:45:16 +02:00
lspci.c whitespace fixes. no code changes 2013-01-14 01:34:48 +01:00
lsusb.c move remaining help text from include/usage.src.h 2011-04-11 03:29:49 +02:00
mdev.c libbb: get_uidgid() always called with allow_numeric=1 2015-10-19 04:27:17 +02:00
minix.h more bionic fixes 2016-03-14 19:34:15 +01:00
mkfs_ext2_test.sh mkfs_ext2: use compatible inode sizes; add -I <inodesize>. (by Vladimir) 2009-10-22 12:12:17 +02:00
mkfs_ext2.c Replace a few more bb_info_msg's by bb_error_msg or printf 2016-03-30 16:20:28 +02:00
mkfs_ext2.txt mkfs_ext2: use compatible inode sizes; add -I <inodesize>. (by Vladimir) 2009-10-22 12:12:17 +02:00
mkfs_minix.c join some common strings, -400 bytes 2015-10-08 11:24:44 +02:00
mkfs_reiser.c typo fixes 2015-05-25 13:46:36 +02:00
mkfs_vfat.c mkfs_vfat: use bb_error_msg for logging, not bb_info_msg 2016-03-30 16:23:10 +02:00
mkswap.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
more.c *: better comments on termios manipulations. No code changes. 2012-01-15 23:00:13 +01:00
mount.c mount: support "nofail" option. Closes 8551 2015-12-30 20:11:34 +01:00
nsenter.c nsenter,unshare: share common code; fix a bug of not closing all fds 2016-04-02 18:06:24 +02:00
pivot_root.c move remaining help text from include/usage.src.h 2011-04-11 03:29:49 +02:00
rdate.c trivial code shrink 2015-02-18 13:47:46 +01:00
rdev.c *: style fixes. no code changes 2011-12-15 12:39:25 +01:00
readprofile.c Use unsigned printf/scanf conversion where more appropriate 2013-11-29 16:45:45 +01:00
rev.c mass removal of underscores from _BB_DIR_foo and _BB_SUID_foo 2011-01-18 13:58:01 +01:00
rtcwake.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
script.c script: make it work even if fd 0 is closed 2014-03-16 12:34:53 +01:00
scriptreplay.c move remaining help text from include/usage.src.h 2011-04-11 03:29:49 +02:00
setarch.c setarch: add support for '-R' (disable randomization) 2015-10-19 23:26:50 +02:00
swaponoff.c swaponoff: fix compile-time warning 2015-12-18 19:02:31 +01:00
switch_root.c typo fix in comment 2015-10-13 12:34:35 +02:00
uevent.c libbb: add setsockopt_foo helpers 2015-08-24 20:00:17 +02:00
umount.c umount: build fix for older glibc 2016-03-28 22:23:33 +02:00
unshare.c nsenter,unshare: share common code; fix a bug of not closing all fds 2016-04-02 18:06:24 +02:00