<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sinit, branch master</title>
<subtitle>A tiny static init(1) for Linux
</subtitle>
<id>https://git.cyberjes.us/sinit/atom?h=master</id>
<link rel='self' href='https://git.cyberjes.us/sinit/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.cyberjes.us/sinit/'/>
<updated>2020-05-16T15:13:42Z</updated>
<entry>
<title>Const police</title>
<updated>2020-05-16T15:13:42Z</updated>
<author>
<name>Nick Shipp</name>
<email>git@segbrk.com</email>
</author>
<published>2020-05-16T15:13:42Z</published>
<link rel='alternate' type='text/html' href='https://git.cyberjes.us/sinit/commit/?id=39501543deccc7b8adaf4ffd66ffa3aaa8affc5a'/>
<id>urn:sha1:39501543deccc7b8adaf4ffd66ffa3aaa8affc5a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Follow the insanity in poweroff and reboot</title>
<updated>2017-05-01T01:58:21Z</updated>
<author>
<name>Nick Shipp</name>
<email>nick@shipp.ninja</email>
</author>
<published>2017-05-01T01:58:21Z</published>
<link rel='alternate' type='text/html' href='https://git.cyberjes.us/sinit/commit/?id=4300ce841cf0fe3379b538a1a32316f55b148aae'/>
<id>urn:sha1:4300ce841cf0fe3379b538a1a32316f55b148aae</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Switch to dietlibc</title>
<updated>2017-04-12T06:56:22Z</updated>
<author>
<name>Nick Shipp</name>
<email>nick@shipp.ninja</email>
</author>
<published>2017-04-12T06:56:22Z</published>
<link rel='alternate' type='text/html' href='https://git.cyberjes.us/sinit/commit/?id=7cf367f120d6c6a2e7d918f177d823691d061ca7'/>
<id>urn:sha1:7cf367f120d6c6a2e7d918f177d823691d061ca7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>strerror is blot</title>
<updated>2017-04-12T05:21:31Z</updated>
<author>
<name>Nick Shipp</name>
<email>nick@shipp.ninja</email>
</author>
<published>2017-04-12T05:21:31Z</published>
<link rel='alternate' type='text/html' href='https://git.cyberjes.us/sinit/commit/?id=eee115c27274b20dfa9af8706a548fcf070b8473'/>
<id>urn:sha1:eee115c27274b20dfa9af8706a548fcf070b8473</id>
<content type='text'>
</content>
</entry>
<entry>
<title>perror is not die</title>
<updated>2017-02-14T13:32:17Z</updated>
<author>
<name>Nick Shipp</name>
<email>nick@shipp.ninja</email>
</author>
<published>2017-02-14T13:32:17Z</published>
<link rel='alternate' type='text/html' href='https://git.cyberjes.us/sinit/commit/?id=fc4ae1018087ee6271655535458886a5828a739a'/>
<id>urn:sha1:fc4ae1018087ee6271655535458886a5828a739a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bring up lo interface (fix #1)</title>
<updated>2017-02-14T04:19:26Z</updated>
<author>
<name>Nick Shipp</name>
<email>nick@shipp.ninja</email>
</author>
<published>2017-02-14T04:19:26Z</published>
<link rel='alternate' type='text/html' href='https://git.cyberjes.us/sinit/commit/?id=8566c591aad2e89c00e537d6aa9e42acd93274f0'/>
<id>urn:sha1:8566c591aad2e89c00e537d6aa9e42acd93274f0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Depend on dhcpcd starting wpa_supplicant</title>
<updated>2017-01-29T06:55:03Z</updated>
<author>
<name>Nick Shipp</name>
<email>nick@shipp.ninja</email>
</author>
<published>2017-01-29T06:55:03Z</published>
<link rel='alternate' type='text/html' href='https://git.cyberjes.us/sinit/commit/?id=51bdf9b16594c4ad0c5e793583cfa0c12c61583c'/>
<id>urn:sha1:51bdf9b16594c4ad0c5e793583cfa0c12c61583c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use config.h HOMEDIR</title>
<updated>2017-01-18T10:21:41Z</updated>
<author>
<name>Nick Shipp</name>
<email>nick@shipp.ninja</email>
</author>
<published>2017-01-18T10:21:41Z</published>
<link rel='alternate' type='text/html' href='https://git.cyberjes.us/sinit/commit/?id=7ebbd64b16a8cd7d94961b34a394a511c08f0350'/>
<id>urn:sha1:7ebbd64b16a8cd7d94961b34a394a511c08f0350</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Major nshp rewrite</title>
<updated>2017-01-18T10:17:11Z</updated>
<author>
<name>Nick Shipp</name>
<email>nick@shipp.ninja</email>
</author>
<published>2017-01-18T10:17:11Z</published>
<link rel='alternate' type='text/html' href='https://git.cyberjes.us/sinit/commit/?id=a68a69b3fab1f2f35be22940f6151db90a8b8cc4'/>
<id>urn:sha1:a68a69b3fab1f2f35be22940f6151db90a8b8cc4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use switch for fork()</title>
<updated>2016-09-23T08:33:22Z</updated>
<author>
<name>FRIGN</name>
<email>dev@frign.de</email>
</author>
<published>2016-09-23T07:37:59Z</published>
<link rel='alternate' type='text/html' href='https://git.cyberjes.us/sinit/commit/?id=731f65fc82afcd474f4c682f9f0069e5c80c86dd'/>
<id>urn:sha1:731f65fc82afcd474f4c682f9f0069e5c80c86dd</id>
<content type='text'>
This saves us one local variable and 2 lines of code, while improving
readability by using the switch-style we are used to from other suckless
projects.

We are allowed to check against -1, as POSIX clearly mandates for the
RETURN VALUE:

"Upon successful completion, fork() shall return 0 to the child process
and shall return the process ID of the child process to the parent
process. Both processes shall continue to execute from the fork()
function. Otherwise, -1 shall be returned to the parent process, no
child process shall be created, and errno shall be set to indicate the
error."
[http://pubs.opengroup.org/onlinepubs/9699919799/functions/fork.html]

This way, checking against &lt; 0 was overdoing it and it's sufficient to
compare against -1, justifying the switch statement here.
</content>
</entry>
</feed>
