aboutsummaryrefslogtreecommitdiff
path: root/miscutils/makedevs.c
Commit message (Collapse)AuthorAgeFilesLines
* usage.c: remove reference to busybox.hGravatar Denis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* style fixes. No code changesGravatar Denis Vlasenko2007-04-121-1/+1
|
* suppress warnings about easch <applet>_main() havingGravatar Denis Vlasenko2007-02-031-0/+2
| | | | no preceding prototype
* - use makedev to get device number, else it gives wrong major/minor numbers ↵Gravatar Bernhard Reutner-Fischer2007-01-211-2/+2
| | | | | | to devices files on systems which use big device numbers. Closes #919
* bb_xget[pw/gr]nam were horribly misnamed - fixed.Gravatar Denis Vlasenko2006-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
* message string changes, mostly for consistency, also -32 bytes in .rodataGravatar Denis Vlasenko2006-10-201-1/+1
|
* add open_read_close() and similar stuffGravatar Denis Vlasenko2006-10-141-2/+2
|
* bb_get_[chomped]line_from_file wasn't descriptive enough.Gravatar Denis Vlasenko2006-10-121-1/+1
| | | | Renaming...
* attempt to regularize atoi mess.Gravatar Denis Vlasenko2006-10-081-4/+4
|
* getopt_ulflags -> getopt32.Gravatar Denis Vlasenko2006-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.
* removed a lot of trailing \n in bb_msg() calls. It is addedGravatar Denis Vlasenko2006-09-061-1/+1
| | | | | automatically by function itself.
* - merge -r15463:15564 from busybox_scratch branch through these changesets:Gravatar Bernhard Reutner-Fischer2006-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
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateGravatar Rob Landley2006-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.)
* - move #include busybox.h to the very top so we pull in the configGravatar Bernhard Reutner-Fischer2006-06-031-1/+1
| | | | and eventual platform specific includes in early.
* - return ret so we return something meaningful.Gravatar Bernhard Reutner-Fischer2006-04-241-1/+1
|
* - patch from Denis Vlasenko to add and use bb_xchdir()Gravatar Bernhard Reutner-Fischer2006-04-121-10/+8
|
* - commentary typosGravatar Bernhard Reutner-Fischer2006-03-241-1/+1
|
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionGravatar Rob Landley2006-03-061-1/+1
| | | | definitions. (That should only be on prototypes.)
* - fix check for group and user, remove some whitespace while at it.Gravatar Bernhard Reutner-Fischer2005-12-211-4/+4
|
* Rob Sullivan sent in some cleanups, which I beat on slightly.Gravatar Rob Landley2005-10-281-36/+8
|
* - rename libbb's password helpers as suggested in libbb.hGravatar Bernhard Reutner-Fischer2005-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
* Fixup makedevs to handle regular files, and also fixGravatar Eric Andersen2005-07-181-1/+32
| | | | it to properly update file permissions as specified.
* a bit more polishGravatar Eric Andersen2005-07-181-5/+5
|
* a bit of polish on makedevsGravatar Eric Andersen2005-07-181-0/+1
|
* Fixup device table based makedevs so it actually worksGravatar Eric Andersen2005-07-181-28/+41
|
* About time to just apply this and kill off the patchesGravatar Eric Andersen2005-06-091-26/+158
|
* Fix incorrect arguments being passed to mknodGravatar Eric Andersen2004-07-301-2/+2
|
* Fix up brain damage with the way major and minor are used toGravatar Eric Andersen2004-07-301-1/+1
| | | | create a dev_t
* BusyBox has no business hard coding the number of major and minor bits for aGravatar Eric Andersen2004-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
* Woops, the previous commit was an accident, its supplied in the patch,Gravatar Glenn L McGrath2004-06-051-164/+28
| | | | dont commit yet as we are in feature freeze
* Device table support for makedevs, the previous behaviour can beenGravatar Glenn L McGrath2004-06-051-28/+164
| | | | selected at configure time.
* Remove trailing whitespace. Update copyright to include 2004.Gravatar Eric Andersen2004-03-151-2/+2
|
* Major coreutils update.Gravatar Manuel Novoa III2003-03-191-4/+4
|
* vodz' last_patch42_2, which is an updated fix for buffer overflowsGravatar Eric Andersen2002-06-081-25/+19
| | | | noted by Gerardo Puga
* Fix buffer overflows noted by Gerardo PugaGravatar Eric Andersen2002-06-061-1/+5
| | | | -Erik
* Teach makedevs to not segfault quite so muchGravatar Eric Andersen2002-04-131-12/+11
|
* It turns out that DODMALLOC was broken when I reorganized busybox.hGravatar Eric Andersen2001-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
* This patch, put together by Manuel Novoa III, is a merge of workGravatar Eric Andersen2001-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.
* Renamed "internal.h" to the more sensible "busybox.h".Gravatar Eric Andersen2000-09-251-1/+1
| | | | -Erik
* Some #include updates.Gravatar Eric Andersen2000-08-101-1/+0
| | | | -Erik
* Extract usage information into a separate file.Gravatar Matt Kraai2000-07-161-17/+0
|
* Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELPGravatar Erik Andersen2000-05-121-3/+6
| | | | | | | | which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik
* More documentation updates, and minor fixes to make things syncGravatar Erik Andersen2000-04-151-4/+15
| | | | | up with the docs. -Erik
* Some formatting updates (ran the code through indent)Gravatar Erik Andersen2000-02-081-39/+44
| | | | -Erik
* Added sfdisk. Ststic-ified a bunch of stuff.Gravatar Eric Andersen1999-10-191-3/+2
|
* More stuff.Gravatar Eric Andersen1999-10-181-2/+2
| | | | -Erik
* Initial revision0_29alpha2Gravatar Eric Andersen1999-10-051-0/+95