aboutsummaryrefslogtreecommitdiff
path: root/miscutils/makedevs.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* usage.c: remove reference to busybox.hvda2007-05-261-1/+1
| | | | | | | | *: s/include "busybox.h"/include "libbb.h" git-svn-id: svn://busybox.net/trunk/busybox@18696 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style fixes. No code changesvda2007-04-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18409 69ca8d6d-28ef-0310-b511-8ec308f3f277
* suppress warnings about easch <applet>_main() havingvda2007-02-031-0/+2
| | | | | | | no preceding prototype git-svn-id: svn://busybox.net/trunk/busybox@17740 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - use makedev to get device number, else it gives wrong major/minor numbers ↵aldot2007-01-211-2/+2
| | | | | | | | | to devices files on systems which use big device numbers. Closes #919 git-svn-id: svn://busybox.net/trunk/busybox@17430 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_xget[pw/gr]nam were horribly misnamed - fixed.vda2006-12-281-2/+2
| | | | | | | | | | uidgid_get -> get_uidgid, add additional param (numeric_ok). Make chown use it. chown: fix "chown user: ...." install: fix incorrect use of bb_xget[pw/gr]nam git-svn-id: svn://busybox.net/trunk/busybox@17095 69ca8d6d-28ef-0310-b511-8ec308f3f277
* message string changes, mostly for consistency, also -32 bytes in .rodatavda2006-10-201-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16412 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add open_read_close() and similar stuffvda2006-10-141-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16377 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_get_[chomped]line_from_file wasn't descriptive enough.vda2006-10-121-1/+1
| | | | | | | Renaming... git-svn-id: svn://busybox.net/trunk/busybox@16375 69ca8d6d-28ef-0310-b511-8ec308f3f277
* attempt to regularize atoi mess.vda2006-10-081-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16342 69ca8d6d-28ef-0310-b511-8ec308f3f277
* getopt_ulflags -> getopt32.vda2006-10-031-1/+1
| | | | | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit. git-svn-id: svn://busybox.net/trunk/busybox@16305 69ca8d6d-28ef-0310-b511-8ec308f3f277
* removed a lot of trailing \n in bb_msg() calls. It is addedvda2006-09-061-1/+1
| | | | | | | | automatically by function itself. git-svn-id: svn://busybox.net/trunk/busybox@16059 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - merge -r15463:15564 from busybox_scratch branch through these changesets:aldot2006-08-201-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ------------------------------------------------------------------------ r15465 | aldot | 2006-06-21 20:48:06 +0200 (Wed, 21 Jun 2006) | 3 lines - use CONFIG_BUSYBOX_EXEC_PATH as before it one was broken by a recent revert. - use xchdir() since all is invain if it fails there anyways, supposedly ------------------------------------------------------------------------ r15466 | aldot | 2006-06-21 20:55:16 +0200 (Wed, 21 Jun 2006) | 2 lines - adjust docs to take CONFIG_BUSYBOX_EXEC_PATH into account. ------------------------------------------------------------------------ r15467 | aldot | 2006-06-21 21:31:24 +0200 (Wed, 21 Jun 2006) | 18 lines - partial fallout of my TREE_USED touchup against gcc-4.2: rip unused vars, save s 144 bytes text data bss dec hex filename 862434 10156 645924 1518514 172bb2 busybox.old 862322 10156 645892 1518370 172b22 busybox function old new delta z_len 4 - -4 textend 4 - -4 part_nb 4 - -4 insize 4 - -4 ifile_size 4 - -4 do_link 4 - -4 new_text 70 60 -10 ipaddr_list_link 33 23 -10 gzip_main 898 822 -76 ------------------------------------------------------------------------------ (add/remove: 0/6 grow/shrink: 0/3 up/down: 0/-120) Total: -120 bytes ------------------------------------------------------------------------ r15468 | aldot | 2006-06-21 21:43:05 +0200 (Wed, 21 Jun 2006) | 19 lines - remove useless global exports function old new delta rpm_main 940 1601 +661 rpm_getstring 107 112 +5 rpm_getint 148 153 +5 loop_through_files 103 106 +3 fileaction_dobackup 115 113 -2 fileaction_list 5 - -5 rpm_getcount 42 - -42 extract_cpio_gz 161 - -161 rpm_gettags 504 - -504 ------------------------------------------------------------------------------ (add/remove: 0/4 grow/shrink: 4/1 up/down: 674/-714) Total: -40 bytes text data bss dec hex filename 862322 10156 645892 1518370 172b22 busybox.old 862290 10156 645892 1518338 172b02 busybox ------------------------------------------------------------------------ r15555 | aldot | 2006-06-30 14:10:11 +0200 (Fri, 30 Jun 2006) | 22 lines - shrink syslog a little bit, move a big buffer (for 'line') off the bss, fold s emaphore stuff into single caller manually. stats: function old new delta logMessage 395 427 +32 message 1245 1257 +12 opts - 4 +4 small 1 - -1 local_logging 4 - -4 doRemoteLog 4 - -4 circular_logging 4 - -4 syslogd_main 1299 1285 -14 static.res 36 16 -20 .rodata 186650 186586 -64 static.line 1025 - -1025 ------------------------------------------------------------------------------ (add/remove: 1/5 grow/shrink: 2/3 up/down: 48/-1136) Total: -1088 bytes cow@s37:~/src/busybox_scratch$ size sysklogd/syslogd.o{.orig,} text data bss dec hex filename 3723 348 5242 9313 2461 sysklogd/syslogd.o.orig 3697 348 4188 8233 2029 sysklogd/syslogd.o ============================================================================== Overall bloatcheck for the changeset mentioned above: function old new delta rpm_main 953 1608 +655 logMessage 395 427 +32 message 1245 1257 +12 opts - 4 +4 rpm_getstring 107 110 +3 rpm_getint 148 151 +3 loop_through_files 103 104 +1 small 1 - -1 fileaction_dobackup 115 113 -2 z_len 4 - -4 textend 4 - -4 part_nb 4 - -4 local_logging 4 - -4 insize 4 - -4 ifile_size 4 - -4 do_link 4 - -4 doRemoteLog 4 - -4 circular_logging 4 - -4 fileaction_list 5 - -5 new_text 70 60 -10 ipaddr_list_link 33 23 -10 clear_bufs 31 21 -10 syslogd_main 1287 1273 -14 builtin_help 190 176 -14 static.res 36 16 -20 builtin_source 229 199 -30 rpm_getcount 42 - -42 gzip_main 842 786 -56 .rodata 227176 227112 -64 lash_main 609 527 -82 busy_loop 3883 3739 -144 extract_cpio_gz 155 - -155 rpm_gettags 501 - -501 static.line 1025 - -1025 ------------------------------------------------------------------------------ (add/remove: 1/15 grow/shrink: 6/12 up/down: 710/-2221) Total: -1511 bytes git-svn-id: svn://busybox.net/trunk/busybox@15852 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidatelandley2006-08-031-11/+2
| | | | | | | | | | | | | 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.) git-svn-id: svn://busybox.net/trunk/busybox@15767 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - move #include busybox.h to the very top so we pull in the configaldot2006-06-031-1/+1
| | | | | | | and eventual platform specific includes in early. git-svn-id: svn://busybox.net/trunk/busybox@15273 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - return ret so we return something meaningful.aldot2006-04-241-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14939 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - patch from Denis Vlasenko to add and use bb_xchdir()aldot2006-04-121-10/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14837 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - commentary typosaldot2006-03-241-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14649 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionlandley2006-03-061-1/+1
| | | | | | | definitions. (That should only be on prototypes.) git-svn-id: svn://busybox.net/trunk/busybox@14457 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - fix check for group and user, remove some whitespace while at it.aldot2005-12-211-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@12967 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rob Sullivan sent in some cleanups, which I beat on slightly.landley2005-10-281-36/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11946 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - rename libbb's password helpers as suggested in libbb.haldot2005-09-201-2/+2
| | | | | | | | | | | my_getpwnam -> bb_xgetpwnam /* dies on error */ my_getgrnam -> bb_xgetgrnam /* dies on error */ my_getgrgid -> bb_getgrgid my_getpwuid -> bb_getpwuid my_getug -> bb_getug git-svn-id: svn://busybox.net/trunk/busybox@11515 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup makedevs to handle regular files, and also fixandersen2005-07-181-1/+32
| | | | | | | it to properly update file permissions as specified. git-svn-id: svn://busybox.net/trunk/busybox@10854 69ca8d6d-28ef-0310-b511-8ec308f3f277
* a bit more polishandersen2005-07-181-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10848 69ca8d6d-28ef-0310-b511-8ec308f3f277
* a bit of polish on makedevsandersen2005-07-181-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10847 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup device table based makedevs so it actually worksandersen2005-07-181-28/+41
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10845 69ca8d6d-28ef-0310-b511-8ec308f3f277
* About time to just apply this and kill off the patchesandersen2005-06-091-26/+158
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10485 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix incorrect arguments being passed to mknodandersen2004-07-301-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9049 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up brain damage with the way major and minor are used toandersen2004-07-301-1/+1
| | | | | | | create a dev_t git-svn-id: svn://busybox.net/trunk/busybox@9045 69ca8d6d-28ef-0310-b511-8ec308f3f277
* BusyBox has no business hard coding the number of major and minor bits for aandersen2004-07-261-4/+5
| | | | | | | | | | | | dev_t. This is especially important now that the user space concept of a dev_t and the kernel concept of a dev_t are divergant. The only bit of user space allowed to know the number of major and minor bits is include/sys/sysmacros.h (i.e. part of libc). When used with a current C library and a 2.6.x kernel, this fix should allow BusyBox to support wide device major/minor numbers. -Erik git-svn-id: svn://busybox.net/trunk/busybox@9015 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Woops, the previous commit was an accident, its supplied in the patch,bug12004-06-051-164/+28
| | | | | | | dont commit yet as we are in feature freeze git-svn-id: svn://busybox.net/trunk/busybox@8886 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Device table support for makedevs, the previous behaviour can beenbug12004-06-051-28/+164
| | | | | | | selected at configure time. git-svn-id: svn://busybox.net/trunk/busybox@8885 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-151-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major coreutils update.mjn32003-03-191-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* vodz' last_patch42_2, which is an updated fix for buffer overflowsandersen2002-06-081-25/+19
| | | | | | | noted by Gerardo Puga git-svn-id: svn://busybox.net/trunk/busybox@4876 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix buffer overflows noted by Gerardo Pugaandersen2002-06-061-1/+5
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@4872 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Teach makedevs to not segfault quite so muchandersen2002-04-131-12/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4616 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out that DODMALLOC was broken when I reorganized busybox.handersen2001-02-201-1/+1
| | | | | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch, put together by Manuel Novoa III, is a merge of workandersen2001-02-141-2/+2
| | | | | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed. git-svn-id: svn://busybox.net/trunk/busybox@1805 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Renamed "internal.h" to the more sensible "busybox.h".andersen2000-09-251-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some #include updates.andersen2000-08-101-1/+0
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@946 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Extract usage information into a separate file.kraai2000-07-161-17/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELPerik2000-05-121-3/+6
| | | | | | | | | | | which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik git-svn-id: svn://busybox.net/trunk/busybox@532 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More documentation updates, and minor fixes to make things syncerik2000-04-151-4/+15
| | | | | | | | up with the docs. -Erik git-svn-id: svn://busybox.net/trunk/busybox@457 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some formatting updates (ran the code through indent)erik2000-02-081-39/+44
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@357 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added sfdisk. Ststic-ified a bunch of stuff.andersen1999-10-191-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@38 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More stuff.andersen1999-10-181-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@34 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Initial revisionandersen1999-10-051-0/+95
git-svn-id: svn://busybox.net/trunk/busybox@5 69ca8d6d-28ef-0310-b511-8ec308f3f277