import cinit from unix.schottelius.org

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-09-16 12:53:45 +02:00
commit 423ba10303
13396 changed files with 269468 additions and 0 deletions

View file

@ -0,0 +1,25 @@
--------------------------------------------------------------------------------
Porting cinit to other operating systems,
Nico Schottelius 2005-06-02
--------------------------------------------------------------------------------
cinit is currently Linux-specific.
It currently does not compile / work on other Unices, because
we use O_ASYNC flag of open(2) which is _not_ a standard.
This way we can act very elegant on incoming connections by our
forks. If somebody finds a at least as elegant solution
to act on incoming data which is more portable, I would
be happy to recieve a diff -u.
Additionally we currently do mount a temporarily filesystem
on /etc/cinit/tmp, which allows us to create a socket, where
nothing is mounted r/w yet.
If a Unix has some kind of tmpfs, this can easily be changed
to the appropriate value in conf/*tmp*.
The O_ASYNC thing will become a compile option to cinit
(via conf/socket_function for instance), so that using standard
mechanism will be possible.