summaryrefslogtreecommitdiff
path: root/miscutils/devfsd.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* assorted fixes for breakage found by randomconfigDenis Vlasenko2007-08-171-5/+4
|
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-15/+11
| | | | | | | | | 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
* Replace index_in_[sub]str_array with index_in_[sub]strings,Denis Vlasenko2007-07-241-18/+20
| | | | | | | | | which scans thru "abc\0def\0123\0\0" type strings. Saves 250 bytes. text data bss dec hex filename 781266 1328 11844 794438 c1f46 busybox_old 781010 1328 11844 794182 c1e46 busybox_unstripped
* style fix (stray space before ';')Denis Vlasenko2007-07-211-2/+2
|
* stray trailing tabs removedDenis Vlasenko2007-07-191-2/+2
|
* remove accumulated stray trailing whitespaceDenis Vlasenko2007-07-171-3/+3
|
* xioctl and friends by Tito <farmatito@tiscali.it>Denis Vlasenko2007-07-141-12/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta do_iptunnel 203 977 +774 process_dev 5328 5494 +166 ioctl_or_perror - 54 +54 ioctl_or_perror_and_die - 51 +51 ioctl_alt_func - 49 +49 bb_ioctl_or_warn - 47 +47 do_add_ioctl 102 145 +43 bb_xioctl - 39 +39 print_value_on_off - 31 +31 get_lcm 105 123 +18 arp_main 2155 2167 +12 .................. zcip_main 1576 1566 -10 setlogcons_main 92 82 -10 dumpkmap_main 263 253 -10 do_get_ioctl 85 75 -10 setkeycodes_main 165 154 -11 write_table 244 232 -12 vconfig_main 318 306 -12 do_del_ioctl 93 81 -12 set_address 75 62 -13 maybe_set_utc 30 16 -14 loadfont_main 495 479 -16 slattach_main 712 695 -17 do_loadfont 191 174 -17 do_iplink 1155 1136 -19 getty_main 2583 2562 -21 fbset_main 2058 2035 -23 do_time 588 565 -23 xioctl 25 - -25 read_rtc 186 160 -26 parse_conf 1299 1270 -29 udhcp_read_interface 269 239 -30 bb_ioctl 45 - -45 bb_ioctl_alt 70 - -70 bb_ioctl_on_off 78 - -78 .rodata 129370 129018 -352 do_show 799 - -799 ------------------------------------------------------------------------------ (add/remove: 6/5 grow/shrink: 13/49 up/down: 1316/-1864) Total: -548 bytes text data bss dec hex filename 675352 2740 13968 692060 a8f5c busybox_old 674804 2740 13968 691512 a8d38 busybox_unstripped
* devfsd: futher sanitization by Tito <farmatito@tiscali.it>Denis Vlasenko2007-07-011-118/+63
|
* devfsd: indentation fixesDenis Vlasenko2007-07-011-6/+6
|
* introduce and use bb_basename()Denis Vlasenko2007-06-301-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* devfsd: style cleanup; size reduction (Tito <farmatito@tiscali.it>)Denis Vlasenko2007-06-271-133/+46
| | | | | traceroute: suppress warning
* devfsd: fix formatting (Tito <farmatito@tiscali.it>)Denis Vlasenko2007-06-251-509/+446
| | | | | ash: fix SEGV if type has zero parameters
* delete tons of extra #includesDenis Vlasenko2007-05-311-5/+5
|
* use "glibc errno" trick not only for ash, but for entire busyboxDenis Vlasenko2007-05-311-11/+0
| | | | | (add/remove: 1/1 grow/shrink: 37/37 up/down: 139/-228) Total: -89 bytes
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* teach find_root_device to deal with /dev/ subdirsDenis Vlasenko2007-04-131-1/+1
| | | | (by "Kirill K. Smirnov" <lich@math.spbu.ru>)
* kill superfluous returns at the end of void functionsDenis Vlasenko2007-03-111-2/+0
|
* EXEC_PREFER_APPLETS support by Gabriel L. Somlo <somlo@cmu.edu>Denis Vlasenko2007-02-061-1/+1
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #5Denis Vlasenko2007-01-291-21/+20
|
* style fixesDenis Vlasenko2006-12-261-8/+8
| | | | last xcalloc replaced by xzalloc
* style cleanup: return(a) -> return a, part 2Denis Vlasenko2006-11-271-67/+57
|
* style cleanup: return(a) -> return a, part 1Denis Vlasenko2006-11-271-10/+8
|
* rename: compare_string_array -> index_in_str_arrayDenis Vlasenko2006-11-051-4/+4
| | | | | introduce index_in_substr_array and use it in iproute2
* remove bb_printf and the likeDenis Vlasenko2006-10-261-4/+4
|
* bb_applet_name -> applet_nameDenis Vlasenko2006-10-031-3/+3
|
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-4/+4
| | | | | | | | | | 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.)
* Add one-line GPL boilerplate to numerous (but not all yet) source files."Robert P. J. Day"2006-07-121-0/+4
|
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-021-0/+1
|
* - convert old-style parameter declarations (K&R) to modern style.Bernhard Reutner-Fischer2006-06-251-1/+1
|
* Patch from Erik Hovland, via Tito.Rob Landley2006-06-081-2/+2
|
* Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley2006-05-271-1/+0
|
* Patch from Denis Vlasenko to constify things and fix a few typos.Rob Landley2006-02-221-32/+37
|
* removed anoinig warnings"Vladimir N. Oleynik"2006-02-011-6/+6
|
* fix up yet more annoying signed/unsigned and mixed type errorsEric Andersen2006-01-301-1/+2
|
* just whitespaceTim Riker2006-01-251-44/+44
|
* restore compare_string_array new interface (make broken by landley)"Vladimir N. Oleynik"2005-12-061-2/+2
|
* Coprolith polishing time: Tito switched devfsd over from CONFIG_ to ENABLE_.Rob Landley2005-10-081-317/+174
|
* split libbb: moved xregcomp separatelly for speed up recompile"Vladimir N. Oleynik"2005-09-141-2/+1
|
* removed strange extern void xregcomp(... from some applets, but declared ↵"Vladimir N. Oleynik"2005-09-141-2/+0
| | | | from libbb.h
* eat leading whitespace with preprocessorMike Frysinger2005-07-311-2/+2
|
* Tito posted a devfsd error message fix. It's highly deprecated and willRob Landley2005-06-071-31/+28
| | | | | | | | | | | | | | | | | | presumably be removed eventually (use udev), but as long as it's in there. Tito says: The sense of this patch is to call: read_config_file_err: #ifdef CONFIG_DEVFSD_VERBOSE msg_logger(((optional == 0 ) && (errno == ENOENT))? DIE : NO_DIE, LOG_ERR, "read config file: %s: %m\n", path); #else if(optional == 0 && errno == ENOENT) exit(EXIT_FAILURE); #endif just after the failure of the call that set errno ( stat and fopen) to avoid false error messages.
* Make certain clients of bb_make_directory default to honoringEric Andersen2004-10-131-1/+1
| | | | the user's umask
* Larry Doolittle writes:Eric Andersen2004-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry
* Patch from Florian Schirmer. compile fix for debug buildsGlenn L McGrath2004-02-221-2/+2
|
* Bug fix from Tito.Glenn L McGrath2004-02-041-3/+4
|
* Tito writes:Eric Andersen2003-12-191-333/+450
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi to all, here is a new patch for bb's devfsd. The news are: 1) Size reduction for the basic setup with no options compiled in from : text data bss dec hex filename 10591 392 543 11526 2d06 devfsd.o rw-r--r-- 1 root root 18536 Dec 18 21:52 devfsd.o to: text data bss dec hex filename 9303 392 543 10238 27fe devfsd.o rw-r--r-- 1 root root 16528 Dec 18 22:02 devfsd.o With this setup you should not expect much output from devfsd ( just at start or with -v) and if some error occurs it only exits 1. To have more output enable: " Increases logging (and size)" (+1568 b). 2) The option "Adds function names to program output" was removed from config menu and now to enable debug output you can use bb's standard option: "Build BusyBox with Debugging symbols". Be careful as with this option enabled a lot of data are outputted to /dev/log and/or to stderr. 3) A new option: "Enables the -fg and -np option" was added to config menu (+128 b). BTW: option "Adds support for MODLOAD keyword in devsfd.conf" adds 268 b. 4) The following keywords in devsfd.conf are supported: "CLEAR_CONFIG", "INCLUDE", "OPTIONAL_INCLUDE", "RESTORE", "PERMISSIONS", "EXECUTE", "COPY", "IGNORE", "MKOLDCOMPAT", "MKNEWCOMPAT","RMOLDCOMPAT", "RMNEWCOMPAT". But only if they are written UPPERCASE!!!!!!!! 5)Help text in usage.h was modified. 6)Something that I have forgotten.......... I've tested this for the last week on my box and it seems to work as expected. Thanks in advance and please apply. Ciao, Tito
* Patch from Tito, size optimisation, cleanup noise when in debuggingGlenn L McGrath2003-11-301-167/+167
| | | | | mode, adds support for MODLOAD keyword in devfsd.conf, provides a cleaned up version of example/devfsd.conf
* Tito writes:Eric Andersen2003-10-221-3/+2
| | | | | | | | | | | | | Hi to all, I'm sorry but I didn't spot this big fat bug until now, Matteo Croce emailed me about it. Please apply this patch as the devfsd applet is broken and works only on a system booted with a standard devfsd ( the test I mostly did :-( ), but if used at boot time it DOESN'T WORK. Thanks in advance and please apply Tito
* old gccTim Riker2003-10-171-3/+3
|