aboutsummaryrefslogtreecommitdiff
path: root/util-linux (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* ipcs: fix my recent breakagevda2006-09-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16177 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change license statements (and clean up headers) on some of the files thatlandley2006-09-228-20/+8
| | | | | | | Erik or I are primary copyright holders on. git-svn-id: svn://busybox.net/trunk/busybox@16175 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mount: nfs mount should enable bb_error-to-syslog supportvda2006-09-211-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16171 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mount: make Rob happy by reinstating #definesvda2006-09-211-4/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16169 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ipcs: fix output (misaligned columns)vda2006-09-191-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16161 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ipcs: getopt_ulflag'ification, -170 bytesvda2006-09-191-39/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16160 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mount: fstabname needs to be const char*vda2006-09-191-2/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16148 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mount: fix warning (printf field width of * wants int, not size_t)vda2006-09-191-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16147 69ca8d6d-28ef-0310-b511-8ec308f3f277
* whitespace cleanupvda2006-09-177-27/+27
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16142 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mount: style fixletvda2006-09-171-2/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16141 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mount: revert mount --bind to using "bind" as fstype.vda2006-09-171-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16139 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mount: mount_it_now() - char *dir is not really needed.vda2006-09-171-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16138 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mount: fix "duplicate mount options in mtab" bugvda2006-09-171-3/+21
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16137 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mount: nfs_strerror's static buffer was bigger than needed.vda2006-09-171-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16136 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mount: getopt_ulflag'ificationvda2006-09-171-38/+24
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16135 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mount: style fixesvda2006-09-171-34/+34
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16134 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mount: fix bugs: free(mp->mnt_fsname) of non-malloced ptr;vda2006-09-171-17/+20
| | | | | | | check for "more than 2 arguments" was actually checking for -2. git-svn-id: svn://busybox.net/trunk/busybox@16133 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mount: use bb_simplify_path as appropriatevda2006-09-171-21/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16132 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mount: style fixesvda2006-09-171-21/+24
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16131 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mount: reorder things, fix NFS-less mount.vda2006-09-151-380/+360
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16128 69ca8d6d-28ef-0310-b511-8ec308f3f277
* umount: do not try to close FILE* which is NULL.vda2006-09-141-11/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16122 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mount: -o remount should not add lines to /etc/mtabvda2006-09-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16121 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mount: move code from nfsmount.c into mount.cvda2006-09-143-1028/+1018
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16120 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mount: fix mtab support (but it is still rather buggy)vda2006-09-141-13/+27
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16117 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More code from kernel developers, and therefore licensed under GPLv2 only.landley2006-09-141-12/+4
| | | | | | | | | | Clarify the license boilerplate. On an unrelated note, this could use busyboxification. check_mount() looks reusable and ask() is generic... git-svn-id: svn://busybox.net/trunk/busybox@16115 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - fix copy'n paste errors that got introduced when switching to the shorter ↵aldot2006-09-131-1/+1
| | | | | | | | | boilerplate. No object code changes. git-svn-id: svn://busybox.net/trunk/busybox@16113 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove pointless "const". Bloatcheck says 0 bytes difference.landley2006-09-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16110 69ca8d6d-28ef-0310-b511-8ec308f3f277
* nfsmount: sanitize it. It had a rather peculiar idea of implementing "bg"vda2006-09-112-187/+221
| | | | | | | | | | | | option - it was going to return a special flag back to caller and expecting caller to call it again with special parameter! Also caller was charged with calling mount() syscall... mount: mtab support was non-functional. Enabling it revealed serious bug which is not fixed yet. git-svn-id: svn://busybox.net/trunk/busybox@16102 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - convert a few xopen3(,,0) into xopen(,). Also peruse the fact that xopen ↵aldot2006-09-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | defaults to 0777 on it's own, so we don't need to xopen3(,,0777). Saves a few bytes: $ size busybox.old busybox text data bss dec hex filename 839676 8780 243592 1092048 10a9d0 busybox.old 839660 8780 243592 1092032 10a9c0 busybox $ make CC=gcc-4.2-HEAD bloatcheck function old new delta static.vconfig_main 281 279 -2 static.rx_main 1076 1074 -2 static.mt_main 294 292 -2 static.gzip_main 753 751 -2 static.mkfs_minix_main 4034 4030 -4 static.unzip_main 1771 1766 -5 static.crontab_main 1513 1507 -6 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/7 up/down: 0/-23) Total: -23 bytes git-svn-id: svn://busybox.net/trunk/busybox@16101 69ca8d6d-28ef-0310-b511-8ec308f3f277
* nfsmount: remove some really old code (for kernels 1.x!) + small cleanups.vda2006-09-101-60/+63
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16096 69ca8d6d-28ef-0310-b511-8ec308f3f277
* nfsmount: delete nfsmount.hvda2006-09-101-242/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16095 69ca8d6d-28ef-0310-b511-8ec308f3f277
* nfsmount: nfsmount.h merged into nfsmount.cvda2006-09-103-168/+260
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16094 69ca8d6d-28ef-0310-b511-8ec308f3f277
* nfsmount: style fixvda2006-09-101-104/+103
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16093 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ipcs: silly trick with strings. saves ~200 bytes.vda2006-09-102-40/+39
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16092 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A quick cleanup pass of some low-hanging mess.landley2006-09-081-115/+26
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16068 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
* Vladimir Dronnikov (ybrnj80 at yandex dot ru) pointed out that my cleanup oflandley2006-09-051-3/+3
| | | | | | | his code introduced a bug (an extra backslash in the CIFS mount string). git-svn-id: svn://busybox.net/trunk/busybox@16055 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Thinko.landley2006-09-041-3/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16048 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vladimir Dronnikov also submitted a CIFS support patch to mount, which Ilandley2006-09-012-8/+55
| | | | | | | | heavily reworked here and probably broke. Tomorrow I need to set up a copy of samba to test against. (This compiles, I make no promises beyond that.) git-svn-id: svn://busybox.net/trunk/busybox@16023 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Svn 16007 broke the build under gcc 4.0.3. This fixes up some of the damagelandley2006-08-293-18/+18
| | | | | | | | (the e2fsprogs directory is too twisty and evil to easily fix, but I plan to rewrite it anyway so I'll just bump that up in priority a bit). git-svn-id: svn://busybox.net/trunk/busybox@16015 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - pull from busybox_scratch: r15829:15850aldot2006-08-282-437/+363
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various fixes, cleanups and shrinkage: saves 952 Bytes: text data bss dec hex filename 1087742 15853 790632 1894227 1ce753 ../busybox/busybox.old 1086790 15853 790632 1893275 1ce39b busybox via: # scripts/bloat-o-meter ../busybox/busybox_unstripped.old busybox_unstripped function old new delta ipcrm_main 756 822 +66 getval - 61 +61 maybe_set_utc - 40 +40 udhcpc_main 2896 2912 +16 md5_hash_block 428 437 +9 opt 8 16 +8 qgravechar 106 110 +4 make_bitmap 292 295 +3 inflate_unzip 2056 2059 +3 add_partition 1412 1414 +2 __parsespent 156 158 +2 qrealloc 41 42 +1 format - 1 +1 catv_main 313 314 +1 watch_main 293 292 -1 varunset 81 80 -1 part 1 - -1 check_if_skip 837 836 -1 start_stop_daemon_main 840 837 -3 create_lost_and_found 175 172 -3 supress_non_delimited_lines 4 - -4 static.l 4 - -4 static.c 5 1 -4 bsd_sum_file 237 233 -4 eval2 338 332 -6 arithmetic_common 166 158 -8 cmpfunc 22 5 -17 cksum_main 294 275 -19 cmp_main 465 439 -26 dd_main 1535 1508 -27 rmmod_main 376 333 -43 cut_file 727 644 -83 ipcs_main 3809 3721 -88 cut_main 722 614 -108 date_main 1443 1263 -180 remove_ids 222 - -222 ------------------------------------------------------------------------------ (add/remove: 3/4 grow/shrink: 11/18 up/down: 217/-853) Total: -636 bytes git-svn-id: svn://busybox.net/trunk/busybox@16009 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The kernel can't handle umount /dev/hdc, we have to do it through mtab,landley2006-08-171-8/+14
| | | | | | | | | | | | | | | | | except that we still have to work when there is no mtab. Oh, and while we're at it, take advantage of the fact that modern processors avoid branches via conditional assignment where possible. ("x = a ? b : c;" turns into "x = c; if (a) x = b;" because that way there's no branch to potentially mispredict and thus never a bubble in the pipeline. The if(a) turns into an assembly test followed by a conditional assignment (rather than a conditional jump).) So since the compiler is going to do that _anyway_, we might as well take advantage of it to produce a slightly smaller binary. So there. git-svn-id: svn://busybox.net/trunk/busybox@15806 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Chris Steel to fix mdev deleting device nodes.landley2006-08-101-7/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15795 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vladimir Dronnikov convinced me to twiddle the semantics of the new sharedlandley2006-08-091-5/+14
| | | | | | | | subtree stuff to look more like http://lwn.net/Articles/159077/ thinks they should. git-svn-id: svn://busybox.net/trunk/busybox@15791 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a typo (|| instead of |) and remove two comments about a problem fixedlandley2006-08-081-3/+2
| | | | | | | in the previous patch. git-svn-id: svn://busybox.net/trunk/busybox@15790 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add shared subtree support, suggested by Vladimir Dronnikov. Also break out alandley2006-08-082-51/+75
| | | | | | | | | few new (unfinished) config options, which I intend to make hidden (but enabled) when CONFIG_NITPICK is disabled. Getting the .config infrastructure to do that is non-obvious, it seems... git-svn-id: svn://busybox.net/trunk/busybox@15789 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Using lstat() instead of stat() means that attempting to loopback mountlandley2006-08-081-1/+1
| | | | | | | a symlink doesn't work. git-svn-id: svn://busybox.net/trunk/busybox@15788 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make a warning go away on 64-bit systems.landley2006-08-061-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15787 69ca8d6d-28ef-0310-b511-8ec308f3f277
* There are a number of reasons for reinventing printf(). Writing status tolandley2006-08-041-18/+8
| | | | | | | stdout is not one of them. git-svn-id: svn://busybox.net/trunk/busybox@15783 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove xcalloc() and convert its callers to xzalloc(). About half of themlandley2006-08-031-2/+2
| | | | | | | | were using "1" as one of the arguments anyway, and as for the rest a multiply and a push isn't noticeably bigger than pushing two arguments on the stack. git-svn-id: svn://busybox.net/trunk/busybox@15771 69ca8d6d-28ef-0310-b511-8ec308f3f277