aboutsummaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add comments to all the functions in this file documenting what they're for.landley2006-08-041-33/+76
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15779 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Thinko spotted by Vladimir Dronnikov.landley2006-08-041-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15774 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove xcalloc() and convert its callers to xzalloc(). About half of themlandley2006-08-031-9/+0
| | | | | | | | 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
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidatelandley2006-08-0326-425/+143
| | | | | | | | | | | | | 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.) git-svn-id: svn://busybox.net/trunk/busybox@15767 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleaup read() and write() variants, plus a couple of new functions likelandley2006-07-168-32/+84
| | | | | | | xlseek and fdlength() for the new mkswap. git-svn-id: svn://busybox.net/trunk/busybox@15703 69ca8d6d-28ef-0310-b511-8ec308f3f277
* We need xsetuid() and xsetgid() because per-user process resource limits canlandley2006-07-151-0/+12
| | | | | | | | prevent a process from switching to a user that has too many processes, and when that happens WE'RE STILL ROOT. See http://lwn.net/Articles/190331/ git-svn-id: svn://busybox.net/trunk/busybox@15700 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito writes: If the gecos field of an user is empty, obscure reports a false ↵vapier2006-07-151-1/+1
| | | | | | "similar to gecos" error. git-svn-id: svn://busybox.net/trunk/busybox@15698 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More minor tweaks.landley2006-07-122-10/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15689 69ca8d6d-28ef-0310-b511-8ec308f3f277
* decuddle () from for/if/whilevapier2006-07-121-14/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15688 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A couple things that got tangled up in my tree, easier to check in both thanlandley2006-07-121-160/+40
| | | | | | | | | | | | | | | | | untangle them: Rewrite u_signal_names() into get_signum() and get_signame(), plus trim the signal list to that required by posix (they can specify the numbers for the rest if they really need them). (This is preparatory cleanup for adding a timeout applet like Roberto Foglietta wants.) Export the itoa (added due to Denis Vlasenko, although it's not quite his preferred implementation) from xfuncs.c so it's actually used, and remove several other redundant implementations of itoa and utoa() in the tree. git-svn-id: svn://busybox.net/trunk/busybox@15687 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Tito to remove pwd_to_spwd (which we don't actually need), withlandley2006-07-112-75/+0
| | | | | | | some #ifdef removal from me. git-svn-id: svn://busybox.net/trunk/busybox@15685 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Denis Vlasenko spotted the lack of bounds checking in my first attempt atlandley2006-07-111-11/+14
| | | | | | | itoa/utoa. git-svn-id: svn://busybox.net/trunk/busybox@15683 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate.rpjday2006-07-1036-404/+36
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15674 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add itoa and utoa to see what Denis Vlasenko thinks.landley2006-07-101-1/+50
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15673 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Attempt to address Shaun Jackman's problem adding "busybox: busybox.bflt" tolandley2006-07-061-0/+6
| | | | | | | .config.mak. git-svn-id: svn://busybox.net/trunk/busybox@15659 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Correct the comment to match the code.rpjday2006-07-021-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15582 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Standardize on the vi editing directives being on the first line.rpjday2006-07-0213-1/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15581 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Allow a user-configurable minimum password length.rpjday2006-07-022-7/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15580 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More removal of "#if 0" content.rpjday2006-07-011-3/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15571 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove all usage of the "register" storage class specifier.rpjday2006-07-011-10/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15568 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This kind of paranoia is a debug option at best.landley2006-06-301-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15558 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix bug http://bugs.busybox.net/view.php?id=874 where hexdump -C got itslandley2006-06-281-2/+3
| | | | | | | spacing wrong. git-svn-id: svn://busybox.net/trunk/busybox@15541 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix http://bugs.busybox.net/view.php?id=906 which could cause failures in top.landley2006-06-271-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15532 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Whitespace. (Vim's auto-indent is kind of annoying at times, like "daytime"landley2006-06-251-1/+1
| | | | | | | and "nighttime"...) git-svn-id: svn://busybox.net/trunk/busybox@15510 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a possible race condition if two processes try to claim the same looplandley2006-06-251-3/+4
| | | | | | | | device at the same time. We should only CLR_FD if the set status fails, not if the SET_FD fails. git-svn-id: svn://busybox.net/trunk/busybox@15509 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The logic to make cp -d or -P treat things like regular files should onlylandley2006-06-241-21/+14
| | | | | | | | | | trigger for symlinks, not for device nodes. This should fix "cp -a /dev ." to work as expected (when run by root, anyway). While I was there, cleanup headers and make an #ifdef go away... git-svn-id: svn://busybox.net/trunk/busybox@15501 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The type changed too.landley2006-06-201-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15441 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use the new names for tty_baud_to_value() and tty_value_to_baud() again.pkj2006-06-201-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15440 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Revert the last two patches to go back to a state before this file waslandley2006-06-201-16/+94
| | | | | | | controversial. git-svn-id: svn://busybox.net/trunk/busybox@15439 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Undo all of the ugliness and some of the bloat from 15412.landley2006-06-181-141/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15421 69ca8d6d-28ef-0310-b511-8ec308f3f277
* skip_whitespace() shouldn't claim its return value is const, it doesn't knowlandley2006-06-184-39/+21
| | | | | | | that and callers wind up typecasting it back. git-svn-id: svn://busybox.net/trunk/busybox@15420 69ca8d6d-28ef-0310-b511-8ec308f3f277
* danf writes: stty doesn't support baud rates > 460800 bps, the attached ↵vapier2006-06-171-2/+35
| | | | | | patch adds support for all baud rates supported by Linux 2.6.16 on x86. git-svn-id: svn://busybox.net/trunk/busybox@15412 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Revert svn 15333. If you vfork, you must either exec or exit. (The parent islandley2006-06-161-19/+5
| | | | | | | blocked until you do so.) git-svn-id: svn://busybox.net/trunk/busybox@15408 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Attempt at fixing bug 815 by upgrading bb_spawn() so that builtins are atlandley2006-06-141-1/+15
| | | | | | | | | | | the start of the path. (This should be under the same config option as the standalone shell, but right now that's buried in the shell menu.) Also add the ability to specify CONFIG_BUSYBOX_EXEC_PATH with /proc/self/exe as an overrideable default. git-svn-id: svn://busybox.net/trunk/busybox@15380 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Random cleanup of platform.h.landley2006-06-131-7/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15375 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - fix bug #887, in bb_get_chomped_line_from_file(), the last char was removedaldot2006-06-101-9/+14
| | | | | | | | | unconditionally, even if it was not a newline. This was apparently broken by r14254 - whitespace while at it. git-svn-id: svn://busybox.net/trunk/busybox@15348 69ca8d6d-28ef-0310-b511-8ec308f3f277
* made "test" an ash built-in.pgf2006-06-082-152/+1
| | | | | | | | | | | | | | | | | | | | | | moved the contents of libbb/bb_echo.c back into coreutils/echo.c, which is a more reasonable place for them than libbb. this forces anyone who wants echo and test to be builtin to ash to also have them available as applets. their cost is very small, and the number of people who wouldn't want them as applets is also very small. added warning about shell builtins vs. CONFIG_FEATURE_SH_STANDALONE_SHELL, which conflicts with their use. thanks to nathanael copa for debugging help. some string size optimization in test.c may have been lost with this commit, but this is a good new baseline. git-svn-id: svn://busybox.net/trunk/busybox@15344 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sometimes daemonizing and vfork()/exit() is okvapier2006-06-071-5/+19
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15333 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_xdaemon() isnt available on no-mmu systemsvapier2006-06-071-1/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15332 69ca8d6d-28ef-0310-b511-8ec308f3f277
* comment all fieldsvapier2006-06-071-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15331 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add reference to proc(5)vapier2006-06-071-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15326 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - reuse strings and messages. Saves about 600Baldot2006-06-071-1/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15325 69ca8d6d-28ef-0310-b511-8ec308f3f277
* whitespacevapier2006-06-071-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15322 69ca8d6d-28ef-0310-b511-8ec308f3f277
* whitespacevapier2006-06-071-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15321 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - make getopt_ulflags aware of CONFIG_GETOPT_LONGaldot2006-05-311-1/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15248 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - convert xcalloc(1,x) to xzallocaldot2006-05-311-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15246 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - s/defined(__uClinux__)/BB_NOMMU/aldot2006-05-311-2/+2
| | | | | | | | | | This needs a second pass to: + add bb_daemon(unsigned char no_chdir, unsigned char no_close, const char*flag) + eventually globally export argc and argv, so we don't need to pass it to bb_daemon(). git-svn-id: svn://busybox.net/trunk/busybox@15244 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add SWAP_LE?? and SWAP_BE?? macros, and make things use them. Converts valueslandley2006-05-291-15/+6
| | | | | | | | to/from little endian or big endian, which is a NOP if that's what the current platform already is. git-svn-id: svn://busybox.net/trunk/busybox@15215 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change llist_add_* to take the address of the list rather than returning the newlandley2006-05-262-20/+11
| | | | | | | head, and change all the callers. git-svn-id: svn://busybox.net/trunk/busybox@15199 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Slight sanity fix: data is void *, not char *. And it's called datalandley2006-05-261-3/+3
| | | | | | | almost everywhere, so be consistent. git-svn-id: svn://busybox.net/trunk/busybox@15198 69ca8d6d-28ef-0310-b511-8ec308f3f277