aboutsummaryrefslogtreecommitdiff
path: root/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* openvt,getty,vfork_daemon_rexec,mount: tighten up fd cleanup codevda2007-01-191-1/+3
| | | | | | | | | | | | (will close all fd's > 2 on daemonization now) getty: fix "getty -" support, and also do not try to chown/chmod "-" telnetd: fix "lost ctty" bug Yet another attempt on saner function names: bb_sanitize_server_stdio(0/1) -> bb_sanitize_stdio() + bb_daemonize(); git-svn-id: svn://busybox.net/trunk/busybox@17390 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - move the smallint that is platform dependant to it's proper placealdot2007-01-182-11/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17363 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use char for smallint on CRIS as well.pkj2007-01-181-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17362 69ca8d6d-28ef-0310-b511-8ec308f3f277
* smallint can be a char for amd64 toovda2007-01-181-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17358 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rename bb_sanitize_stdio -> bb_sanitize_server_stdiovda2007-01-141-1/+1
| | | | | | | | | (name is still bad - it doesn't hint that function may do daemonization trick for you if asked to). Small fixes to fakeidentd. git-svn-id: svn://busybox.net/trunk/busybox@17302 69ca8d6d-28ef-0310-b511-8ec308f3f277
* By popular request reinstate fakeidentd's standalone mode.vda2007-01-142-14/+10
| | | | | | | | | | | | | | Since this is also needed for other applets like telnetd, introduce generic driver for such things. It even supports inetd-wait ('linger') mode, when inetd hands out listen socket to child and waits to it to die, instead of handing out accepted socket and continuing listening itself (nowait mode). Code growth ~200 bytes. NB: our inetd doesn't support wait mode yet (or mabe it is buggy). git-svn-id: svn://busybox.net/trunk/busybox@17275 69ca8d6d-28ef-0310-b511-8ec308f3f277
* whitespace fixes (leading spaces to tab)vda2007-01-131-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17265 69ca8d6d-28ef-0310-b511-8ec308f3f277
* random small size optimizationsvda2007-01-121-1/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17263 69ca8d6d-28ef-0310-b511-8ec308f3f277
* next part of ipv6-ization. mostly netcat.vda2007-01-122-5/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17259 69ca8d6d-28ef-0310-b511-8ec308f3f277
* next part of ipv6-ization is here: wget & httpdvda2007-01-121-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17257 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fakeinetd: attempted ipv6-ization (and it's done)vda2007-01-111-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | but entire applet can be orders of magnitude smaller if written as an inetd service. So did that (#ifdef'ed out entire old version). inetd version is less than 10% of old one! function old new delta packed_usage 22083 22105 +22 nobodystr 4 - -4 bind_ip_address 4 - -4 ident_substr 20 - -20 chmatch 22 - -22 movefd 25 - -25 skipchars 49 - -49 handlexitsigs 51 - -51 replyError 70 - -70 .rodata 158120 158024 -96 deleteConn 102 - -102 G 524 388 -136 conns 560 - -560 fakeidentd_main 1457 143 -1314 ------------------------------------------------------------------------------ (add/remove: 0/10 grow/shrink: 1/3 up/down: 22/-2453) Total: -2431 bytes git-svn-id: svn://busybox.net/trunk/busybox@17256 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Trailing whitespace removal over entire treevda2007-01-111-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17252 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ipv6-ization efforts continue. Few bugs are found,vda2007-01-111-11/+20
| | | | | | | unknown number likely introduced... git-svn-id: svn://busybox.net/trunk/busybox@17250 69ca8d6d-28ef-0310-b511-8ec308f3f277
* a bit more IPv6-ization workvda2007-01-101-3/+20
| | | | | | | syslogd: converted to use it (in -R host:port) git-svn-id: svn://busybox.net/trunk/busybox@17229 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Improve generic ipv4+ipv6 support in libbb.vda2007-01-101-11/+10
| | | | | | | | | | | | Convert telnet to it. Now this works: telnetd -b [::1]:1234 - bind to IPv6 non-standard port telnet [::1]:1234 - connect to IPv6 non-standard port telnet ::1 1234 - same This does not require ANY ipv6-specific code in applets (no struct sockaddr_in6. In fact, no sockaddr_in, too). git-svn-id: svn://busybox.net/trunk/busybox@17221 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix typo in usage text by shortening itvda2007-01-091-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17215 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - a few minor tweaksaldot2007-01-071-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17180 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add arp applet - thanks tovda2007-01-073-0/+58
| | | | | | | "Eric Spakman" <E.Spakman@inter.nl.net> git-svn-id: svn://busybox.net/trunk/busybox@17177 69ca8d6d-28ef-0310-b511-8ec308f3f277
* do not expose internal state of [g]zip unpacker.vda2007-01-051-8/+7
| | | | | | | fix memory leak in inflate_gunzip. git-svn-id: svn://busybox.net/trunk/busybox@17167 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove duplicate includesaldot2007-01-041-5/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17160 69ca8d6d-28ef-0310-b511-8ec308f3f277
* syslogd: start using bb_common_bufsiz1 instead of stack/mallocvda2007-01-041-9/+9
| | | | | | | | logger: optimize, also use bb_common_bufsiz1 (~40 bytes) tested to eat arbitrarily-sized input at high speed - ok git-svn-id: svn://busybox.net/trunk/busybox@17159 69ca8d6d-28ef-0310-b511-8ec308f3f277
* new libbb func: xmalloc_realpath (+ use it where makes sense)vda2007-01-042-1/+3
| | | | | | | | syslogd, logread: add debugging code (disabled) syslogs: drastically smaller bss; fix "-C n" behaviour git-svn-id: svn://busybox.net/trunk/busybox@17156 69ca8d6d-28ef-0310-b511-8ec308f3f277
* convert calloc to xzallocvda2007-01-031-0/+1
| | | | | | | fix sleep-on-die option git-svn-id: svn://busybox.net/trunk/busybox@17140 69ca8d6d-28ef-0310-b511-8ec308f3f277
* extern variable declaration in a .c file is heresy - fixing itvda2007-01-031-0/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17139 69ca8d6d-28ef-0310-b511-8ec308f3f277
* introduce small[u]intvda2007-01-031-0/+12
| | | | | | | fsck_minix: use it for flag variables. 140 bytes saved git-svn-id: svn://busybox.net/trunk/busybox@17133 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove commented out #includes etcvda2006-12-311-7/+0
| | | | | | | move get_hz to the only caller git-svn-id: svn://busybox.net/trunk/busybox@17118 69ca8d6d-28ef-0310-b511-8ec308f3f277
* stop using __u32 etc. uint32_t is there for a reasonvda2006-12-311-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17117 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fixdep.c: avoit doing memcmp in most casesvda2006-12-303-57/+114
| | | | | | | | uidgid_get.c: add forgotten copyright notice pwd/grp/shadow: avoid collisions with libc names git-svn-id: svn://busybox.net/trunk/busybox@17112 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix for uclibc-without-shadow.h compilationvda2006-12-301-8/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17104 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix build without shadow supportvda2006-12-282-50/+39
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17100 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_xget[pw/gr]nam were horribly misnamed - fixed.vda2006-12-281-8/+10
| | | | | | | | | | uidgid_get -> get_uidgid, add additional param (numeric_ok). Make chown use it. chown: fix "chown user: ...." install: fix incorrect use of bb_xget[pw/gr]nam git-svn-id: svn://busybox.net/trunk/busybox@17095 69ca8d6d-28ef-0310-b511-8ec308f3f277
* merge post-1.3.0 fixesvda2006-12-261-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17084 69ca8d6d-28ef-0310-b511-8ec308f3f277
* properly export externs thru *.h filesvda2006-12-261-2/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17083 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style fixesvda2006-12-261-1/+1
| | | | | | | last xcalloc replaced by xzalloc git-svn-id: svn://busybox.net/trunk/busybox@17081 69ca8d6d-28ef-0310-b511-8ec308f3f277
* chattr: bugfixes and size reductionvda2006-12-261-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17080 69ca8d6d-28ef-0310-b511-8ec308f3f277
* leftover of e2fsck surgeryvda2006-12-263-13/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17078 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix irregular capitalization in usage textsvda2006-12-251-536/+535
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17075 69ca8d6d-28ef-0310-b511-8ec308f3f277
* trim help texts a bit morevda2006-12-251-16/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17074 69ca8d6d-28ef-0310-b511-8ec308f3f277
* more usage message cleanupsvda2006-12-241-164/+152
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17072 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup usage messages (-200 bytes).vda2006-12-243-370/+379
| | | | | | | | Remove busybox_main from applet table since it is called via separate check git-svn-id: svn://busybox.net/trunk/busybox@17071 69ca8d6d-28ef-0310-b511-8ec308f3f277
* random tiny size savingsvda2006-12-241-2/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17070 69ca8d6d-28ef-0310-b511-8ec308f3f277
* missing piece of prev commit: ndelay_offvda2006-12-241-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17068 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar et al: die if bb_copyfd_size copies less than asked for.vda2006-12-222-2/+7
| | | | | | | (we have bb_copyfd_exact_size now for that kind of usage) git-svn-id: svn://busybox.net/trunk/busybox@17038 69ca8d6d-28ef-0310-b511-8ec308f3f277
* less: stop dying on bad regexps, quietly pipe data w/ovda2006-12-211-1/+2
| | | | | | | | user interaction if stdout is not a tty. size optimizations git-svn-id: svn://busybox.net/trunk/busybox@17028 69ca8d6d-28ef-0310-b511-8ec308f3f277
* introduce LONE_CHAR (optimized strcmp with one-char string)vda2006-12-211-1/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17027 69ca8d6d-28ef-0310-b511-8ec308f3f277
* xfuncs.c: dietlibc actually HAS fdprintf!vda2006-12-181-2/+11
| | | | | | | | platform.h: define strchrnul for dietlibc ash: stop using few non-standard functions git-svn-id: svn://busybox.net/trunk/busybox@16998 69ca8d6d-28ef-0310-b511-8ec308f3f277
* nc: add missing castvda2006-12-181-0/+3
| | | | | | | xfuncs: add dprintf for dietlibc git-svn-id: svn://busybox.net/trunk/busybox@16997 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A bunch of defined(__GLIBC__) added. static-linking warning expandedvda2006-12-181-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16996 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix/shorten some usage stringsvda2006-12-171-349/+412
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16981 69ca8d6d-28ef-0310-b511-8ec308f3f277
* inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]vda2006-12-161-0/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16977 69ca8d6d-28ef-0310-b511-8ec308f3f277