aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
AgeCommit message (Collapse)Author
2007-04-10make a few struct bb_applet members conditionalDenis Vlasenko
rename sllep_and_die -> xfunc_die make fflush_stdout_and_exit NOFORK-safe fix some buglets found by randomconfig
2007-04-09make xfunctions optionally longjump instead of exit.Denis Vlasenko
use it for making NOFORK more practical. touch: make it a NOFORK applet
2007-04-09wait4pid: if passed with pid < 0, do not set errno - it is already set by exec!Denis Vlasenko
2007-04-05libbb: add xunlink()Denis Vlasenko
patch: do not try to delete same file twice
2007-04-01tcpsvd: new appletDenis Vlasenko
It's a GPL-ed 'clone' of Dan Bernstein's tcpserver. Author: Gerrit Pape <pape@smarden.org> http://smarden.sunsite.dk/ipsvd/ size tcpsvd.o text data bss dec hex filename 2571 4 16 2591 a1f tcpsvd.o
2007-03-28ps: work around libc bug: printf("%.*s\n", MAX_INT, buffer)Denis Vlasenko
2007-03-27make pidfile writing configurable.Denis Vlasenko
[ui]toa_to_buf: change API. No users yet.
2007-03-26zcip: make it work on NOMMU (+ improve NOMMU support machinery)Denis Vlasenko
fsck: fix bad English in a comment
2007-03-26libbb: rework NOMMU helper API so that it makes more senseDenis Vlasenko
and easier to use. Doesn't compile - need two more commits.
2007-03-25add NOMMU fixme's; move move_fd from runit_lib to libbb; nuke fd_copyDenis Vlasenko
2007-03-24applets.c, xfunc.c: style cleanupDenis Vlasenko
2007-03-07clean up accumulated whitespace damageDenis Vlasenko
2007-02-06new applets: selinux utils by KaiGai Kohei <kaigai@kaigai.gr.jp>Denis Vlasenko
2007-02-03Add BB_EXEC[LV]P() which encapsulate FEATURE_EXEC_PREFER_APPLETSDenis Vlasenko
(patch from Gabriel L. Somlo <somlo@cmu.edu>)
2007-01-29preparatory patch for -Wwrite-strings #2Denis Vlasenko
2007-01-27use bb_sanitize_stdio() where appropriateDenis Vlasenko
2007-01-27fix warning in find.cDenis Vlasenko
2007-01-26fix bin2hex bug. lowercase = uppercase | 0x20, not | 0x10!Denis Vlasenko
2007-01-24accumulated post-1.4.0 fixesDenis Vlasenko
2007-01-21Introduce FEATURE_EXEC_PREFER_APPLETS = "re-execute our ownDenis Vlasenko
executable if we asked to exec someting with argv[0] == known_applet" Use it in init. Also respect PATH in init, remove explicit "/sbin" etc from exec. Patch by Gabriel L. Somlo <somlo@cmu.edu>
2007-01-20- get_terminal_width_height does not and should never write to fd. Cosmetic ↵Bernhard Reutner-Fischer
Precaution
2007-01-19openvt,getty,vfork_daemon_rexec,mount: tighten up fd cleanup codeDenis Vlasenko
(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();
2007-01-14Rename bb_sanitize_stdio -> bb_sanitize_server_stdioDenis Vlasenko
(name is still bad - it doesn't hint that function may do daemonization trick for you if asked to). Small fixes to fakeidentd.
2007-01-14By popular request reinstate fakeidentd's standalone mode.Denis Vlasenko
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).
2007-01-12random small size optimizationsDenis Vlasenko
2006-12-24missing piece of prev commit: ndelay_offDenis Vlasenko
2006-12-23find: fix spurious -exec error messagesDenis Vlasenko
(bug reported by Bernhard Fischer <rep.nop@aon.at>)
2006-12-18xfuncs.c: dietlibc actually HAS fdprintf!Denis Vlasenko
platform.h: define strchrnul for dietlibc ash: stop using few non-standard functions
2006-12-18nc: add missing castDenis Vlasenko
xfuncs: add dprintf for dietlibc
2006-11-29cut 0.5k off mkfs.minixDenis Vlasenko
assorted strtoul fixes (that's what brought me into minix)...
2006-11-26small fixes:Denis Vlasenko
fix xstrdup to not grossly overallocate memory use xopen instean of xopen3 in several places etc.
2006-11-25tee: fix bug: argv[-1] is a no-no!Denis Vlasenko
bb_full_fd_action: optimize die_if_ferror: "<applet>: filename" isn't a good err msg, add "..I/O error"
2006-11-24tar: fix and sanitize handling of long filenames/linknamesDenis Vlasenko
(GNU extensions 'K' and 'L'). We correctly handle them when untarring now, but unfortunately we still don't use them when tarring! That stupid 100 char limit is still there! The biggest problem is that we don't support 'pax' tar format. Linux kernel tarballs are in this format... shame
2006-11-22telnetd: we were having telnetd with is ONLY inetd or ONLY standalone.Denis Vlasenko
What if I need to have both?? This patch introduces CONFIG_FEATURE_TELNETD_STANDALONE: y - both, n - only inetd.
2006-11-18rodata cleanup. "unable to" == "cannot". -300 bytesDenis Vlasenko
2006-11-05smart_ulltoa5: make available in libbbDenis Vlasenko
2006-10-27get_terminal_width_height: do not pass insanely large valuesDenis Vlasenko
2006-10-26rename functions to more understandable namesDenis Vlasenko
2006-10-26remove bb_printf and the likeDenis Vlasenko
2006-10-20message string changes, mostly for consistency, also -32 bytes in .rodataDenis Vlasenko
2006-10-14add open_read_close() and similar stuffDenis Vlasenko
2006-10-12xread/write can use full_read/write (smaller code)Denis Vlasenko
2006-10-12small style fixesDenis Vlasenko
2006-10-11nmeter: new applet. ~4kDenis Vlasenko
Fix build proble on x86_64
2006-10-05build system overhaulDenis Vlasenko
2006-10-03rename bb_default_error_retval -> xfunc_error_retvalDenis Vlasenko
2006-10-03fdformat: remove redundant checkDenis Vlasenko
2006-10-03runit/chpst: "change process state" utilityDenis Vlasenko
It's "nice" on steroids - can set uid/gid, mem/cpu limits etc. +3.5k
2006-09-20Teach get_terminal_width_height to fall back to $LINES and $COLUMNS whenRob Landley
used via things like a serial console.
2006-09-17whitespace cleanupDenis Vlasenko