aboutsummaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug 424: doing full_read breaks things like cat which should return alandley2005-11-041-1/+1
| | | | | | | | | | | | chunk of data when they get it and not block until they've buffered 4k. The use case was cat /proc/psaux, but you can also reproduce this by running non-busybox cat by itself and typing things at the command line. Then run busybox cat. Notice how cat is _supposed_ to echo each line back to us as we hit enter? git-svn-id: svn://busybox.net/trunk/busybox@12147 69ca8d6d-28ef-0310-b511-8ec308f3f277
* When cp ran out of space it didn't return a nonzero error code. Fixes bug 493.landley2005-11-041-57/+27
| | | | git-svn-id: svn://busybox.net/trunk/busybox@12146 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix cp /dev/null filename, and a few in-passing cleanups.landley2005-11-011-59/+44
| | | | git-svn-id: svn://busybox.net/trunk/busybox@12100 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Somebody suggested this, but I've forgotten who.landley2005-10-271-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11934 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Shaun Jackman noted that limits.h defines path_max and isn't included fromlandley2005-10-251-0/+1
| | | | | | | | | find_root_device.c. (We #include it in busybox.h but not libbb.h, it seems. Someday, someone's going to have to clarify for me the difference between those two...) git-svn-id: svn://busybox.net/trunk/busybox@11913 69ca8d6d-28ef-0310-b511-8ec308f3f277
* more constvodz2005-10-201-19/+19
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11896 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - don't update copyright years. He might release it, but apparently will havealdot2005-10-151-1/+1
| | | | | | | to update the year himself. git-svn-id: svn://busybox.net/trunk/busybox@11875 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - an empty middle term in ?: violates ISO Caldot2005-10-151-31/+22
| | | | | | | - use shorter boilerplate and use C89 style comments git-svn-id: svn://busybox.net/trunk/busybox@11872 69ca8d6d-28ef-0310-b511-8ec308f3f277
* common BUFSIZ BSS buffer, small reduce code, data and bssvodz2005-10-152-1/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11867 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - new bb_opt_complementally syntax, use [-:?] only - 'free' charsvodz2005-10-141-64/+117
| | | | | | | - new bb_getopt_ulflags features: check max and min args, convert first argv to options special for ar and tar applets - use bb_default_error_retval for env applet git-svn-id: svn://busybox.net/trunk/busybox@11859 69ca8d6d-28ef-0310-b511-8ec308f3f277
* usage bb_dev_nullvodz2005-10-121-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11846 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_dev_nullvodz2005-10-123-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11845 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - use complementally '!' to '?' - 'ask' is best 'free' char for this.vodz2005-10-111-36/+72
| | | | | | | - more long opt compatibility, can set flag for long opt struct now - more logic: check opt-depend requires and global requires, special for 'id' and 'start-stop-daemon' applets. git-svn-id: svn://busybox.net/trunk/busybox@11828 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The check for EROFS was wrong. For example, if you try to mount a filesystemlandley2005-10-111-4/+3
| | | | | | | | | appended to an executable that's being run (yes, I'm doing this) you get EPERM, but mounting readonly fixes it. Doing the fallback all the time shouldn't hurt, and is one less test. git-svn-id: svn://busybox.net/trunk/busybox@11825 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_mkdep: Rewroted. removed problem "include name must uniq", speed up * 3.vodz2005-10-101-2/+0
| | | | | | | e2fsprogs: remove confuse bb_mkdep. Use internal e2fsprogs includes only. other: remove confuse bb_mkdep. git-svn-id: svn://busybox.net/trunk/busybox@11822 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - size reduction of pidofaldot2005-10-071-1/+1
| | | | | | | - fix typo in reverse_pidlist git-svn-id: svn://busybox.net/trunk/busybox@11799 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add llist_free_one() and llist_free() to libbbaldot2005-10-061-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11786 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add llist_free_one() and llist_free() to libbb; Add a bit of documentation.aldot2005-10-062-31/+60
| | | | | | | | | | - change llist_add_to_end as proposed by vodz in http://busybox.net/lists/busybox/2005-September/016411.html - remove unneeded includes, add short boilerplate and copyright to llist.c - move COMM_LEN from find_pid_by_name to libbb.h and use it in procps_status_t - add reverse_pidlist() to find_pid_by_name. Will be needed for pidof. git-svn-id: svn://busybox.net/trunk/busybox@11785 69ca8d6d-28ef-0310-b511-8ec308f3f277
* another more correction for getopt_ulflags() documentation (examples)vodz2005-10-051-5/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11771 69ca8d6d-28ef-0310-b511-8ec308f3f277
* more correction for getopt_ulflags() documentation by author of this fuck logicvodz2005-10-051-5/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11768 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add proper separators. sorry for the noise..aldot2005-10-051-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11767 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add a bit more documentation to vodz' recent additions.aldot2005-10-051-8/+26
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11766 69ca8d6d-28ef-0310-b511-8ec308f3f277
* update bb_getopt_ulflags special for 'ps' applet, usaging '-' as first group ↵vodz2005-10-051-14/+42
| | | | | | | | | | char from bb_opt_complementally is new feature: set argv is options; use new bb_getopt_ulflags for ps # define terminal_width 80->79 for unwide use stdout file descriptor for get_terminal_width_height. (its must) git-svn-id: svn://busybox.net/trunk/busybox@11765 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use updated bb_getopt_ulflags() for ps appletvodz2005-10-041-3/+27
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11755 69ca8d6d-28ef-0310-b511-8ec308f3f277
* change interface to bb_xasprintf() - more perfect for me.vodz2005-09-293-12/+8
| | | | | | | ln.c: error_msg(str)->error_msg(%s, str) - remove standart "feature" for hackers reduce 100 bytes don't care in sum git-svn-id: svn://busybox.net/trunk/busybox@11694 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - rename llist_add_to.c to llist.caldot2005-09-293-17/+53
| | | | | | | - move llist_add_to_end() from ifupdown.c to libbb/llist.c git-svn-id: svn://busybox.net/trunk/busybox@11691 69ca8d6d-28ef-0310-b511-8ec308f3f277
* spwd bulid now, (typo)vodz2005-09-261-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11649 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Amir Shalem to make busybox compile on a uClibc that has no shadowlandley2005-09-251-3/+5
| | | | | | | password support. git-svn-id: svn://busybox.net/trunk/busybox@11647 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use the shorter license headervapier2005-09-241-15/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11624 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use brief license linevapier2005-09-241-14/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11618 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - consolidated password helpersaldot2005-09-201-0/+179
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11517 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - consolidated password helpers into bb_pwd.caldot2005-09-206-305/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11516 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - rename libbb's password helpers as suggested in libbb.haldot2005-09-202-7/+13
| | | | | | | | | | | 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
* ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE->CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGEvodz2005-09-161-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11480 69ca8d6d-28ef-0310-b511-8ec308f3f277
* split libbb: moved xregcomp separatelly for speed up recompilevodz2005-09-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11464 69ca8d6d-28ef-0310-b511-8ec308f3f277
* FEATURE->ENABLE_FEATURE loses one for 'top' appletvodz2005-09-141-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11462 69ca8d6d-28ef-0310-b511-8ec308f3f277
* 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