More Useful Utilities

--MUTS is a software base for the Horus system that provides many utilities. This page contains some left-over utilities that were not categorized elsewhere.

SOURCES

src/muts/sys.c

INCLUDE

#include "muts.h"

INTERFACE

void mt_init(void);
This is the first routine that everybody should invoke when they want to run a --MUTS (or, in particular, a Horus) application.
void sys_exit(void);
This is the normal Horus exit function.
void sys_panic(char *fmt, ...);
Print a message a la printf and exit. May print all kinds of debugging info.
void sys_on_exit(
	void (*proc)(void *),
	void *env
);
This causes "proc(env)" to be called on exit.
error_t mt_hash(
	eid_t *eid,
	int n,
	int *result
);
Returns a hash value between 0 and n - 1 for the given eid.