aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
AgeCommit message (Collapse)Author
2006-06-18skip_whitespace() shouldn't claim its return value is const, it doesn't knowRob Landley
that and callers wind up typecasting it back.
2006-06-14Attempt at fixing bug 815 by upgrading bb_spawn() so that builtins are atRob Landley
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.
2006-06-08made "test" an ash built-in.Paul Fox
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.
2006-06-07need prototype for new vfork_daemon()Mike Frysinger
2006-06-07- reuse strings and messages. Saves about 600BBernhard Reutner-Fischer
2006-06-05Header cleanup on two more networking files (move libbb.h to the top andRob Landley
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.
2006-05-31Header file cleanup. platform.h apparently needs to be included early on so itRob Landley
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.
2006-05-31- s/defined(__uClinux__)/BB_NOMMU/Bernhard Reutner-Fischer
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().
2006-05-28Fix hdparm to use PRIu64 instead of typecasting to long long (which is 128 bitsRob Landley
on 64 bit platforms), and move #include <inttypes.h> to libbb.h.
2006-05-27Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley
2006-05-26Change llist_add_* to take the address of the list rather than returning the newRob Landley
head, and change all the callers.
2006-05-26Slight sanity fix: data is void *, not char *. And it's called dataRob Landley
almost everywhere, so be consistent.
2006-05-26- introduce and use bb_path_wtmp_file for portability (saves 11 Bytes).Bernhard Reutner-Fischer
- fix last.c to also look at the double-underscore UT_ defines.
2006-05-26- move llist to top of file so we can potentially use it in all prototypes ↵Bernhard Reutner-Fischer
easily
2006-05-25Rich Felker suggested removing dprintf() from watch, and one thing led toRob Landley
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...)
2006-05-19A pending item in my tree I might as well check in: I plan to migrate calloc()Rob Landley
and bb_calloc() calls to bb_xzalloc() which allocates prezeroed memory but only takes one argument (the size).
2006-05-19- single KERNEL_VERSION(a,b,c) macro in platform.hBernhard Reutner-Fischer
- rename get_kernel_revision() to get_linux_version_code from Robert P. J. Day
2006-05-16Make md5 calculation always go through an the buffer so that A) we don'tRob Landley
handle packets out of sequence if some data goes through the buffer and some doesn't, B) it works on systems that can't handle aligned access, C) we just have one code path to worry about. While we're at it, sizeof() and RESERVE_CONFIG_BUFFER() really don't combine well, which is why md5sum has been reading and processing data 4 bytes at a time. I suspect that the existence of CONFIG_MD5_SIZE_VS_SPEED to do loop unrolling and such in the algorithm was an attempt to work around that bug.
2006-05-08Fiddling with llist to make memory management easier. Specifically, theRob Landley
option to delete the contents of the list when we delete the list is a good thing.
2006-05-04Not quite compiler independent, but we've never tried to be gcc independentRob Landley
anyway. This is at least less ugly than what was there before, and fixes building all sources at once.
2006-04-13- patch from Denis Vlasenko to add and use bb_xopen3()Bernhard Reutner-Fischer
2006-04-12- patch from Denis Vlasenko to add and use bb_xchdir()Bernhard Reutner-Fischer
2006-04-12- patch from Denis Vlasenko to add bb_xbind() and bb_xlisten()Bernhard Reutner-Fischer
2006-04-12- patch from Denis Vlasenko to add and use bb_xdaemon()Bernhard Reutner-Fischer
2006-04-12- patch from Denis Vlasenko to add and use bb_xsocket() and to useBernhard Reutner-Fischer
bb_xopen some more while at it. Also use shorter boilerplate while at it.
2006-04-12- add and use bb_opendir(), bb_xopendir().Bernhard Reutner-Fischer
text data bss dec hex filename 889445 9392 1035784 1934621 1d851d busybox.gcc-4.2.orig 889297 9392 1035784 1934473 1d8489 busybox.gcc-4.2 889009 9820 1037860 1936689 1d8d31 busybox.gcc-4.1.orig 888817 9820 1037860 1936497 1d8c71 busybox.gcc-4.1
2006-04-11- include netinet/in.h for struct sockaddr_in.Bernhard Reutner-Fischer
Closes bug #735
2006-04-11Robert P. J. Day writes: even in the header file, make it clear that the ↵Mike Frysinger
routine depends on __uClinux__
2006-04-10Patch from Rob Sullivan to consolidate crc32 table generation.Rob Landley
2006-04-03- move buffer allocation schemes to libbb.hBernhard Reutner-Fischer
- include the correct headers: applets need busybox.h while lib* need libbb.h
2006-04-02- typos: s/compatability/compatibility/g;s/compatable/compatible/g;Bernhard Reutner-Fischer
2006-03-13Patch from Denis Vlasenko to add xstat() and use it.Rob Landley
2006-03-09Fixup to the previous (portability) patch. Linux actually does needRob Landley
arpa/inet.h rather than netinet/in.h, otherwise we get warnings.
2006-03-09Portability patch from rfelker. The bb_asprintf.c thing needs an eventualRob Landley
follow up in platform.h to set the #ifdef, but the workaround works for everybody, so...
2006-02-24Missed one in the get_line_from_file() update...Rob Landley
2006-02-21Patch from Devin Bayer to split up hash_fd.c into md5.c and sha1.c. (I tweakedRob Landley
md5_sha1_sum.c to convert some #ifdef CONFIG to if(ENABLE).)
2006-02-20remove #undef strlen, use #define strlen always but without ↵"Vladimir N. Oleynik"
xfunc/BB_STRLEN_IMPLEMENTATION
2006-01-22- add platform.h.Bernhard Reutner-Fischer
- use shorter boilerplate while at it.
2006-01-15- shared libbusybox.Bernhard Reutner-Fischer
- IMA compilation option (aka IPO, IPA,..) Please holler if i broke something..
2006-01-08Tito writes:Mike Frysinger
Somehow while applying the bb_do_delay patch a change slipped in libbb.h that broke compilation. libbb.h Line 355 extern char bb_path_mtab_file[]; This conflicts with mtab_file.c #if defined(CONFIG_FEATURE_MTAB_SUPPORT) const char bb_path_mtab_file[] = "/etc/mtab"; #else const char bb_path_mtab_file[] = "/proc/mounts"; #endif
2006-01-06patch from tito: consolidate delay functions as bb_do_delay()Rob Landley
2005-12-06restore compare_string_array new interface (make broken by landley)"Vladimir N. Oleynik"
2005-11-29Fix losetup so that it A) actually works again, B) has much better errorRob Landley
messages, C) can show the current association (if any) when called with only one argument. Update the documentation a lot too. Remind me to add a test suite for this thing. I think I've figured out how to handle root-only testsuites...
2005-11-26change the interface of libbb/compare_string_array (unsigned short to int), ↵"Vladimir N. Oleynik"
usaging for e2fsprogs/fsck
2005-11-26more use const for interface of libbb/compare_string_array, example usage ↵"Vladimir N. Oleynik"
for e2fsprogs/fsck
2005-10-15common BUFSIZ BSS buffer, small reduce code, data and bss"Vladimir N. Oleynik"
2005-10-12bb_dev_null"Vladimir N. Oleynik"
2005-10-06- add llist_free_one() and llist_free() to libbb; Add a bit of documentation.Bernhard Reutner-Fischer
- 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.
2005-10-04- add prototype for llist_add_to_end to libbb.hBernhard Reutner-Fischer
2005-09-29change interface to bb_xasprintf() - more perfect for me."Vladimir N. Oleynik"
ln.c: error_msg(str)->error_msg(%s, str) - remove standart "feature" for hackers reduce 100 bytes don't care in sum