aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* - single KERNEL_VERSION(a,b,c) macro in platform.hBernhard Reutner-Fischer2006-05-191-1/+1
| | | | | - rename get_kernel_revision() to get_linux_version_code from Robert P. J. Day
* Make md5 calculation always go through an the buffer so that A) we don'tRob Landley2006-05-161-1/+1
| | | | | | | | | | | 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.
* Fiddling with llist to make memory management easier. Specifically, theRob Landley2006-05-081-2/+2
| | | | | option to delete the contents of the list when we delete the list is a good thing.
* Not quite compiler independent, but we've never tried to be gcc independentRob Landley2006-05-041-6/+0
| | | | | anyway. This is at least less ugly than what was there before, and fixes building all sources at once.
* - patch from Denis Vlasenko to add and use bb_xopen3()Bernhard Reutner-Fischer2006-04-131-0/+1
|
* - patch from Denis Vlasenko to add and use bb_xchdir()Bernhard Reutner-Fischer2006-04-121-0/+1
|
* - patch from Denis Vlasenko to add bb_xbind() and bb_xlisten()Bernhard Reutner-Fischer2006-04-121-0/+2
|
* - patch from Denis Vlasenko to add and use bb_xdaemon()Bernhard Reutner-Fischer2006-04-121-0/+1
|
* - patch from Denis Vlasenko to add and use bb_xsocket() and to useBernhard Reutner-Fischer2006-04-121-0/+1
| | | | | bb_xopen some more while at it. Also use shorter boilerplate while at it.
* - add and use bb_opendir(), bb_xopendir().Bernhard Reutner-Fischer2006-04-121-0/+3
| | | | | | | | 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
* - include netinet/in.h for struct sockaddr_in.Bernhard Reutner-Fischer2006-04-111-0/+1
| | | | Closes bug #735
* Robert P. J. Day writes: even in the header file, make it clear that the ↵Mike Frysinger2006-04-111-0/+3
| | | | routine depends on __uClinux__
* Patch from Rob Sullivan to consolidate crc32 table generation.Rob Landley2006-04-101-0/+2
|
* - move buffer allocation schemes to libbb.hBernhard Reutner-Fischer2006-04-031-0/+18
| | | | - include the correct headers: applets need busybox.h while lib* need libbb.h
* - typos: s/compatability/compatibility/g;s/compatable/compatible/g;Bernhard Reutner-Fischer2006-04-021-1/+1
|
* Patch from Denis Vlasenko to add xstat() and use it.Rob Landley2006-03-131-0/+2
|
* Fixup to the previous (portability) patch. Linux actually does needRob Landley2006-03-091-1/+0
| | | | arpa/inet.h rather than netinet/in.h, otherwise we get warnings.
* Portability patch from rfelker. The bb_asprintf.c thing needs an eventualRob Landley2006-03-091-0/+1
| | | | | follow up in platform.h to set the #ifdef, but the workaround works for everybody, so...
* Missed one in the get_line_from_file() update...Rob Landley2006-02-241-1/+1
|
* Patch from Devin Bayer to split up hash_fd.c into md5.c and sha1.c. (I tweakedRob Landley2006-02-211-3/+23
| | | | md5_sha1_sum.c to convert some #ifdef CONFIG to if(ENABLE).)
* remove #undef strlen, use #define strlen always but without ↵"Vladimir N. Oleynik"2006-02-201-0/+2
| | | | xfunc/BB_STRLEN_IMPLEMENTATION
* - add platform.h.Bernhard Reutner-Fischer2006-01-221-35/+8
| | | | - use shorter boilerplate while at it.
* - shared libbusybox.Bernhard Reutner-Fischer2006-01-151-1/+1
| | | | | - IMA compilation option (aka IPO, IPA,..) Please holler if i broke something..
* Tito writes:Mike Frysinger2006-01-081-1/+1
| | | | | | | | | | | | | | | 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
* patch from tito: consolidate delay functions as bb_do_delay()Rob Landley2006-01-061-1/+2
|
* restore compare_string_array new interface (make broken by landley)"Vladimir N. Oleynik"2005-12-061-1/+1
|
* Fix losetup so that it A) actually works again, B) has much better errorRob Landley2005-11-291-1/+2
| | | | | | | | 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...
* change the interface of libbb/compare_string_array (unsigned short to int), ↵"Vladimir N. Oleynik"2005-11-261-1/+1
| | | | usaging for e2fsprogs/fsck
* more use const for interface of libbb/compare_string_array, example usage ↵"Vladimir N. Oleynik"2005-11-261-1/+1
| | | | for e2fsprogs/fsck
* common BUFSIZ BSS buffer, small reduce code, data and bss"Vladimir N. Oleynik"2005-10-151-0/+6
|
* bb_dev_null"Vladimir N. Oleynik"2005-10-121-1/+1
|
* - add llist_free_one() and llist_free() to libbb; Add a bit of documentation.Bernhard Reutner-Fischer2005-10-061-1/+13
| | | | | | | - 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.
* - add prototype for llist_add_to_end to libbb.hBernhard Reutner-Fischer2005-10-041-0/+1
|
* change interface to bb_xasprintf() - more perfect for me."Vladimir N. Oleynik"2005-09-291-2/+1
| | | | | ln.c: error_msg(str)->error_msg(%s, str) - remove standart "feature" for hackers reduce 100 bytes don't care in sum
* add a attribute_noreturn macroMike Frysinger2005-09-241-0/+2
|
* - make sure to include dmalloc.h at the very end of busybox.h or libbb.h.Bernhard Reutner-Fischer2005-09-211-10/+11
|
* - rename libbb's password helpers as suggested in libbb.hBernhard Reutner-Fischer2005-09-201-9/+7
| | | | | | | | 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
* - Remove unnecessary warning from libbb and move bb_wfopen_input near bb_wfopenBernhard Reutner-Fischer2005-09-201-4/+1
|
* This is strange typically modern mistake. Learn please: stat(2) used ↵"Vladimir N. Oleynik"2005-09-201-1/+1
| | | | sys/types.h and not reverse
* ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE->CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE"Vladimir N. Oleynik"2005-09-161-1/+1
|
* split libbb: moved xregcomp separatelly for speed up recompile"Vladimir N. Oleynik"2005-09-141-2/+0
|
* FEATURE->ENABLE_FEATURE loses one for 'top' applet"Vladimir N. Oleynik"2005-09-141-1/+1
|
* 1) bb_opt_complementaly -> bb_opt_complementally"Vladimir N. Oleynik"2005-09-051-1/+1
| | | | | 2) better support long options 3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally
* Bernhard Fischer suggested that get_terminal_width_height() should returnRob Landley2005-09-011-1/+1
| | | | | | 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...)
* Major rewrite of mount, umount, losetup. Untangled lots of code, shrunkRob Landley2005-08-101-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. - *
* implemented a builtin echo command in ash. moved the guts of thePaul Fox2005-08-091-0/+2
| | | | | | echo applet into libbb, and now call bb_echo() from both echo.c and ash.c
* #ifdef reduction infrastructure, based on an argument between Shaun Jackman,Rob Landley2005-07-271-1/+1
| | | | | | | | | | | | | | | | | | | Rob Landley, and others. Currently CONFIG options are defined or undefined, so we chop out code with #ifdefs, ala: #ifdef CONFIG_THING stuff(); #endif This creates a new header file, bb_config.h, which sets the CONFIG entry to 1 or 0, and lets us do: if(CONFIG_THING) stuff(); And let the compiler do dead code elimination to get rid of it. (Note: #ifdef will still work because for the 1 case it's a static const int, not a #define.)
* change the hardcoded error constant (0x80000000UL) to a nice flexible define ↵Mike Frysinger2005-05-111-0/+1
| | | | (BB_GETOPT_ERROR)
* A patch from Takeharu KATO to update/fix SE-Linux support.Rob Landley2005-05-031-9/+5
|
* Revert Tito's patch to zcip. My bad, David Brownell had objected and I missedRob Landley2005-05-031-4/+3
| | | | | it...