summaryrefslogtreecommitdiff
path: root/libbb/llist.c
Commit message (Collapse)AuthorAgeFilesLines
* whitespace and comment format fixes, no code changesDenys Vlasenko2017-10-051-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* main: free suid_config list after useDenys Vlasenko2011-05-161-1/+1
| | | | | | | | | | | | | | | | | | | function old new delta run_applet_no_and_exit 438 450 +12 ifupdown_main 2147 2149 +2 writeFileToTarball 1325 1326 +1 pidof_main 244 245 +1 last_main 896 897 +1 grep_main 779 780 +1 find_list_entry2 121 122 +1 tar_main 835 833 -2 llist_unlink 28 26 -2 llist_rev 23 21 -2 main 791 782 -9 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 7/4 up/down: 19/-15) Total: 4 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move llist_find_str from modutils to libbbDenis Vlasenko2009-04-131-0/+10
|
* libbb: shrink linked list ops (by xmaks AT email.cz)Denis Vlasenko2009-01-131-36/+18
| | | | | | | | | | function old new delta llist_pop 33 29 -4 llist_unlink 47 28 -19 llist_add_to_end 50 31 -19 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-42) Total: -42 bytes
* - update my name. No obj-code changes ;)Bernhard Reutner-Fischer2008-09-251-1/+1
|
* modutils/*: rewrite by Timo Teras <timo.teras AT iki.fi>Denis Vlasenko2008-09-131-2/+0
| | | | | | | | | | | | | | | - a lot faster (linear algorithmic complexity, smaller memory foot print) - a lot smaller (the old code was overly complicated) - loading of aliases is now module-init-tools compliant - blacklisting is done correctly (-b option added) - module argument quoting done right - depmod now correctly generates modules.symbols and modules.alias add/remove: 16/21 grow/shrink: 4/6 up/down: 6930/-9316 Total: -2386 bytes text data bss dec hex filename 806039 592 6680 813311 c68ff busybox_old 803498 592 6676 810766 c5f0e busybox_unstripped
* *: introduce and use FAST_FUNC: regparm on i386, otherwise no-onDenis Vlasenko2008-06-271-6/+6
| | | | | | | text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
* delete tons of extra #includesDenis Vlasenko2007-05-311-1/+0
|
* getopt32: fix llist_t options ordering. llist_rev is not unused.Denis Vlasenko2007-04-081-11/+12
| | | | | | | | | | | | | | | | function old new delta tar_main 705 695 -10 sort_main 928 918 -10 decode_format_string 886 876 -10 run_parts_main 197 185 -12 ps_main 513 500 -13 wget_main 2764 2750 -14 awk_main 1014 1000 -14 od_main 2886 2866 -20 llist_rev 25 - -25 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/8 up/down: 0/-128) Total: -128 bytes
* ifupdown: code to deconstruct the state_list gracefullyDenis Vlasenko2007-03-061-8/+27
| | | | (patch by Gabriel L. Somlo <somlo@cmu.edu>)
* sort: fix multiple -k (was ignoring all except last)Denis Vlasenko2007-02-171-1/+1
|
* - indentBernhard Reutner-Fischer2007-02-041-9/+20
|
* wget: wget $'-\207' ... should not be allowed to work. ever. :)Denis Vlasenko2006-10-251-0/+14
| | | | | So fix wget & getopt32. Also fix multiple --header options order: add and use rev_llist.
* build system overhaulDenis Vlasenko2006-10-051-8/+0
|
* - fix copy'n paste errors that got introduced when switching to the shorter ↵Bernhard Reutner-Fischer2006-09-131-1/+1
| | | | | | boilerplate. No object code changes.
* Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate."Robert P. J. Day"2006-07-101-0/+1
|
* Change llist_add_* to take the address of the list rather than returning the newRob Landley2006-05-261-18/+10
| | | | head, and change all the callers.
* Slight sanity fix: data is void *, not char *. And it's called dataRob Landley2006-05-261-3/+3
| | | | almost everywhere, so be consistent.
* Bug fix from Vladimir Oleynik, and suggestion I add my copyright noticeRob Landley2006-05-111-2/+3
| | | | to the file.
* Fiddling with llist to make memory management easier. Specifically, theRob Landley2006-05-081-10/+21
| | | | | option to delete the contents of the list when we delete the list is a good thing.
* Random in-passing tweak.Rob Landley2006-03-161-6/+2
|
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-4/+4
| | | | definitions. (That should only be on prototypes.)
* - add llist_free_one() and llist_free() to libbb; Add a bit of documentation.Bernhard Reutner-Fischer2005-10-061-13/+41
| | | | | | | - 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.
* - rename llist_add_to.c to llist.cBernhard Reutner-Fischer2005-09-291-0/+43
- move llist_add_to_end() from ifupdown.c to libbb/llist.c