aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mdev.c
AgeCommit message (Collapse)Author
2008-07-12mdev: if device was moved at creation, at removal coreectly removeDenis Vlasenko
it from moved location and also remove symlinks to it function old new delta build_alias - 78 +78 mdev_main 505 503 -2 make_device 1300 1294 -6 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/2 up/down: 78/-8) Total: 70 bytes
2008-07-06mdev: reinstate "follow symlinks" flag, this time with explanationDenis Vlasenko
2008-07-06mdev: do not follow symlinks in /sys (as was intended prior to rev 18811).Denis Vlasenko
If this breaks things, please document why! mdev,init: use shared code for fd sanitization function old new delta bb_daemonize_or_rexec 155 172 +17 mdev_main 500 505 +5 init_main 907 856 -51 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 22/-51) Total: -29 bytes
2008-07-05*: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko
2008-06-27*: introduce and use FAST_FUNC: regparm on i386, otherwise no-onDenis Vlasenko
text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
2008-06-25whitespace fixes. no code changesDenis Vlasenko
2008-05-31mdev: add commented-out debug code to open stdio.Denis Vlasenko
2008-05-24mdev: fix counting of '%' in patternDenis Vlasenko
2008-05-23mdev: fix whitespace damageDenis Vlasenko
2008-05-22mdev: suppress "may be used uninitialized" warningDenis Vlasenko
2008-05-22mdev: add support for "only rename" option in mdev.confDenis Vlasenko
2008-05-13more -Wall warning fixes from Cristian Ionescu-Idbohrn.Denis Vlasenko
This time it resulted in small code changes: function old new delta nexpr 820 828 +8 tail_main 1200 1202 +2 wrapf 166 167 +1 parse_mount_options 227 209 -18 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/1 up/down: 11/-18) Total: -7 bytes
2008-05-08mdev: /sys/class/block/ are also block devicesDenis Vlasenko
function old new delta make_device 1200 1221 +21
2008-05-02mdev: fix a bug where we were eating argv[0] of helperDenis Vlasenko
2008-04-22whitespace fixes. no code changesDenis Vlasenko
2008-03-29mdev: optional support for regex pattern group substitution.Denis Vlasenko
+142 bytes.
2008-03-29mdev: fix block/char device detection. Closes bug 2144.Denis Vlasenko
2008-03-29mdev: fix "foo 0:0 444 >bar/baz" rule handling. make_device() +23 bytesDenis Vlasenko
2008-03-29mdev: fix a bug where it was not stopping on first matching ruleDenis Vlasenko
(testsuite entry added). Revamped line parsing while at it. function old new delta next_field - 36 +36 make_device 1104 1022 -82 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 36/-82) Total: -46 bytes
2008-03-27mdev: plug a few memory and fd leaks; simplify code a bitDenis Vlasenko
2008-03-26*: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/Denis Vlasenko
2008-03-17*: add -Wunused-parameter; fix resulting breakageDenis Vlasenko
function old new delta procps_scan 1265 1298 +33 aliascmd 278 283 +5 parse_file_cmd 116 120 +4 dname_enc 373 377 +4 setcmd 90 93 +3 execcmd 57 60 +3 count_lines 72 74 +2 process_command_subs 340 339 -1 test_main 409 407 -2 mknod_main 179 177 -2 handle_incoming_and_exit 2653 2651 -2 argstr 1312 1310 -2 shiftcmd 131 128 -3 exitcmd 46 43 -3 dotcmd 297 294 -3 breakcmd 86 83 -3 evalpipe 353 349 -4 evalcommand 1180 1176 -4 evalcmd 109 105 -4 send_tree 374 369 -5 mkfifo_main 82 77 -5 evalsubshell 152 147 -5 typecmd 75 69 -6 letcmd 61 55 -6 add_cmd 1190 1183 -7 main 891 883 -8 ash_main 1415 1407 -8 parse_stream 1377 1367 -10 alloc_procps_scan 55 - -55 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 7/21 up/down: 54/-148) Total: -94 bytes text data bss dec hex filename 797195 658 7428 805281 c49a1 busybox_old 797101 658 7428 805187 c4943 busybox_unstripped
2008-02-20[#1334] exec script for devices even if they dont have device nodesMike Frysinger
2008-02-17libbb: introduce and use xrename and rename_or_warn.Denis Vlasenko
2008-02-01add support for renaming/relocating device nodesMike Frysinger
2008-01-23as reported by George Boudreau, make sure we properly skip blank linesMike Frysinger
2007-12-21fix buglets found by randomconfigDenis Vlasenko
2007-11-19cleanup comments and coding style and rewrite the mdev.conf parser to use ↵Mike Frysinger
common busybox functions and call strdup() less often ... saves a ~few hundred bytes
2007-10-11add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko
EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
2007-08-12trylink: produce even more info about final link stageDenis Vlasenko
trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
2007-06-30introduce and use bb_basename()Denis Vlasenko
function old new delta bb_basename - 26 +26 sv_main 1226 1225 -1 passwd_main 1985 1983 -2 showdirs 482 478 -4 sendCgi 1811 1807 -4 make_device 1354 1350 -4 handleIncoming 2443 2439 -4 func_name 82 78 -4 service_name 2292 2285 -7 main 909 901 -8 cmp_main 555 547 -8 test_main 434 422 -12 act 228 216 -12 find_pair 180 164 -16 rmmod_main 298 280 -18 find_pid_by_name 156 134 -22 modprobe_main 1606 1576 -30 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/16 up/down: 26/-156) Total: -130 bytes text data bss dec hex filename 734933 3028 14400 752361 b7ae9 busybox_old 734801 3028 14400 752229 b7a65 busybox_unstripped
2007-06-20- strndupa is a GNU extension. Using strdup to avoid several errors like:Bernhard Reutner-Fischer
util-linux/mdev.c:(.text+0x29a): undefined reference to `strndupa'
2007-06-14Alex Landau writes: open firmware for reading, not writingMike Frysinger
2007-06-13as suggested by Renaud Cerrato and Souf, switch over to recursive_action() ↵Mike Frysinger
for some nice shrinkage and so we work even when CONFIG_SYSFS_DEPRECATED is off
2007-06-13add support for firmware loadingMike Frysinger
2007-06-08mdev: microscopic enhancement, should change nothingDenis Vlasenko
2007-06-03find_stray_communal_vars: script which finds communal variablesDenis Vlasenko
resize: remove globals var mdev: remove globals var
2007-05-26usage.c: remove reference to busybox.hDenis Vlasenko
*: s/include "busybox.h"/include "libbb.h"
2007-04-04- sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"Bernhard Reutner-Fischer
2007-02-03suppress warnings about easch <applet>_main() havingDenis Vlasenko
no preceding prototype
2007-01-29preparatory patch for -Wwrite-strings #2Denis Vlasenko
2006-11-26small fixes:Denis Vlasenko
fix xstrdup to not grossly overallocate memory use xopen instean of xopen3 in several places etc.
2006-10-16mdev: reduce excessive indentationDenis Vlasenko
2006-10-14add open_read_close() and similar stuffDenis Vlasenko
2006-10-03lots of silly indent fixesDenis Vlasenko
2006-09-29Yet another silly little byte saving. couldn't -> cannotDenis Vlasenko
2006-09-22Change license statements (and clean up headers) on some of the files thatRob Landley
Erik or I are primary copyright holders on.
2006-09-17whitespace cleanupDenis Vlasenko
2006-08-10Patch from Chris Steel to fix mdev deleting device nodes.Rob Landley
2006-08-03Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)