aboutsummaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
* This code exists to compensate for ancient broken build environments which,landley2005-09-073-231/+2
| | | | | | | | | | | | | | | as far as I can tell, are no longer relevant. Modern busybox refuses to build under libc5 (there's a specific test and #error for that), and I'm not sure building against 2.1 kernel headers on Alpha was ever relevant. I'm happy to put any of this back if anybody can point to a real need for it, but if so we need to specifically document what environment is being compensated for. (And we should quarrantine the build environment code into one place, anyway. Maybe "quirks.h" for known compiler and libc quirks?) git-svn-id: svn://busybox.net/trunk/busybox@11348 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Amir Shalem writes:vapier2005-09-061-7/+7
| | | | | | | this patch fix syscall names mix-up in libb/syscalls.c git-svn-id: svn://busybox.net/trunk/busybox@11346 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - sync traceroute with Slackware-10.1vodz2005-09-061-5/+12
| | | | | | | (support -FIl -g gw -i if -z pt now). - libbb/getopt_ulflags.c support bb_opt_complementally="x-x" as trigger now git-svn-id: svn://busybox.net/trunk/busybox@11345 69ca8d6d-28ef-0310-b511-8ec308f3f277
* get_terminal_width_height.c was in there twice.landley2005-09-051-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11338 69ca8d6d-28ef-0310-b511-8ec308f3f277
* 1) bb_opt_complementaly -> bb_opt_complementallyvodz2005-09-051-124/+149
| | | | | | | 2) better support long options 3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally git-svn-id: svn://busybox.net/trunk/busybox@11332 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Actually returning ret might be good.landley2005-09-051-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11325 69ca8d6d-28ef-0310-b511-8ec308f3f277
* According to bug #63, crond is unhappy with crontab lines that don't end in alandley2005-09-011-4/+8
| | | | | | | newline, or lines that have trailing spaces. git-svn-id: svn://busybox.net/trunk/busybox@11310 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bernhard Fischer suggested that get_terminal_width_height() should returnlandley2005-09-011-22/+7
| | | | | | | | | the result of the ioctl so callers can tell if we have a tty. (0 means we have a tty, nonzero means the ioctl couldn't find size info and we fake 80x24. Really we should fake 80x25, but oh well...) git-svn-id: svn://busybox.net/trunk/busybox@11306 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make sure __NF_sysfs exists before trying to use itvapier2005-08-271-0/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11267 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Two FEATURE_CLEAN_UP patches from Shaun Jackman, closing filehandles.landley2005-08-221-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11224 69ca8d6d-28ef-0310-b511-8ec308f3f277
* the () around isspace actually mattersvapier2005-08-161-2/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11169 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bernhard Fischer says: fix comment typovapier2005-08-161-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11167 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rewrite of mount, umount, losetup. Untangled lots of code, shrunklandley2005-08-104-191/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | things down a bit, fixed a number of funky corner cases, added support for several new features (things like mount --move, mount --bind, lazy unounts, automatic detection of loop mounts, and so on). Probably broke several other things, but it's fixable. (Bang on it, tell me what doesn't work for you...) Note: you no longer need to say "-o loop". It does that for you when necessary. Still need to add "user mount" support, which involves making mount suid. Not too hard to do under the new infrastructure, just haven't done it yet... The previous code had the following notes, that belong in the version control comments: - * 3/21/1999 Charles P. Wright <cpwright@cpwright.com> - * searches through fstab when -a is passed - * will try mounting stuff with all fses when passed -t auto - * - * 1999-04-17 Dave Cinege...Rewrote -t auto. Fixed ro mtab. - * - * 1999-10-07 Erik Andersen <andersen@codepoet.org>. - * Rewrite of a lot of code. Removed mtab usage (I plan on - * putting it back as a compile-time option some time), - * major adjustments to option parsing, and some serious - * dieting all around. - * - * 1999-11-06 mtab support is back - andersee - * - * 2000-01-12 Ben Collins <bcollins@debian.org>, Borrowed utils-linux's - * mount to add loop support. - * - * 2000-04-30 Dave Cinege <dcinege@psychosis.com> - * Rewrote fstab while loop and lower mount section. Can now do - * single mounts from fstab. Can override fstab options for single - * mount. Common mount_one call for single mounts and 'all'. Fixed - * mtab updating and stale entries. Removed 'remount' default. - * git-svn-id: svn://busybox.net/trunk/busybox@11099 69ca8d6d-28ef-0310-b511-8ec308f3f277
* implemented a builtin echo command in ash. moved the guts of thepgf2005-08-092-1/+165
| | | | | | | | | echo applet into libbb, and now call bb_echo() from both echo.c and ash.c git-svn-id: svn://busybox.net/trunk/busybox@11083 69ca8d6d-28ef-0310-b511-8ec308f3f277
* apgo in Bug 322 writes: kill off CONFIG_FEATURE_MTAB_FILENAMEvapier2005-07-301-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10976 69ca8d6d-28ef-0310-b511-8ec308f3f277
* move the ifdef to after libbb.h include, so it can do some good.pgf2005-07-271-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10933 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use toplevel ARFLAGS and update default ARFLAGS to be quietvapier2005-07-271-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10923 69ca8d6d-28ef-0310-b511-8ec308f3f277
* 2005-04-05 Shaun Jackman <sjackman@gmail.com>vapier2005-07-261-14/+14
| | | | | | | * libbb/printf.c: Check for __NEWLIB_H__ before __GLIBC__. git-svn-id: svn://busybox.net/trunk/busybox@10922 69ca8d6d-28ef-0310-b511-8ec308f3f277
* no longer used as reported by apgo in Bug 348vapier2005-07-261-0/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10918 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ifdef all of loop.c with CONFIG_FEATURE_MOUNT_LOOP. won'tpgf2005-07-221-0/+2
| | | | | | | | compile due to CONFIG_FEATURE_MOUNT_LOOP_MAX otherwise. reported by Stephane Billiart. git-svn-id: svn://busybox.net/trunk/busybox@10901 69ca8d6d-28ef-0310-b511-8ec308f3f277
* applying fix for:pgf2005-07-191-1/+1
| | | | | | | | | 0000117: Remove linefeed after overwrite prompt using cp -i User input not on the same line as the prompt when about to overwrite a file. git-svn-id: svn://busybox.net/trunk/busybox@10867 69ca8d6d-28ef-0310-b511-8ec308f3f277
* applying fix from:pgf2005-07-191-1/+1
| | | | | | | | | 0000068: mount limited to max 8 loop devices (patch provided) (made minor wording change for config help message) git-svn-id: svn://busybox.net/trunk/busybox@10863 69ca8d6d-28ef-0310-b511-8ec308f3f277
* applying fix from:pgf2005-07-191-3/+7
| | | | | | | | 0000067: cp -p produces misleading error message git-svn-id: svn://busybox.net/trunk/busybox@10862 69ca8d6d-28ef-0310-b511-8ec308f3f277
* change the hardcoded error constant (0x80000000UL) to a nice flexible define ↵vapier2005-05-111-3/+3
| | | | | | (BB_GETOPT_ERROR) git-svn-id: svn://busybox.net/trunk/busybox@10289 69ca8d6d-28ef-0310-b511-8ec308f3f277
* now that mjn3 explained it to me, add documentation for the 3rd field in ↵vapier2005-05-111-5/+12
| | | | | | long opts git-svn-id: svn://busybox.net/trunk/busybox@10287 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add documentation for long options and touch up the current docs now that i ↵vapier2005-05-101-39/+62
| | | | | | actually understand how to use the function myself :) git-svn-id: svn://busybox.net/trunk/busybox@10285 69ca8d6d-28ef-0310-b511-8ec308f3f277
* syntax/whitespace touchupvapier2005-05-091-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10273 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Shaun Jackman said:landley2005-05-031-9/+21
| | | | | | | | | This patch adds a CONFIG_FEATURE_CLEAN_UP stanza, and also adds an ifdef around the SIOCGIFMAP call. git-svn-id: svn://busybox.net/trunk/busybox@10241 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A patch from Takeharu KATO to update/fix SE-Linux support.landley2005-05-033-28/+37
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10238 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Revert Tito's patch to zcip. My bad, David Brownell had objected and I missedlandley2005-05-031-1/+1
| | | | | | | | it... git-svn-id: svn://busybox.net/trunk/busybox@10233 69ca8d6d-28ef-0310-b511-8ec308f3f277
* On Tuesday 19 April 2005 21:10, Tito wrote and today added:landley2005-05-011-1/+1
| | | | | | | | | | | | | | | | > Hi, > this is a first attempt of size optimization for zcip taking into account all > the hints given so far on the list. > I've applied just the more obvious busyboxifications so maybe it could be > optimized more. BTW: I've ripped out a lot of debug code and changed c++ // comments to /* */ as both were rather confusing for a newbie like me. ;-) Sorry to the author for that. I know that this makes mantaining the code easier, but I'm simple minded.... git-svn-id: svn://busybox.net/trunk/busybox@10215 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Correct errors preventing busybox tar from working properly,andersen2005-04-271-6/+11
| | | | | | | fixing bug http://bugs.uclibc.org/view.php?id=231 git-svn-id: svn://busybox.net/trunk/busybox@10187 69ca8d6d-28ef-0310-b511-8ec308f3f277
* In Bug 5, Tito writes:vapier2005-04-181-116/+210
| | | | | | | | | | | | | | | | | This is a first attempt to improve the comments of getopt_ulflags.c. Maybe under some aspects the text could be refined, but so far it is already usable and should help people who "avoided getopt_ulflags as the pest" to understand how it works. This patch was created with the help of Vodz, the author of the code, who explained me patiently how getopt_ulflags works and with the help of Paul Fox, who corrected my broken english. So thanks and merits should go to them also. git-svn-id: svn://busybox.net/trunk/busybox@10134 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Bernhard Fischer to make a bunch of symbols staticandersen2005-04-162-2/+2
| | | | | | | which were otherwise cluttering the global namespace. git-svn-id: svn://busybox.net/trunk/busybox@10121 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rework to fix http://bugs.uclibc.org/view.php?id=107andersen2005-04-161-32/+41
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10117 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add bb_msg_read_errorandersen2005-04-162-1/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10116 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fake out support for POSIX -H and -L options since busybox cp dereferences ↵vapier2005-04-141-4/+5
| | | | | | everything by default git-svn-id: svn://busybox.net/trunk/busybox@10097 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Shaun Jackman writes: Fix typo. Use __NR_umount2 instead of __NR_pivot_root.vapier2005-03-041-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9973 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add some more commentsvapier2005-03-041-30/+29
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9971 69ca8d6d-28ef-0310-b511-8ec308f3f277
* newlib fixe from Shaun Jackmanvapier2005-03-041-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9970 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Sort rewrite to be SUSv3 compliant. New config option, updated help, andlandley2005-01-241-1/+7
| | | | | | | a couple of infrastructure bits. git-svn-id: svn://busybox.net/trunk/busybox@9767 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Dear andersen:andersen2005-01-041-1/+2
| | | | | | | | | | | | | | | | Is the change on libbb/loop.c which you commited in 2005/1/3 effective really? The __GLIBC__ macro and __UCLIBC__ macro are defined in feature.h in glibc source, so the change may not be effective. If you want to check this with __GLIBC__, feature.h header is needed. Some architectures(e.g. PPC series) need to include linux/posix_types.h in stead of asm/posix_types.h, so the patch which is attached with this mail include <linux/posix_types.h>. git-svn-id: svn://busybox.net/trunk/busybox@9641 69ca8d6d-28ef-0310-b511-8ec308f3f277
* perhaps a better fixandersen2005-01-031-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9633 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Workaround for uClibc-specific header problem described here:landley2004-12-091-1/+1
| | | | | | | | | http://www.busybox.net/lists/busybox/2004-December/013276.html Rob git-svn-id: svn://busybox.net/trunk/busybox@9545 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make certain clients of bb_make_directory default to honoringandersen2004-10-131-1/+8
| | | | | | | the user's umask git-svn-id: svn://busybox.net/trunk/busybox@9413 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Claus Klein to increase, and make more apparentandersen2004-10-081-2/+4
| | | | | | | the hard coded limit on the number of mounts git-svn-id: svn://busybox.net/trunk/busybox@9330 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito writes:andersen2004-10-082-14/+14
| | | | | | | | | | | | | | | | Hi to all, This patch contains just some fixes for some misleading comments in my_getpwuid.c and my_getug.c. The code is untouched so this patch will not cause troubles. Please apply. Thanks in advance and Ciao, Tito git-svn-id: svn://busybox.net/trunk/busybox@9323 69ca8d6d-28ef-0310-b511-8ec308f3f277
* egor duda writes:andersen2004-10-082-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | Hi! I've created a patch to busybox' build system to allow building it in separate tree in a manner similar to kbuild from kernel version 2.6. That is, one runs command like 'make O=/build/some/where/for/specific/target/and/options' and everything is built in this exact directory, provided that it exists. I understand that applyingc such invasive changes during 'release candidates' stage of development is at best unwise. So, i'm currently asking for comments about this patch, starting from whether such thing is needed at all to whether it coded properly. 'make check' should work now, and one make creates Makefile in build directory, so one can run 'make' in build directory after that. One possible caveat is that if we build in some directory other than source one, the source directory should be 'distclean'ed first. egor git-svn-id: svn://busybox.net/trunk/busybox@9320 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Michael Tokarev:andersen2004-10-081-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Scenario: touch x -- creates plain file name `x' mkdir x -- exits successefully libbb/make_directory.c, bb_make_directory(), contains the following code: if (mkdir(path, 0777) < 0) { /* If we failed for any other reason than the directory * already exists, output a diagnostic and return -1.*/ if (errno != EEXIST) { fail_msg = "create"; umask(mask); break; } /* Since the directory exists, don't attempt to change * permissions if it was the full target. Note that * this is not an error conditon. */ if (!c) { umask(mask); return 0; } } The assumption that EEXIST error is due to that the *directory* already exists is wrong: any file type with that name will cause this error to be returned. Proper way IMHO will be is to stat() the path and check whenever this is really a directory. Below (attached) is a patch to fix this issue. git-svn-id: svn://busybox.net/trunk/busybox@9319 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove this error message at Vodz request, it was misleading.bug12004-09-241-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9274 69ca8d6d-28ef-0310-b511-8ec308f3f277