Module Name: src
Committed By: pooka
Date: Tue Jan 25 12:56:26 UTC 2011
Modified Files:
src/distrib/sets/lists/comp: mi
src/lib/librumphijack: Makefile
Added Files:
src/lib/librumphijack: rumphijack.3
Log Message:
manual page for rumphijack
To generate a diff of this commit:
cvs rdiff -u -r1.1575 -r1.1576 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.3 -r1.4 src/lib/librumphijack/Makefile
cvs rdiff -u -r0 -r1.1 src/lib/librumphijack/rumphijack.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.1575 src/distrib/sets/lists/comp/mi:1.1576
--- src/distrib/sets/lists/comp/mi:1.1575 Thu Jan 20 18:47:21 2011
+++ src/distrib/sets/lists/comp/mi Tue Jan 25 12:56:25 2011
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1575 2011/01/20 18:47:21 pooka Exp $
+# $NetBSD: mi,v 1.1576 2011/01/25 12:56:25 pooka Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@@ -8056,6 +8056,7 @@
./usr/share/man/cat3/rresvport_af.0 comp-c-catman .cat
./usr/share/man/cat3/rsa.0 comp-obsolete obsolete
./usr/share/man/cat3/rump.0 comp-c-catman .cat
+./usr/share/man/cat3/rumphijack.0 comp-c-catman .cat
./usr/share/man/cat3/rump_etfs.0 comp-c-catman .cat
./usr/share/man/cat3/rump_lwproc.0 comp-c-catman .cat
./usr/share/man/cat3/rumpuser.0 comp-c-catman .cat
@@ -14057,6 +14058,7 @@
./usr/share/man/html3/rresvport.html comp-c-htmlman html
./usr/share/man/html3/rresvport_af.html comp-c-htmlman html
./usr/share/man/html3/rump.html comp-c-htmlman html
+./usr/share/man/html3/rumphijack.html comp-c-htmlman html
./usr/share/man/html3/rump_etfs.html comp-c-htmlman html
./usr/share/man/html3/rump_lwproc.html comp-c-htmlman html
./usr/share/man/html3/rumpuser.html comp-c-htmlman html
@@ -20064,6 +20066,7 @@
./usr/share/man/man3/rresvport_af.3 comp-c-man .man
./usr/share/man/man3/rsa.3 comp-obsolete obsolete
./usr/share/man/man3/rump.3 comp-c-man .man
+./usr/share/man/man3/rumphijack.3 comp-c-man .man
./usr/share/man/man3/rump_etfs.3 comp-c-man .man
./usr/share/man/man3/rump_lwproc.3 comp-c-man .man
./usr/share/man/man3/rumpuser.3 comp-c-man .man
Index: src/lib/librumphijack/Makefile
diff -u src/lib/librumphijack/Makefile:1.3 src/lib/librumphijack/Makefile:1.4
--- src/lib/librumphijack/Makefile:1.3 Tue Jan 18 19:53:23 2011
+++ src/lib/librumphijack/Makefile Tue Jan 25 12:56:25 2011
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile,v 1.3 2011/01/18 19:53:23 pooka Exp $
+# $NetBSD: Makefile,v 1.4 2011/01/25 12:56:25 pooka Exp $
#
LIB= rumphijack
NOSTATICLIB= dlfun
NOPROFILE= dlfun
LIBDPLIBS+= pthread ${.CURDIR}/../libpthread
+MAN= rumphijack.3
SRCS= hijack.c
Added files:
Index: src/lib/librumphijack/rumphijack.3
diff -u /dev/null src/lib/librumphijack/rumphijack.3:1.1
--- /dev/null Tue Jan 25 12:56:26 2011
+++ src/lib/librumphijack/rumphijack.3 Tue Jan 25 12:56:25 2011
@@ -0,0 +1,62 @@
+.\" $NetBSD: rumphijack.3,v 1.1 2011/01/25 12:56:25 pooka Exp $
+.\"
+.\" Copyright (c) 2011 Antti Kantee. All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.Dd January 25, 2011
+.Dt RUMPHIJACK 3
+.Os
+.Sh NAME
+.Nm rumphijack
+.Nd System call hijack library
+.Sh LIBRARY
+used by
+.Xr ld.so 1
+.Sh DESCRIPTION
+The
+.Xr ld.so 1
+runtime linker can be instructed to load
+.Nm
+between the main object and other libraries.
+This enables
+.Nm
+to capture and redirect system call requests to a rump kernel instead
+of the host kernel.
+.Pp
+Currently
+.Nm
+supports only TCP/IP related system calls.
+The set of supported subsystems may change later along with the usage
+of the library.
+.Sh EXAMPLES
+Use an alternate TCP/IP stack for firefox:
+.Bd -literal -offset indent
+$ setenv RUMP_SERVER unix:///tmp/tcpip
+$ setenv LD_PRELOAD /usr/lib/librumphijack.so
+$ firefox
+.Ed
+.Sh SEE ALSO
+.Xr ld.so 1 ,
+.Xr rump_server 1 ,
+.Xr rump 3 ,
+.Xr rump_sp 3