minix/include
Cristiano Giuffrida 1f5841c8ed Basic System Event Framework (SEF) with ping and live update.
SYSLIB CHANGES:
- SEF must be used by every system process and is thereby part of the system
library.
- The framework provides a receive() interface (sef_receive) for system
processes to automatically catch known system even messages and process them.
- SEF provides a default behavior for each type of system event, but allows
system processes to register callbacks to override the default behavior.
- Custom (local to the process) or predefined (provided by SEF) callback
implementations can be registered to SEF.
- SEF currently includes support for 2 types of system events:
  1. SEF Ping. The event occurs every time RS sends a ping to figure out
  whether a system process is still alive. The default callback implementation
  provided by SEF is to notify RS back to let it know the process is alive
  and kicking.
  2. SEF Live update. The event occurs every time RS sends a prepare to update
  message to let a system process know an update is available and to prepare
  for it. The live update support is very basic for now. SEF only deals with
  verifying if the prepare state can be supported by the process, dumping the
  state for debugging purposes, and providing an event-driven programming
  model to the process to react to state changes check-in when ready to update.
- SEF should be extended in the future to integrate support for more types of
system events. Ideally, all the cross-cutting concerns should be integrated into
SEF to avoid duplicating code and ease extensibility. Examples include:
  * PM notify messages primarily used at shutdown.
  * SYSTEM notify messages primarily used for signals.
  * CLOCK notify messages used for system alarms.
  * Debug messages. IS could still be in charge of fkey handling but would
  forward the debug message to the target process (e.g. PM, if the user
  requested debug information about PM). SEF would then catch the message and
  do nothing unless the process has registered an appropriate callback to
  deal with the event. This simplifies the programming model to print debug
  information, avoids duplicating code, and reduces the effort to print
  debug information.

SYSTEM PROCESSES CHANGES:
- Every system process registers SEF callbacks it needs to override the default
system behavior and calls sef_startup() right after being started.
- sef_startup() does almost nothing now, but will be extended in the future to
support callbacks of its own to let RS control and synchronize with every
system process at initialization time.
- Every system process calls sef_receive() now rather than receive() directly,
to let SEF handle predefined system events.

RS CHANGES:
- RS supports a basic single-component live update protocol now, as follows:
  * When an update command is issued (via "service update *"), RS notifies the
  target system process to prepare for a specific update state.
  * If the process doesn't respond back in time, the update is aborted.
  * When the process responds back, RS kills it and marks it for refreshing.
  * The process is then automatically restarted as for a buggy process and can
  start running again.
  * Live update is currently prototyped as a controlled failure.
2009-12-21 14:12:21 +00:00
..
arpa Added prototype for inet_aton. 2006-06-22 11:45:59 +00:00
ibm Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
minix Basic System Event Framework (SEF) with ping and live update. 2009-12-21 14:12:21 +00:00
net Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
netinet - VM_KERN_NOPAGEZERO feature is gone 2009-09-21 14:23:10 +00:00
sys - Introduce support for sticky bit. 2009-12-20 20:27:14 +00:00
a.out.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
alloca.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
ansi.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
assert.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
configfile.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
ctype.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
curses.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
dirent.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
env.h . made memory parsing function into a library call 2007-02-16 15:54:28 +00:00
errno.h Portability: POSIXize some of inet's error codes 2009-11-28 13:18:33 +00:00
fcntl.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
float.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
fts.h Some misc portability-enhancing definitions. 2006-01-20 13:42:29 +00:00
glob.h A glob() implementation. 2008-04-08 13:14:33 +00:00
grp.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
ifaddrs.h . getifaddrs() and data 2006-04-03 15:06:31 +00:00
inttypes.h Improved compatibility with other Unix systems. 2005-06-10 15:12:03 +00:00
lib.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
libgen.h Added basename(3) 2005-08-25 11:33:43 +00:00
libutil.h Header file for new -lutil (naming from freebsd) 2005-07-19 16:01:20 +00:00
limits.h - Introduce support for sticky bit. 2009-12-20 20:27:14 +00:00
locale.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
Makefile RS_LOOKUP feature for libc functions that want to access servers. 2009-09-21 15:25:15 +00:00
math.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
mathconst.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
midiparser.h support for OSS. 2009-10-01 16:36:14 +00:00
netdb.h Improved compatibility with other Unix systems. 2005-06-10 15:12:03 +00:00
pwd.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
regex.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
regexp.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
setjmp.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
sgtty.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
signal.h FPU context switching support by Evgeniy Ivanov. 2009-12-02 13:01:48 +00:00
stdarg.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
stddef.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
stdint.h Specify types for integer MAX constants 2009-12-02 15:35:09 +00:00
stdio.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
stdlib.h Implementation of strto(u)ll, documentation and tests for strto(u)l(l) 2009-12-09 19:01:38 +00:00
string.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
strings.h Fix compiler warnings for pax 2006-03-24 14:03:25 +00:00
sysexits.h . getifaddrs() and data 2006-04-03 15:06:31 +00:00
syslog.h - VM_KERN_NOPAGEZERO feature is gone 2009-09-21 14:23:10 +00:00
tar.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
termcap.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
termios.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
time.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
timers.h Changes to the include files in order to make cross-compilation possible. 2009-11-06 08:46:22 +00:00
tools.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
ttyent.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
unistd.h - Introduce support for sticky bit. 2009-12-20 20:27:14 +00:00
utime.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
utmp.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00