aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-4/+4
| | | | | | | | 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.
* rename bb_default_error_retval -> xfunc_error_retvalDenis Vlasenko2006-10-031-1/+1
|
* random style fixesDenis Vlasenko2006-10-031-14/+16
|
* runit/chpst: "change process state" utilityDenis Vlasenko2006-10-031-3/+4
| | | | It's "nice" on steroids - can set uid/gid, mem/cpu limits etc. +3.5k
* g[un]zip: add support for -v (verbose).Denis Vlasenko2006-10-011-3/+3
| | | | | Add CONFIG_DESKTOP, almost all bloat from this change is hidden under that.
* losetup: use /dev/loopN or /dev/loop/N according to CONFIG_FEATURE_DEVFS=n/yDenis Vlasenko2006-09-291-0/+2
|
* kill: fix bugs (kill -l output was horrible), fix style, constify dataDenis Vlasenko2006-09-271-2/+2
|
* wget: add (configurable) large file support. Run tested.Denis Vlasenko2006-09-261-0/+2
|
* The Software Freedom Law Center wants us to add a copyright notice to theRob Landley2006-09-201-3/+4
| | | | | | | | | | | | | | | generated binaries, to make copyright enforcement easier. Our liason with them (Bradley Kuhn) suggested the following text: > Copyright (C) YEAR-2006  Erik Andersen, Rob Landley, and others. > Licensed under GPLv2.  See source distribution for full notice. And the busybox help message seems the least offensive place to put it. (At some point in the future, I need to strip 128 bytes from the binary to feel good about this, though. :) Minor header file cleanup while I was there, since libbb.h already #includes most of that stuff...
* change char *string = "foo" -> char string[] = "foo"Denis Vlasenko2006-09-191-26/+26
| | | | | | | | | | | | | | | | | | function old new delta xsetenv 45 44 -1 iproute_list_or_flush 1834 1833 -1 ipaddr_modify 1915 1914 -1 ipaddr_list_or_flush 1861 1860 -1 invarg 39 38 -1 do_set 1259 1258 -1 bb_verror_msg 268 267 -1 create_icmp_socket 142 140 -2 create_icmp6_socket 142 140 -2 bb_full_fd_action 324 322 -2 bb_path_mtab_file 10 - -10 .rodata 214796 214720 -76 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/11 up/down: 0/-99) Total: -99 bytes
* Unbreak allbareconfig.Rob Landley2006-09-151-15/+3
| | | | | | We've had -Werror in the tree for quite a while, so adding #warning somewhat counterproductve way to make comments on the code that belong on the mailing list anyway.
* mount: move code from nfsmount.c into mount.cDenis Vlasenko2006-09-141-3/+0
|
* Remove pointless "const". Bloatcheck says 0 bytes difference.Rob Landley2006-09-121-1/+1
|
* nfsmount: sanitize it. It had a rather peculiar idea of implementing "bg"Denis Vlasenko2006-09-111-2/+2
| | | | | | | | | 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.
* - merge xstat.c into xfuncs.cBernhard Reutner-Fischer2006-09-111-1/+1
|
* login: style fixesDenis Vlasenko2006-09-081-3/+3
|
* getty, sulogin: convert to using bb_msg for syslog outputDenis Vlasenko2006-09-071-0/+2
|
* Implement optional syslog logging using ordinaryDenis Vlasenko2006-09-061-1/+12
| | | | | | bb_xx_msg calls, and convert networking/* to it. The rest of bbox will be converted gradually.
* uuencode: common implementation for wget and uuencode (closing bug 694)Denis Vlasenko2006-09-031-0/+4
|
* - pull from busybox_scratch: r15829:15850Bernhard Reutner-Fischer2006-08-281-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* No real need for my_query_module() and this eliminates some type-punnedRob Landley2006-08-281-2/+0
| | | | pointer warning on certain gcc versions (and saves 38 bytes).
* Another whack at scripts/individual. Now builds 212 applets.Rob Landley2006-08-091-0/+2
|
* Add shared subtree support, suggested by Vladimir Dronnikov. Also break out aRob Landley2006-08-081-1/+1
| | | | | | 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...
* Remove xcalloc() and convert its callers to xzalloc(). About half of themRob Landley2006-08-031-1/+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.
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-22/+30
| | | | | | | | | | 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.)
* Cleaup read() and write() variants, plus a couple of new functions likeRob Landley2006-07-161-5/+7
| | | | xlseek and fdlength() for the new mkswap.
* We need xsetuid() and xsetgid() because per-user process resource limits canRob Landley2006-07-151-0/+2
| | | | | 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/
* A couple things that got tangled up in my tree, easier to check in both thanRob Landley2006-07-121-1/+10
| | | | | | | | | | | | | | 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.
* Patch from Tito to remove pwd_to_spwd (which we don't actually need), withRob Landley2006-07-111-6/+0
| | | | some #ifdef removal from me.
* Upgrade netcat a lot. Make -e able to take the rest of the command line asRob Landley2006-07-101-0/+1
| | | | | | | what to exec. Add -f mode and a brief explanation of how to use it to replace minicom. Add -l -l mode so you can turn any command into a server. And group all of netcat's command line options under two CONFIG entries, so if you disable both it doesn't use getopt at all.
* Minor build tweaks that save 1100 bytes building busybox on Ubuntu 6.06.Rob Landley2006-07-061-0/+15
|
* Slowly pulling more common headers into libbb.h. Andre pointed out thatRob Landley2006-06-241-0/+5
| | | | | older uClibc didn't include sys/socket.h from netinet/in.h, so add an explicit #include for that too...
* Since rangecoder is just a bunch of C functions, move it into the one userRob Landley2006-06-201-0/+1
| | | | | (decompress_unlzma.c). Also a slight #include cleanup, and I've been meaning to put #include <unistd.h> into libbb.h since it's so darn common...
* Undo all of the ugliness and some of the bloat from 15412.Rob Landley2006-06-181-2/+2
|
* skip_whitespace() shouldn't claim its return value is const, it doesn't knowRob Landley2006-06-181-1/+1
| | | | that and callers wind up typecasting it back.
* Attempt at fixing bug 815 by upgrading bb_spawn() so that builtins are atRob Landley2006-06-141-0/+1
| | | | | | | | 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.
* made "test" an ash built-in.Paul Fox2006-06-081-0/+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.
* need prototype for new vfork_daemon()Mike Frysinger2006-06-071-0/+1
|
* - reuse strings and messages. Saves about 600BBernhard Reutner-Fischer2006-06-071-0/+2
|
* Header cleanup on two more networking files (move libbb.h to the top andRob Landley2006-06-051-16/+13
| | | | | remove #includes that libbb.h already does), plus a minor cleanup of libbb.h to move #includes towards the top of the file where we can see 'em.
* Header file cleanup. platform.h apparently needs to be included early on so itRob Landley2006-05-311-9/+21
| | | | | | | | | | | can figure out what header files to include, and override stuff that comes later. But applets shouldn't include platform.h directly, they should include busybox.h or libbb.h. Since busybox.h already includes libbb.h, move libbb.h to the top of busybox.h and platform.h near the top of libbb.h (right after bbconfig.h, which is something platform.h also needs access to). While we're at it, move some stuff from busybox.h to libbb.h so we have one big file to audit/clean up/try to make sense of instead of many.
* - s/defined(__uClinux__)/BB_NOMMU/Bernhard Reutner-Fischer2006-05-311-1/+1
| | | | | | | 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().
* Fix hdparm to use PRIu64 instead of typecasting to long long (which is 128 bitsRob Landley2006-05-281-0/+1
| | | | on 64 bit platforms), and move #include <inttypes.h> to libbb.h.
* Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley2006-05-271-0/+2
|
* Change llist_add_* to take the address of the list rather than returning the newRob Landley2006-05-261-2/+2
| | | | head, and change all the callers.
* Slight sanity fix: data is void *, not char *. And it's called dataRob Landley2006-05-261-2/+2
| | | | almost everywhere, so be consistent.
* - introduce and use bb_path_wtmp_file for portability (saves 11 Bytes).Bernhard Reutner-Fischer2006-05-261-4/+6
| | | | - fix last.c to also look at the double-underscore UT_ defines.
* - move llist to top of file so we can potentially use it in all prototypes ↵Bernhard Reutner-Fischer2006-05-261-9/+10
| | | | easily
* Rich Felker suggested removing dprintf() from watch, and one thing led toRob Landley2006-05-251-0/+2
| | | | | | another... This adds bb_xspawn() support, which does vfork/exec. (I don't know why using a static instead of a local adds ~40 bytes, but using the local doesn't work...)
* A pending item in my tree I might as well check in: I plan to migrate calloc()Rob Landley2006-05-191-0/+1
| | | | | and bb_calloc() calls to bb_xzalloc() which allocates prezeroed memory but only takes one argument (the size).