summaryrefslogtreecommitdiff
path: root/util-linux/mount.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-181-1/+1
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* introduce and use xdup2(int, int)Denis Vlasenko2007-08-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stop checking whether setsockopt_reuseaddr(int fd) was successful (it always is) remove second parameter (sockllen) from xmalloc_sockaddr2xxxxx functions sockaddr2str 142 156 +14 collect_blk 467 474 +7 xdup2 28 33 +5 singlemount 4456 4454 -2 print_host 214 212 -2 nslookup_main 139 137 -2 ftpgetput_main 414 412 -2 udhcpd_main 1258 1255 -3 udhcpc_main 2405 2402 -3 traceroute_main 4125 4122 -3 nc_main 1072 1069 -3 buffer_fill_and_print 76 73 -3 xmalloc_sockaddr2hostonly_noport 18 14 -4 xmalloc_sockaddr2host_noport 18 14 -4 xmalloc_sockaddr2host 15 11 -4 xmalloc_sockaddr2dotted_noport 18 14 -4 xmalloc_sockaddr2dotted 18 14 -4 wget_main 2618 2614 -4 ping_main 393 389 -4 ip_port_str 120 115 -5 dhcprelay_main 1146 1141 -5 dnsd_main 1531 1525 -6 passwd_main 1110 1102 -8 udhcp_kernel_packet 206 197 -9 udhcp_listen_socket 154 144 -10 getty_main 2576 2566 -10 setup 655 640 -15 xmove_fd 51 34 -17 dolisten 759 742 -17 tcpudpsvd_main 1866 1836 -30 startservice 339 299 -40
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-3/+3
| | | | | | | | | 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
* mount: print errno on NFS error (again)Denis Vlasenko2007-08-031-14/+11
|
* Replace index_in_[sub]str_array with index_in_[sub]strings,Denis Vlasenko2007-07-241-40/+36
| | | | | | | | | 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
* Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms ↵Denis Vlasenko2007-06-251-3/+2
| | | | <wharms@bfs.de>)
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* mount: fix mounting of symlinks (mount from util-linux allows that)Denis Vlasenko2007-05-201-1/+3
|
* mount: fix incorrect usage of strtok (inadvertently used NULL sometimes).Denis Vlasenko2007-05-091-2/+1
| | | | | the change is "for(xxx)...." -> "if(var) for(xxx)...", but my gcc 4.1.2 adds _158 bytes_!! WTF?? 8(
* style fixesDenis Vlasenko2007-04-131-3/+2
|
* style fixes. No code changesDenis Vlasenko2007-04-121-1/+1
|
* add some missed statics on constant objects.Denis Vlasenko2007-04-081-2/+2
| | | | | | | | | | fix few #ifndef ENABLE_xxx # size busybox_old busybox_unstripped text data bss dec hex filename 677152 2920 18208 698280 aa7a8 busybox_old 676420 2920 18208 697548 aa4cc busybox_unstripped
* [u]mount: extend -t option (Roy Marples <uberlord@gentoo.org>)Denis Vlasenko2007-04-051-3/+2
|
* mount: (try to) support cifs with IPv6Denis Vlasenko2007-02-041-13/+22
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #3Denis Vlasenko2007-01-291-5/+5
|
* dnsd: getfileentry was leaking memoryDenis Vlasenko2007-01-221-18/+20
| | | | mount: improve readability
* openvt,getty,vfork_daemon_rexec,mount: tighten up fd cleanup codeDenis Vlasenko2007-01-191-1/+1
| | | | | | | | | (will close all fd's > 2 on daemonization now) getty: fix "getty -" support, and also do not try to chown/chmod "-" telnetd: fix "lost ctty" bug Yet another attempt on saner function names: bb_sanitize_server_stdio(0/1) -> bb_sanitize_stdio() + bb_daemonize();
* merge post-1.3.0 fixesDenis Vlasenko2006-12-261-0/+3
|
* u_short, ulong exterminatedDenis Vlasenko2006-12-191-1/+1
| | | | fdiskXXX: add a bit of sanity (not enough by far)
* mount: add getmntent_r stub for dietlibcDenis Vlasenko2006-12-181-1/+16
|
* Closing bug 1040:Denis Vlasenko2006-11-271-1/+1
| | | | | | | The "quiet" option is quietly (hah) ignored. It should be passed through to the mount() syscall in the comma separated list of options. I found the problem with the vfat/msdos filesystems, which uses a quiet option to override some complaints and errors.
* mount: if FILE* is NULL, it's not wise to use it.Denis Vlasenko2006-11-191-3/+5
|
* rename: compare_string_array -> index_in_str_arrayDenis Vlasenko2006-11-051-3/+3
| | | | | introduce index_in_substr_array and use it in iproute2
* mount: use switch (compare_string_array(..))Denis Vlasenko2006-10-261-36/+105
| | | | where appropriate, saves >100 bytes.
* use skip_whitespace where appropriateDenis Vlasenko2006-10-251-2/+1
|
* mount: support user mounts if CONFIG_DESKTOPDenis Vlasenko2006-10-161-22/+58
|
* bb_get_[chomped]line_from_file wasn't descriptive enough.Denis Vlasenko2006-10-121-1/+1
| | | | Renaming...
* cut, mount: small improvementsDenis Vlasenko2006-10-121-10/+13
|
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-1/+1
|
* bb_applet_name -> applet_nameDenis Vlasenko2006-10-031-1/+1
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-2/+2
| | | | | | | | 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.
* mount: accept and ignore -s (sloppy) option.Denis Vlasenko2006-10-021-11/+11
| | | | needed for compatibility with Linux automounter.
* mount: fix bug 946 (mount -f should update mtab)Denis Vlasenko2006-09-291-6/+6
|
* mount: fix breakage from recent changes (spurious -ro mounts)Denis Vlasenko2006-09-241-19/+11
|
* mount: make Rob happy by reinstating #definesDenis Vlasenko2006-09-211-4/+2
|
* mount: fstabname needs to be const char*Denis Vlasenko2006-09-191-2/+3
|
* mount: fix warning (printf field width of * wants int, not size_t)Denis Vlasenko2006-09-191-1/+1
|
* whitespace cleanupDenis Vlasenko2006-09-171-3/+3
|
* mount: style fixletDenis Vlasenko2006-09-171-2/+4
|
* mount: revert mount --bind to using "bind" as fstype.Denis Vlasenko2006-09-171-1/+1
|
* mount: mount_it_now() - char *dir is not really needed.Denis Vlasenko2006-09-171-3/+3
|
* mount: fix "duplicate mount options in mtab" bugDenis Vlasenko2006-09-171-3/+21
|
* mount: nfs_strerror's static buffer was bigger than needed.Denis Vlasenko2006-09-171-1/+1
|
* mount: getopt_ulflag'ificationDenis Vlasenko2006-09-171-38/+24
|
* mount: style fixesDenis Vlasenko2006-09-171-34/+34
|
* mount: fix bugs: free(mp->mnt_fsname) of non-malloced ptr;Denis Vlasenko2006-09-171-17/+20
| | | | check for "more than 2 arguments" was actually checking for -2.
* mount: use bb_simplify_path as appropriateDenis Vlasenko2006-09-171-21/+13
|
* mount: style fixesDenis Vlasenko2006-09-171-21/+24
|
* mount: reorder things, fix NFS-less mount.Denis Vlasenko2006-09-151-380/+360
|