aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mdev.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* mdev: add support for "only rename" option in mdev.confDenis Vlasenko2008-05-221-3/+5
|
* more -Wall warning fixes from Cristian Ionescu-Idbohrn.Denis Vlasenko2008-05-131-1/+4
| | | | | | | | | | | | | 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
* mdev: /sys/class/block/ are also block devicesDenis Vlasenko2008-05-081-2/+8
| | | | | | function old new delta make_device 1200 1221 +21
* mdev: fix a bug where we were eating argv[0] of helperDenis Vlasenko2008-05-021-30/+32
|
* whitespace fixes. no code changesDenis Vlasenko2008-04-221-1/+1
|
* mdev: optional support for regex pattern group substitution.Denis Vlasenko2008-03-291-3/+41
| | | | | +142 bytes.
* mdev: fix block/char device detection. Closes bug 2144.Denis Vlasenko2008-03-291-1/+3
|
* mdev: fix "foo 0:0 444 >bar/baz" rule handling. make_device() +23 bytesDenis Vlasenko2008-03-291-11/+16
|
* mdev: fix a bug where it was not stopping on first matching ruleDenis Vlasenko2008-03-291-109/+99
| | | | | | | | | | | | (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
* mdev: plug a few memory and fd leaks; simplify code a bitDenis Vlasenko2008-03-271-71/+69
|
* *: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/Denis Vlasenko2008-03-261-1/+1
|
* *: add -Wunused-parameter; fix resulting breakageDenis Vlasenko2008-03-171-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* [#1334] exec script for devices even if they dont have device nodesMike Frysinger2008-02-201-4/+14
|
* libbb: introduce and use xrename and rename_or_warn.Denis Vlasenko2008-02-171-1/+1
|
* add support for renaming/relocating device nodesMike Frysinger2008-02-011-5/+43
|
* as reported by George Boudreau, make sure we properly skip blank linesMike Frysinger2008-01-231-2/+6
|
* fix buglets found by randomconfigDenis Vlasenko2007-12-211-2/+2
|
* cleanup comments and coding style and rewrite the mdev.conf parser to use ↵Mike Frysinger2007-11-191-95/+98
| | | | common busybox functions and call strdup() less often ... saves a ~few hundred bytes
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-1/+1
| | | | | | | | | 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
* introduce and use bb_basename()Denis Vlasenko2007-06-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* - strndupa is a GNU extension. Using strdup to avoid several errors like:Bernhard Reutner-Fischer2007-06-201-3/+8
| | | | util-linux/mdev.c:(.text+0x29a): undefined reference to `strndupa'
* Alex Landau writes: open firmware for reading, not writingMike Frysinger2007-06-141-1/+1
|
* as suggested by Renaud Cerrato and Souf, switch over to recursive_action() ↵Mike Frysinger2007-06-131-32/+27
| | | | for some nice shrinkage and so we work even when CONFIG_SYSFS_DEPRECATED is off
* add support for firmware loadingMike Frysinger2007-06-131-2/+73
|
* mdev: microscopic enhancement, should change nothingDenis Vlasenko2007-06-081-8/+6
|
* find_stray_communal_vars: script which finds communal variablesDenis Vlasenko2007-06-031-11/+9
| | | | | resize: remove globals var mdev: remove globals var
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* - sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"Bernhard Reutner-Fischer2007-04-041-2/+2
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #2Denis Vlasenko2007-01-291-1/+2
|
* small fixes:Denis Vlasenko2006-11-261-2/+2
| | | | | | fix xstrdup to not grossly overallocate memory use xopen instean of xopen3 in several places etc.
* mdev: reduce excessive indentationDenis Vlasenko2006-10-161-105/+112
|
* add open_read_close() and similar stuffDenis Vlasenko2006-10-141-3/+1
|
* lots of silly indent fixesDenis Vlasenko2006-10-031-1/+1
|
* Yet another silly little byte saving. couldn't -> cannotDenis Vlasenko2006-09-291-1/+1
|
* Change license statements (and clean up headers) on some of the files thatRob Landley2006-09-221-1/+1
| | | | Erik or I are primary copyright holders on.
* whitespace cleanupDenis Vlasenko2006-09-171-3/+3
|
* Patch from Chris Steel to fix mdev deleting device nodes.Rob Landley2006-08-101-7/+9
|
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-7/+3
| | | | | | | | | | 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.)
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-021-1/+2
|
* Upgrade mdev to allow commands to be run on create/delete.Rob Landley2006-06-261-91/+95
| | | | | | | | | | | Both Jason Schoon and Giuseppe Ciotta deserve credit for this, I used elements of both.  It's been upgraded so that you can specify that a given command should run at create, at delete, or at both using different special characters (@, $, and * respectively).  It uses the system() method of running command lines which means you can use environment variables on the command line (it sets $MDEV to the name of the current device being created/deleted, which is useful if you matched it via regex), and the documentation warns that you need a /bin/sh to make that work, so you probably want to pick a default shell.
* Work around a persistent uClibc bug, since 0.9.29 still hasn't shipped.Rob Landley2006-06-131-5/+6
| | | | Poked to do this by Jason Schoon.
* Convert to a global struct, the way sed was. Now I have two, I can work outRob Landley2006-05-211-4/+9
| | | | the infrastructure to merge global structs into a union...
* Shrink the code about 50 bytes, allocate less run-time memory, and add aRob Landley2006-05-081-20/+19
| | | | | comment that null terminating the string we sscanf() shouldn't be required since the kernel adds \n to the end of it and sscanf will stop there.
* Create /dev/root symlink pointing to real root device, if any.Rob Landley2006-02-211-0/+11
|
* add back in path nulling after calling find_dev() since it is needed for now ...Mike Frysinger2006-02-071-0/+1
|
* cleanup style ... just because you use less spaces doesnt mean the resulting ↵Mike Frysinger2006-02-031-50/+63
| | | | code is smaller
* shrink the code a bitMike Frysinger2006-02-031-8/+5
|
* gavinl writes in Bug 661:Mike Frysinger2006-02-031-1/+1
| | | | if read() file return less than 1, we should close the fd and then goto end.