<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/init, branch ansi</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=ansi</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=ansi'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2016-03-30T22:42:57+00:00</updated>
<entry>
<title>Rename FEATURE_INITRD to LINUXRC and make it separate, not an alias to init</title>
<updated>2016-03-30T22:42:57+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-03-30T22:42:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=52977a7d600c7db0f7c4935fd501427fd6b580d0'/>
<id>urn:sha1:52977a7d600c7db0f7c4935fd501427fd6b580d0</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>init: make the command-line rewrite optional</title>
<updated>2016-02-11T13:23:33+00:00</updated>
<author>
<name>Nicolas Carrier</name>
<email>nicolas.carrier@parrot.com</email>
</author>
<published>2016-02-04T11:18:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=29eae728e959a382841bd0a32cc1a8d1bcdc9150'/>
<id>urn:sha1:29eae728e959a382841bd0a32cc1a8d1bcdc9150</id>
<content type='text'>
When launched as PID 1 and after parsing its arguments, init wipes all
all of them except argv[0] and rewrites argv[0] to contain only "init",
so that its command-line appears solely as "init" in tools such as ps.

This patch adds the FEATURE_INIT_MODIFY_CMDLINE which, if set to n, will
make init preserve all its arguments including argv[0], be they parsed or
ignored.
The original command-line used to launch init can then be retrieved in
/proc/1/cmdline on Linux, for example.

Signed-off-by: Nicolas Carrier &lt;nicolas.carrier@parrot.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Fix compiling with musl's utmp stubs</title>
<updated>2016-02-01T00:36:05+00:00</updated>
<author>
<name>Kylie McClain</name>
<email>somasissounds@gmail.com</email>
</author>
<published>2016-02-01T00:36:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=40eea690c7eabbf4d12e1e0c30c31f40125ca996'/>
<id>urn:sha1:40eea690c7eabbf4d12e1e0c30c31f40125ca996</id>
<content type='text'>
This patch fixes compiling busybox with FEATURE_UTMP and _WTMP enabled.
musl, while not really support utmp/wtmp, provides stub functions, as well
as variables such as _PATH_UTMP, so that programs using utmp or wtmp can
still compile fine.

My reasoning for this patch is that on Exherbo, I'm currently trying to get
us to be able to use the same busybox config file for both glibc and musl
systems, using utmp/wtmp on systems that support it, and using the stubs
on musl without needing two different configs.

As of latest musl git, it provides all utmp functions needed; 1.1.12 doesn't,
but I sent a patch to Rich to add the utmp{,x}name functions expected to
exist, which was merged into musl upstream.

Signed-off-by: Kylie McClain &lt;somasissounds@gmail.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>remove global "jmp_buf die_jmp" from !FEATURE_PREFER_APPLETS builds</title>
<updated>2015-10-09T14:42:57+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2015-10-09T14:42:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=550bf5b4a418378cd8f9fbbf5252fe57acdacb5a'/>
<id>urn:sha1:550bf5b4a418378cd8f9fbbf5252fe57acdacb5a</id>
<content type='text'>
function                                             old     new   delta
xfunc_has_died                                         -      21     +21
sleep_much                                             -      12     +12
sleep10                                                -       9      +9
die_func                                               -       4      +4
fflush_stdout_and_exit                                35      36      +1
builtin_type                                         121     119      -2
die_sleep                                              4       -      -4
xfunc_die                                             60      24     -36
hush_main                                           1128    1011    -117
die_jmp                                              156       -    -156
------------------------------------------------------------------------------
(add/remove: 4/2 grow/shrink: 1/3 up/down: 47/-315)          Total: -268 bytes
   text	   data	    bss	    dec	    hex	filename
 939992	    992	  17652	 958636	  ea0ac	busybox_old
 939880	    992	  17496	 958368	  e9fa0	busybox_unstripped

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>*: Switch to POSIX utmpx API</title>
<updated>2015-04-02T21:03:46+00:00</updated>
<author>
<name>Bernhard Reutner-Fischer</name>
<email>rep.dot.nop@gmail.com</email>
</author>
<published>2015-04-02T21:03:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=86a7f18f211af1abda5c855d2674b0fcb53de524'/>
<id>urn:sha1:86a7f18f211af1abda5c855d2674b0fcb53de524</id>
<content type='text'>
UTMP is SVID legacy, UTMPX is mandated by POSIX.

