aboutsummaryrefslogtreecommitdiff
path: root/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
* in order to make sure the INET6 prototypes are exported, we would have to ↵vapier2005-07-301-2/+0
| | | | | | | | include the libbb.h header file ... but then we have to worry about including too early/etc... since simply defining the prototype in an internal header file doesnt hurt anyone, lets not worry about the header file crap and just always prototype the inet6 functions git-svn-id: svn://busybox.net/trunk/busybox@10977 69ca8d6d-28ef-0310-b511-8ec308f3f277
* #ifdef reduction infrastructure, based on an argument between Shaun Jackman,landley2005-07-272-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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.) git-svn-id: svn://busybox.net/trunk/busybox@10929 69ca8d6d-28ef-0310-b511-8ec308f3f277
* applying fixes from: pgf2005-07-201-0/+1
| | | | | | | | 0000142: unzip enhancements git-svn-id: svn://busybox.net/trunk/busybox@10887 69ca8d6d-28ef-0310-b511-8ec308f3f277
* applying fix from;pgf2005-07-191-1/+1
| | | | | | | | 0000092: looks like the initializer for .need_suid was missing. git-svn-id: svn://busybox.net/trunk/busybox@10865 69ca8d6d-28ef-0310-b511-8ec308f3f277
* a bit more polishandersen2005-07-181-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10848 69ca8d6d-28ef-0310-b511-8ec308f3f277
* a bit of polish on makedevsandersen2005-07-181-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10847 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup device table based makedevs so it actually worksandersen2005-07-181-6/+30
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10845 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rodney Radford submitted ipcs and ipcrm (system V IPC stuff). They could uselandley2005-06-202-2/+46
| | | | | | | some more work to shrink them down. git-svn-id: svn://busybox.net/trunk/busybox@10556 69ca8d6d-28ef-0310-b511-8ec308f3f277
* import initial fat mke2fsvapier2005-06-112-0/+38
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10526 69ca8d6d-28ef-0310-b511-8ec308f3f277
* import tune2fs supportvapier2005-06-112-0/+19
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10525 69ca8d6d-28ef-0310-b511-8ec308f3f277
* About time to just apply this and kill off the patchesandersen2005-06-091-0/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10485 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add readprofile applet support.lethal2005-05-202-0/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10350 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add automatic umount support to eject command. Patch from Tito,landley2005-05-141-7/+1
| | | | | | | | | | | with tweaks from Mike Frysinger and Rob Landley. Note: this will still fail to umount a path that contains an ' or \ character. Is it worth the extra size to filter for that? git-svn-id: svn://busybox.net/trunk/busybox@10325 69ca8d6d-28ef-0310-b511-8ec308f3f277
* update usage to match actual behaviorvapier2005-05-121-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10314 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Small comm implementatin from Rob Sullivan. Needed to build perl.landley2005-05-112-0/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10298 69ca8d6d-28ef-0310-b511-8ec308f3f277
* import ether-wake applet by haveaniceday Bug 252vapier2005-05-112-1/+15
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10294 69ca8d6d-28ef-0310-b511-8ec308f3f277
* change the hardcoded error constant (0x80000000UL) to a nice flexible define ↵vapier2005-05-111-0/+1
| | | | | | (BB_GETOPT_ERROR) git-svn-id: svn://busybox.net/trunk/busybox@10289 69ca8d6d-28ef-0310-b511-8ec308f3f277
* import eject by Peter Willis / Tito Ragusavapier2005-05-112-0/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10288 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make the exec (-e) an optional feature of netcatvapier2005-05-061-2/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10254 69ca8d6d-28ef-0310-b511-8ec308f3f277
* In bug 247, haveaniceday writes:vapier2005-05-061-0/+1
| | | | | | | | The option "-w secs" adds a timeout for writing. git-svn-id: svn://busybox.net/trunk/busybox@10253 69ca8d6d-28ef-0310-b511-8ec308f3f277
* From: Shaun Jackman <sjackman@gmail.com>landley2005-05-031-0/+2
| | | | | | | | | | | | | To: busybox@mail.codepoet.org Wrap sockaddr_in6 in a ifdef CONFIG_FEATURE_IPV6. Include sys/types.h instead of asm/types.h. Include netinet/if_ether.h instead of linux/if_ether.h The ioctl request argument is an int, not an unsigned short. git-svn-id: svn://busybox.net/trunk/busybox@10242 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A patch from Takeharu KATO to update/fix SE-Linux support.landley2005-05-031-9/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10238 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Revert Tito's patch to zcip. My bad, David Brownell had objected and I missedlandley2005-05-031-4/+3
| | | | | | | | it... git-svn-id: svn://busybox.net/trunk/busybox@10233 69ca8d6d-28ef-0310-b511-8ec308f3f277
* On Tuesday 19 April 2005 21:10, Tito wrote and today added:landley2005-05-011-0/+1
| | | | | | | | | | | | | | | | > Hi, > this is a first attempt of size optimization for zcip taking into account all > the hints given so far on the list. > I've applied just the more obvious busyboxifications so maybe it could be > optimized more. BTW: I've ripped out a lot of debug code and changed c++ // comments to /* */ as both were rather confusing for a newbie like me. ;-) Sorry to the author for that. I know that this makes mantaining the code easier, but I'm simple minded.... git-svn-id: svn://busybox.net/trunk/busybox@10215 69ca8d6d-28ef-0310-b511-8ec308f3f277
* David Brownell submitted a new applet, zcip, based on RFC 3927. This islandley2005-04-302-0/+13
| | | | | | | | | version 0418b. It compiled. git-svn-id: svn://busybox.net/trunk/busybox@10206 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New help text for Matthew S. Wood's "ln" update adding -b and -d.landley2005-04-291-1/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10203 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix whitespace usage, fix un-escaped quotes in a bunch of examples, and ↵vapier2005-04-231-191/+189
| | | | | | standardize a bunch of trivial/full usage statements (no trailing newline in either, and when listing options, dont append a . each time) git-svn-id: svn://busybox.net/trunk/busybox@10166 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix inconsistent whitespacevapier2005-04-231-146/+146
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10165 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove extra whitespacevapier2005-04-231-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10164 69ca8d6d-28ef-0310-b511-8ec308f3f277
* stat implementation based upon coreutilsvapier2005-04-232-0/+60
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10163 69ca8d6d-28ef-0310-b511-8ec308f3f277
* import lsattr and chattr from e2fsprogsvapier2005-04-222-0/+41
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10151 69ca8d6d-28ef-0310-b511-8ec308f3f277
* printenv / sum definesvapier2005-04-212-0/+20
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10149 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix whitespacevapier2005-04-191-23/+23
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10137 69ca8d6d-28ef-0310-b511-8ec308f3f277
* import fakeidentd module started by Thomas Lundquistvapier2005-04-172-0/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10123 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add bb_msg_read_errorandersen2005-04-161-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10116 69ca8d6d-28ef-0310-b511-8ec308f3f277
* In Bug 207, bernhardf writes:vapier2005-04-161-5/+5
| | | | | | | proper escape strings in usage.h git-svn-id: svn://busybox.net/trunk/busybox@10112 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fake out support for POSIX -H and -L options since busybox cp dereferences ↵vapier2005-04-141-0/+1
| | | | | | everything by default git-svn-id: svn://busybox.net/trunk/busybox@10097 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add aliases == and [[ for = and [ to support more bash scriptsvapier2005-04-141-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10096 69ca8d6d-28ef-0310-b511-8ec308f3f277
* newlib fixe from Shaun Jackmanvapier2005-03-041-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9969 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add 'nice' and replace 'renice' with a new implementation.mjn32005-02-132-4/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9868 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Sort rewrite to be SUSv3 compliant. New config option, updated help, andlandley2005-01-242-13/+38
| | | | | | | a couple of infrastructure bits. git-svn-id: svn://busybox.net/trunk/busybox@9767 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cp: make -P a synonym for -dvapier2005-01-071-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9650 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - CONFIG_FEATURE_READLINK_FOLLOW readlink -f patch from Colin Watson ↵solar2004-12-081-2/+10
| | | | | | <cjwatson@debian.org> on busybox mailing list 08/11/04 git-svn-id: svn://busybox.net/trunk/busybox@9542 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito writes,bug12004-09-151-0/+1
| | | | | | | | "This patch fixes all the bugs in id previously spotted by vodz and me. The binary size increased a bit, but now it should work as expected." git-svn-id: svn://busybox.net/trunk/busybox@9256 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Felipe Kellermann, adds missing applet usage options, removes usagebug12004-09-141-31/+51
| | | | | | | for options that are currently not implemented and fixes typos. git-svn-id: svn://busybox.net/trunk/busybox@9249 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito writes:andersen2004-09-021-2/+2
| | | | | | | | | | | | | The second patch contains: 1) a size optimization for adduser.c 2) removes a warning about an unused variable in syslogd.c if CONFIG_FEATURE_REMOTE_LOG is not set 3)cosmetic fixes for addgroup_full_usage and adduser_full_usage Ciao, Tito git-svn-id: svn://busybox.net/trunk/busybox@9195 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito writes:andersen2004-09-021-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi Erik, Hi to all, This is part five of the my_get*id story. I've tweaked a bit this two functions to make them more flexible, but this changes will not affect existing code. Now they work so: 1) my_getpwuid( char *user, uid_t uid, int bufsize) if bufsize is > 0 char *user cannot be set to NULL on success username is written on static allocated buffer on failure uid as string is written to buffer and NULL is returned if bufsize is = 0 char *user can be set to NULL on success username is returned on failure NULL is returned if bufsize is < 0 char *user can be set to NULL on success username is returned on failure an error message is printed and the program exits 2) 1) my_getgrgid( char *group, uid_t uid, int bufsize) if bufsize is > 0 char *group cannot be set to NULL on success groupname is written on static allocated buffer on failure gid as string is written to buffer and NULL is returned if bufsize is = 0 char *group can be set to NULL on success groupname is returned on failure NULL is returned if bufsize is < 0 char *group can be set to nULL on success groupname is returned on failure an error message is printed and the program exits This changes were needed mainly for my new id applet. It is somewhat bigger then the previous but matches the behaviour of GNU id and is capable to handle usernames of whatever length. BTW: at a first look it seems to me that it will integrate well (with just a few changes) with the pending patch in patches/id_groups_alias.patch. The increase in size is balanced by the removal of my_getpwnamegid.c from libbb as this was used only in previous id applet and by size optimizations made possible in whoami.c and in passwd.c. I know that we are in feature freeze but I think that i've tested it enough (at least I hope so.......). git-svn-id: svn://busybox.net/trunk/busybox@9194 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The login applet should always be setuid rootandersen2004-08-261-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9169 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito writes:andersen2004-08-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi, I've spent the half night staring at the devilish my_getpwuid and my_getgrgid functions trying to find out a way to avoid actual and future potential buffer overflow problems without breaking existing code. Finally I've found a not intrusive way to do this that surely doesn't break existing code and fixes a couple of problems too. The attached patch: 1) changes the behaviour of my_getpwuid and my_getgrgid to avoid potetntial buffer overflows 2) fixes all occurences of this function calls in tar.c , id.c , ls.c, whoami.c, logger.c, libbb.h. 3) The behaviour of tar, ls and logger is unchanged. 4) The behavior of ps with somewhat longer usernames messing up output is fixed. 5) The only bigger change was the increasing of size of the buffers in id.c to avoid false negatives (unknown user: xxxxxx) with usernames longer than 8 chars. The value i used ( 32 chars ) was taken from the tar header ( see gname and uname). Maybe this buffers can be reduced a bit ( to 16 or whatever ), this is up to you. 6) The increase of size of the binary is not so dramatic: size busybox text data bss dec hex filename 239568 2300 36816 278684 4409c busybox size busybox_fixed text data bss dec hex filename 239616 2300 36816 278732 440cc busybox 7) The behaviour of whoami changed: actually it prints out an username cut down to the size of the buffer. This could be fixed by increasing the size of the buffer as in id.c or avoid the use of my_getpwuid and use getpwuid directly instead. Maybe this colud be also remain unchanged...... Please apply if you think it is ok to do so. The diff applies on today's cvs tarball (2004-08-25). Thanks in advance, Ciao, Tito git-svn-id: svn://busybox.net/trunk/busybox@9165 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Tito documenting the '-q' optionandersen2004-08-191-2/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9128 69ca8d6d-28ef-0310-b511-8ec308f3f277