aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* We did not have a safe_write, which is the analog to safe_read. ConvertEric Andersen2003-10-091-0/+1
| | | | | full_write to use safe_write internally, which is needed to guarantee proper behavior, i.e. when writing to a pipe.
* Patch by Rob Landley, work in progress update, fixes lots of bugs,Glenn L McGrath2003-10-011-1/+2
| | | | introduces a few others (but they are being worked on)
* Add the "install" applet, move get_ug_id to libbb as its used by chown,Glenn L McGrath2003-09-241-0/+1
| | | | chgrp and install.
* Be entirely consistant when using ioctl(0, TIOCGWINSZ, &winsize)Eric Andersen2003-09-151-3/+4
| | | | | to ensure proper fallback behavior on, i.e. serial consoles. -Erik
* more crond+crontab integrating with loginutil libbb functions and deletedGlenn L McGrath2003-09-031-0/+1
| | | | | patch from Thomas Gleixner to init. Viodz last_patch_108
* move all "-/bin/sh" "/bin/sh" and "sh" to libbb/messages.c file as oneGlenn L McGrath2003-09-021-0/+15
| | | | | constant. Vodz last_patch_107
* "staywithu" writes:Eric Andersen2003-08-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | In BusyBox v1.00-pre2, commands like ls, df with -h option report a wrong file size for files larger than 4GBtye!! For example, when I execute 'ls -l', it reports -rw-r--r-- 1 root root 5368709120 Aug 17 2003 large_stream.tp when I execute 'ls -lh', I expect that -rw-r--r-- 1 root root 5.0G Aug 17 2003 large_stream.tp but it reports -rw-r--r-- 1 root root 1.0G Aug 17 2003 large_stream.tp I fixed this bug that... Line 31 in libbb/human_readable.c and line 275 include/libbb.h const char *make_human_readable_str(unsigned long size => const char *make_human_readable_str(unsigned long long size It's OK!
* Remove code that too agressively disabled inlinesEric Andersen2003-08-011-5/+0
|
* Bruno Randolf writes:Eric Andersen2003-07-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | this patch fixes run_parts when it's called by ifupdown. 1) argv has to be a NULL terminated char* array, not just a string. 2) run_parts now explicitly sets the environment. this environment is populated from the /etc/network/interfaces config file and is needed by the scripts in /etc/network/if-pre-up.d/. when run-parts is called from the command line the environment is taken from the current process. Vladimir Oleynik then wrote: You can simplify this if use: + bb_xasprintf(&buf[0], "/etc/network/if-%s.d", opt); + buf[1] = NULL; + + run_parts(&buf, 2, environ); + free(buf[0]); --w vodz
* last_patch95 from vodz:Eric Andersen2003-07-281-0/+2
| | | | | | | | | | | | | | | | | Hi. Last patch have new libbb function vfork_rexec() for can use daemon() to uClinux system. This patched daemons: syslog, klogd, inetd, crond. This not tested! I havn`t this systems. Also. Previous patch for feature request MD5 crypt password for httpd don`t sended to this mailist on 07/15/03 (mailist have Pytom module problem?). The previous patch included, and have testing. --w vodz
* Remove remaining libc5 support codeEric Andersen2003-07-221-12/+0
|
* Patch from Paul Mundt:Eric Andersen2003-07-221-6/+21
| | | | | | The current SC_x references automatically assume that everyone uses ttyS/tts as their naming scheme for their serial ports. This isn't the case for quite a few architectures, including sh, sh64, h8, arm, etc.
* This declaration no longer needs to hide when using dmallocEric Andersen2003-07-071-1/+1
|
* Patch from Russell Coker:Eric Andersen2003-07-031-2/+13
| | | | | I've attached my latest SE Linux patch for busybox against the latest CVS version of busybox.
* Geir Thomassen wrote, regarding networking/httpd.c line 1358Eric Andersen2003-06-261-1/+2
| | | | | | | | | | | | | | Hello, I think the test for an unconfigured httpd is wrong in the CVS (busybox-unstable-20030620.tar.bz2) flg_deny_all is default 0 vodz then wrote: Oops. You are right. Also, this mistake haved from two place. Last patch rewroted to my new get_ularg() function for overcompensate size from this error found ;-)
* Add prototype update missing from last_patch89. Fix screwyEric Andersen2003-06-201-1/+1
| | | | formatting in cut.
* last_patch89 from vodz:Eric Andersen2003-06-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manuel, I rewrite bb_getopt_ulflags() function for more universal usage. My version support now: - options with arguments (optional arg as GNU extension also) - complementaly and/or incomplementaly and/or incongruously and/or list options - long_opt (all applets may have long option, add supporting is trivial) This realisation full compatibile from your version. Code size grow 480 bytes, but only coreutils/* over compensate this size after using new function. Last patch reduced over 800 bytes and not full applied to all. "mkdir" and "mv" applets have long_opt now for demonstrate trivial addition support long_opt with usage new bb_getopt_ulflags(). Complementaly and/or incomplementaly and/or incongruously and/or list options logic is not trivial, but new "cut" and "grep" applets using this logic for examples with full demostrating. New "grep" applet reduced over 300 bytes. Mark, Also. I removed bug from "grep" applet. $ echo a b | busybox grep -e a b a b a b But right is printing one only. --w vodz
* Make all syscall declarations use the syscall() functionEric Andersen2003-05-261-0/+13
|
* Vodz, last_patch_86Glenn L McGrath2003-05-261-0/+1
|
* Major coreutils update.Manuel Novoa III2003-03-191-83/+133
|
* Define bb_xgetlarg as a standard interface for extractingEric Andersen2003-03-071-0/+1
| | | | | numbers from getopt which includes careful error checking. -Erik
* Patch from mathuria, compatability with solarisGlenn L McGrath2003-02-081-0/+3
|
* run telnet from inetd, present login prompt if login is configured,Glenn L McGrath2003-01-211-1/+3
| | | | patch from Bastian Blank
* New test mode that allows run_parts to fail silently if the directoryGlenn L McGrath2003-01-201-4/+4
| | | | is not found. Patch from Bastian Blank
* Correct some init issues, update email address, last_patch78 by VladimirGlenn L McGrath2003-01-131-1/+1
| | | | N. Oleynik
* rmmod -a removed modules recursivelyTim Riker2002-12-141-0/+2
|
* Merge copyfd and copy_file_chunkGlenn L McGrath2002-12-131-1/+1
|
* Move add_to_list from libunarchive to libbb so it can be of more general use ↵Glenn L McGrath2002-12-081-0/+6
| | | | (eg ifupdown). Changed the name to llist_add_to as i plan on adding more llist_ functions as needed (e.g. llist_free).
* Move compare_string_array to libbbGlenn L McGrath2002-12-021-0/+1
|
* Move awk from textutils to editors. Cleanup run-parts, saves 200 bytes, ↵Glenn L McGrath2002-11-111-0/+1
| | | | moves the guts of run_parts to libbb to be used by ifupdown.
* Abstract read and seek in unarchiving code, convert bunzip to file ↵Glenn L McGrath2002-11-031-1/+0
| | | | descriptors, support tar -j
* Patch last_pach62 from vodz. This patch moves all the /proc parsingEric Andersen2002-10-221-1/+20
| | | | code into libbb so it can be shared by ps, top, etc, saving over 1.5k.
* Vodz' last_patch57:Eric Andersen2002-09-301-2/+2
| | | | | | | | | | | | | | | Hi, Erik. my_getpw(uid/gid) and applets used it have problem: if username for uid not found, applets can`t detect it (but code pessent). Also "%8ld " format is bad: spaces not required (applets have self format or spec format (tar applet) and overflow for "id" applet...) This problem also pressent in stable version. Patch for unstable in attach. --w vodz
* Fix compress support and prevent a segfaultGlenn L McGrath2002-09-271-0/+1
|
* Reverse some minor changes that got caught up in my big unarchive patchGlenn L McGrath2002-09-251-4/+4
|
* New common unarchive code.Glenn L McGrath2002-09-251-10/+11
|
* Apply vodz' last_patch52Eric Andersen2002-09-161-1/+1
|
* define inline if needed for ANSI C compatabilityGlenn L McGrath2002-08-221-0/+4
|
* Remove definition of is_octal and is_decimal, they arent usedGlenn L McGrath2002-08-221-3/+0
|
* Applied vodz' patches #49 and #50 (with a small correction in runshell.c)Robert Griebl2002-07-191-0/+2
| | | | | | | | | #49: I found one memory overflow and memory leak in "ln" applet. Last patch reduced also 54 bytes. ;) #50: I found bug in loginutils/Makefile.in. New patch have also new function to libbb and aplied this to applets and other cosmetic changes.
* Scrub pwd.h and grp.h handling so we don't have to play anyEric Andersen2002-07-031-2/+2
| | | | | silly games. -Erik
* This patch from Bart Visscher <magick@linux-fan.com> addsEric Andersen2002-07-031-0/+3
| | | | | | | | | | | | | | | IPV6 support to busybox. This patch does the following: * Add IPv6 support to libbb * Enable IPv6 interface address display * Add IPv6 config option * Adds ping6, an adaptation of the ping applet for IPv6 * Adds support routines for ping6: - xgethostbyname2 - create_icmp6_socket * Adds ifconfig support for IPv6 * Add support IPv6 to netstat * Add IPv6 support to route Thanks Bart!
* Port over the last of the tinylogin appletsEric Andersen2002-06-231-0/+30
| | | | -Erik
* Implement two types of suid/sgid support for BusyBox:Robert Griebl2002-06-041-0/+2
| | | | | | 1) tinylogin like with compile time selection and a chown root.root 2) Runtime configurable via /etc/busybox.conf (docu is in the works) [Parts of this patch may overlap with my other two patches]
* Stupid gcc always includes its own builtin strlen()...Eric Andersen2002-04-131-0/+4
|
* Fix devfs loop device supportEric Andersen2002-03-201-0/+2
|
* unzip applet by Laurence AndersonGlenn L McGrath2002-01-021-0/+1
| | | | ----------------------------------------------------------------------
* Make cp and mv optionally preserve hard links.Matt Kraai2001-12-171-0/+4
|
* If find_pid_by_name() had an error, it was returning -1, but storingEric Andersen2001-12-061-1/+1
| | | | | | | | that into a pid_t, which is unsigned on a number archs. Furthermore, find_pid_by_name() would _never_ return an error if the intended proces was "init", but instead would return 1, meaning we would fail to work on 2.4.x kernels running an initrd... -Erik
* libunarchive, and recovery from my previous commitGlenn L McGrath2001-10-251-77/+0
|