Glibc and uClibc have identical layout of UTMP and UTMPX, both of these
libc treat _PATH_UTMPX as _PATH_UTMP so from a user-perspective nothing
changes except the names of the API entrypoints.

Signed-off-by: Bernhard Reutner-Fischer &lt;rep.dot.nop@gmail.com&gt;
</content>
</entry>
<entry>
<title>libbb: code shrink by factoring out common update_utmp_DEAD_PROCESS</title>
<updated>2015-01-05T14:37:58+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2015-01-05T14:37:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=da9212667c99f2f2121747c4715d067deb7c155b'/>
<id>urn:sha1:da9212667c99f2f2121747c4715d067deb7c155b</id>
<content type='text'>
function                                             old     new   delta
update_utmp_DEAD_PROCESS                               -      17     +17
telnetd_main                                        1685    1674     -11
mark_terminated                                       56      45     -11
handle_sigchld                                        74      63     -11

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>init: do not run shutdown/reexec actions from signal handler</title>
<updated>2014-11-21T19:10:57+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2014-11-21T19:10:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=2bba9ad67a917de2624d427c8c107ce3e2d3d085'/>
<id>urn:sha1:2bba9ad67a917de2624d427c8c107ce3e2d3d085</id>
<content type='text'>
this is racy wrt various libc functions such as syslog()

function                                             old     new   delta
check_delayed_sigs                                   182     352    +170
init_main                                            772     728     -44
restart_handler                                       74       -     -74
halt_reboot_pwoff                                     79       -     -79
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 1/1 up/down: 170/-197)          Total: -27 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>init: do not fail build if SIGPWR is not defined</title>
<updated>2014-01-30T12:22:04+00:00</updated>
<author>
<name>Michael Tokarev</name>
<email>mjt@tls.msk.ru</email>
</author>
<published>2014-01-29T08:40:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=922fdf65273f3047c1f60edee6af555cea1dd499'/>
<id>urn:sha1:922fdf65273f3047c1f60edee6af555cea1dd499</id>
<content type='text'>
Apparently, some *BSD variants (and maybe some other OSes) does not define
SIGPWR signal.  So since commit 760fc6debcba8c, busybox fails to build on
such platforms.  Fix this.

Signed-off-by: Michael Tokarev &lt;mjt@tls.msk.ru&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>init: halt on SIGPWR too</title>
<updated>2013-11-26T12:54:48+00:00</updated>
<author>
<name>Bogdan Purcareata</name>
<email>bogdan.purcareata@freescale.com</email>
</author>
<published>2013-11-26T12:54:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=760fc6debcba8cb5ca8d8e2252fac3757c453e11'/>
<id>urn:sha1:760fc6debcba8cb5ca8d8e2252fac3757c453e11</id>
<content type='text'>
Most init processes implement a handler for SIGPWR that gracefully
stops all child processes when shutting down a machine. Some other
technologies rely on this signal - e.g. Busybox powered LXC
containers.

This patch makes busybox init halt when receiving SIGPWR.

Signed-off-by: Bogdan Purcareata &lt;bogdan.purcareata@freescale.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>libbb: move nuke_str() from passwd into libbb</title>
<updated>2013-11-19T12:36:45+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2013-11-19T12:36:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=8b59b2c13ededb2c82e36193b6d6e969df36531c'/>
<id>urn:sha1:8b59b2c13ededb2c82e36193b6d6e969df36531c</id>
<content type='text'>
function                                             old     new   delta
nuke_str                                               -      15     +15
ask_and_check_password_extended                      215     206      -9
init_main                                            781     771     -10
nuke_str                                              27       -     -27
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/2 up/down: 15/-46)            Total: -31 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
