chiark / gitweb /
d7211b646a595be7b75e014974f624570715626f
[userv.git] / INSTALL
1 INSTALLATION INSTRUCTIONS:
2
3    $ ./configure
4    $ make
5    # make install
6
7 This will not install the documentation, which is shipped as
8 pre-prepared HTML and PostScript as well as debiandoc-sgml source.
9 Put that (spec.html/ and spec.ps) where you will.
10
11 SYSTEM REQUIREMENTS:
12
13 Programs:
14
15 * md5sum (Colin Plumb's or the GNU version)
16 * GNU m4
17 * GNU make
18 * GNU flex
19 * GCC is preferred but other compilers ought to work (though
20   no portability testing has yet been done).  ANSI C only.
21   ints must be at least 32 bits.
22 * A sensible /bin/cat which notices write errors (ie not
23   SunOS4, BSD 4.3, or many others.)
24
25 C Library:
26
27 * [v]snprintf - a real version, not just [v]sprintf with a wrapper
28   that throws the argument away.
29 * strsignal;
30 * fnmatch;
31 * BSD syslog(3);
32 * strtoul;
33 * memcpy, memset, memcpy;
34 * realloc(0,size) must work and be equivalent to malloc(size).
35 * <stdarg.h> (not varargs) and v[sf][n]printf.
36
37 System interfaces:
38
39 * setreuid(2), getreuid(2), getgroups(2), initgroups(3), with
40   the ability for root to (a) swap euid and ruid and
41   (b) give away all privilege by calling setreuid(ruid,ruid)
42   twice.
43 * wait3 and waitpid, <wait.h> with WNOHANG, WIFSIGNALED,
44   WIFEXITEED, WTERMSIG, WEXITSTATUS and WCOREDUMP.
45 * gid_t, uid_t, pid_t.
46 * Unix-domain (AF_UNIX) stream sockets, for use with:
47   * BSD sockets - socket(), bind(), listen(), accept(), connect();
48   * socketpair(2);
49 * lstat(2) (though stat(2) will be safe on systems without symlinks).
50 * Pipes:
51   * creating using pipe(2) and mkfifo(2);
52   * proper interaction between open(O_RDWR), open(O_RDONLY),
53     open(O_WRONLY), close(), dup2, EPIPE, SIGPIPE, &c.;
54 * POSIX signal handling - sigaction(2), sigprocmask(2), sigsuspend(2);
55
56 To format the documentation:
57
58 * debiandoc-sgml, and hence sp (aka nsgmls) and sgmlspm.
59 * For PostScript output, Lout and possibly psutils.
60
61 For debugging version (./configure --enable-debug):
62
63 * initgroups(3) must use setgroups(2) and dynamic
64   linking must allow overriding setgroups(2) for initgroups(3);
65
66 REENTRANCY IN THE LIBC:
67
68 We assume, both in the client and server, that it is safe to use one
69 stdio stream in a signal handler which interrupts use of a _different_
70 stdio stream in another.  We make sure using setvbuf that we have
71 pre-allocated buffers so that stdio doesn't need to use malloc() when
72 we actually read or write.  stdio had better not do anything else
73 weird.
74
75 Furthermore, we assume that it is safe to use syslog in a signal
76 handler which has interrupted a stdio operation (but we don't require
77 that it be safe to invoke when the signal has interrupted a call to
78 malloc, unless stdio makes gratuitous mallocs).  openlog will already
79 have been called (but syslog will not necessarily have been called).
80
81 We assume that strerror is completely reentrant.