head	1.30;
access;
symbols
	netbsd-9-5-RELEASE:1.27
	netbsd-11-0-RELEASE:1.30
	netbsd-11-0-RC7:1.30
	netbsd-11-0-RC6:1.30
	netbsd-11-0-RC5:1.30
	netbsd-11-0-RC4:1.30
	netbsd-11-0-RC3:1.30
	netbsd-11-0-RC2:1.30
	netbsd-11-0-RC1:1.30
	perseant-exfatfs-base-20250801:1.30
	netbsd-11:1.30.0.4
	netbsd-11-base:1.30
	netbsd-10-1-RELEASE:1.29
	perseant-exfatfs-base-20240630:1.30
	perseant-exfatfs:1.30.0.2
	perseant-exfatfs-base:1.30
	netbsd-8-3-RELEASE:1.27
	netbsd-9-4-RELEASE:1.27
	netbsd-10-0-RELEASE:1.29
	netbsd-10-0-RC6:1.29
	netbsd-10-0-RC5:1.29
	netbsd-10-0-RC4:1.29
	netbsd-10-0-RC3:1.29
	netbsd-10-0-RC2:1.29
	netbsd-10-0-RC1:1.29
	netbsd-10:1.29.0.2
	netbsd-10-base:1.29
	netbsd-9-3-RELEASE:1.27
	cjep_sun2x-base1:1.28
	cjep_sun2x:1.28.0.6
	cjep_sun2x-base:1.28
	cjep_staticlib_x-base1:1.28
	netbsd-9-2-RELEASE:1.27
	cjep_staticlib_x:1.28.0.4
	cjep_staticlib_x-base:1.28
	netbsd-9-1-RELEASE:1.27
	phil-wifi-20200421:1.28
	phil-wifi-20200411:1.28
	is-mlppp:1.28.0.2
	is-mlppp-base:1.28
	phil-wifi-20200406:1.28
	netbsd-8-2-RELEASE:1.27
	netbsd-9-0-RELEASE:1.27
	netbsd-9-0-RC2:1.27
	netbsd-9-0-RC1:1.27
	phil-wifi-20191119:1.28
	netbsd-9:1.27.0.12
	netbsd-9-base:1.27
	phil-wifi-20190609:1.27
	netbsd-8-1-RELEASE:1.27
	netbsd-8-1-RC1:1.27
	pgoyette-compat-merge-20190127:1.27
	pgoyette-compat-20190127:1.27
	pgoyette-compat-20190118:1.27
	pgoyette-compat-1226:1.27
	pgoyette-compat-1126:1.27
	pgoyette-compat-1020:1.27
	pgoyette-compat-0930:1.27
	pgoyette-compat-0906:1.27
	netbsd-7-2-RELEASE:1.21
	pgoyette-compat-0728:1.27
	netbsd-8-0-RELEASE:1.27
	phil-wifi:1.27.0.10
	phil-wifi-base:1.27
	pgoyette-compat-0625:1.27
	netbsd-8-0-RC2:1.27
	pgoyette-compat-0521:1.27
	pgoyette-compat-0502:1.27
	pgoyette-compat-0422:1.27
	netbsd-8-0-RC1:1.27
	pgoyette-compat-0415:1.27
	pgoyette-compat-0407:1.27
	pgoyette-compat-0330:1.27
	pgoyette-compat-0322:1.27
	pgoyette-compat-0315:1.27
	netbsd-7-1-2-RELEASE:1.21
	pgoyette-compat:1.27.0.8
	pgoyette-compat-base:1.27
	netbsd-7-1-1-RELEASE:1.21
	matt-nb8-mediatek:1.27.0.6
	matt-nb8-mediatek-base:1.27
	perseant-stdc-iso10646:1.27.0.4
	perseant-stdc-iso10646-base:1.27
	netbsd-8:1.27.0.2
	netbsd-8-base:1.27
	prg-localcount2-base3:1.27
	prg-localcount2-base2:1.26
	prg-localcount2-base1:1.24
	prg-localcount2:1.24.0.6
	prg-localcount2-base:1.24
	pgoyette-localcount-20170426:1.24
	bouyer-socketcan-base1:1.24
	pgoyette-localcount-20170320:1.24
	netbsd-7-1:1.21.0.8
	netbsd-7-1-RELEASE:1.21
	netbsd-7-1-RC2:1.21
	netbsd-7-nhusb-base-20170116:1.21
	bouyer-socketcan:1.24.0.4
	bouyer-socketcan-base:1.24
	pgoyette-localcount-20170107:1.24
	netbsd-7-1-RC1:1.21
	pgoyette-localcount-20161104:1.24
	netbsd-7-0-2-RELEASE:1.21
	localcount-20160914:1.24
	netbsd-7-nhusb:1.21.0.6
	netbsd-7-nhusb-base:1.21
	pgoyette-localcount-20160806:1.24
	pgoyette-localcount-20160726:1.24
	pgoyette-localcount:1.24.0.2
	pgoyette-localcount-base:1.24
	netbsd-7-0-1-RELEASE:1.21
	netbsd-7-0:1.21.0.4
	netbsd-7-0-RELEASE:1.21
	netbsd-7-0-RC3:1.21
	netbsd-7-0-RC2:1.21
	netbsd-7-0-RC1:1.21
	netbsd-5-2-3-RELEASE:1.1
	netbsd-5-1-5-RELEASE:1.1
	netbsd-6-0-6-RELEASE:1.5
	netbsd-6-1-5-RELEASE:1.5
	netbsd-7:1.21.0.2
	netbsd-7-base:1.21
	yamt-pagecache-base9:1.16
	yamt-pagecache-tag8:1.5.6.1
	netbsd-6-1-4-RELEASE:1.5
	netbsd-6-0-5-RELEASE:1.5
	tls-earlyentropy:1.16.0.2
	tls-earlyentropy-base:1.21
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.16
	riastradh-drm2-base3:1.16
	netbsd-6-1-3-RELEASE:1.5
	netbsd-6-0-4-RELEASE:1.5
	netbsd-5-2-2-RELEASE:1.1
	netbsd-5-1-4-RELEASE:1.1
	netbsd-6-1-2-RELEASE:1.5
	netbsd-6-0-3-RELEASE:1.5
	netbsd-5-2-1-RELEASE:1.1
	netbsd-5-1-3-RELEASE:1.1
	netbsd-6-1-1-RELEASE:1.5
	riastradh-drm2-base2:1.14
	riastradh-drm2-base1:1.14
	riastradh-drm2:1.14.0.2
	riastradh-drm2-base:1.14
	netbsd-6-1:1.5.0.14
	netbsd-6-0-2-RELEASE:1.5
	netbsd-6-1-RELEASE:1.5
	netbsd-6-1-RC4:1.5
	netbsd-6-1-RC3:1.5
	agc-symver:1.9.0.2
	agc-symver-base:1.9
	netbsd-6-1-RC2:1.5
	netbsd-6-1-RC1:1.5
	yamt-pagecache-base8:1.6
	netbsd-5-2:1.1.0.4
	netbsd-6-0-1-RELEASE:1.5
	yamt-pagecache-base7:1.6
	netbsd-5-2-RELEASE:1.1
	netbsd-5-2-RC1:1.1
	matt-nb6-plus-nbase:1.5
	yamt-pagecache-base6:1.6
	netbsd-6-0:1.5.0.12
	netbsd-6-0-RELEASE:1.5
	netbsd-6-0-RC2:1.5
	tls-maxphys:1.6.0.2
	tls-maxphys-base:1.21
	matt-nb6-plus:1.5.0.10
	matt-nb6-plus-base:1.5
	netbsd-6-0-RC1:1.5
	yamt-pagecache-base5:1.6
	yamt-pagecache-base4:1.6
	netbsd-6:1.5.0.8
	netbsd-6-base:1.5
	netbsd-5-1-2-RELEASE:1.1
	netbsd-5-1-1-RELEASE:1.1
	yamt-pagecache-base3:1.5
	yamt-pagecache-base2:1.5
	yamt-pagecache:1.5.0.6
	yamt-pagecache-base:1.5
	cherry-xenmp:1.5.0.4
	cherry-xenmp-base:1.5
	bouyer-quota2-nbase:1.5
	bouyer-quota2:1.5.0.2
	bouyer-quota2-base:1.5
	matt-mips64-premerge-20101231:1.5
	matt-nb5-mips64-premerge-20101231:1.1
	matt-nb5-pq3:1.1.0.16
	matt-nb5-pq3-base:1.1
	netbsd-5-1:1.1.0.14
	netbsd-5-1-RELEASE:1.1
	netbsd-5-1-RC4:1.1
	matt-nb5-mips64-k15:1.1
	netbsd-5-1-RC3:1.1
	netbsd-5-1-RC2:1.1
	netbsd-5-1-RC1:1.1
	netbsd-5-0-2-RELEASE:1.1
	matt-nb5-mips64-premerge-20091211:1.1
	matt-premerge-20091211:1.1
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.1
	matt-nb4-mips64-k7-u2a-k9b:1.1
	matt-nb5-mips64-u1-k1-k5:1.1
	matt-nb5-mips64:1.1.0.12
	netbsd-5-0-1-RELEASE:1.1
	jym-xensuspend-nbase:1.1
	netbsd-5-0:1.1.0.10
	netbsd-5-0-RELEASE:1.1
	netbsd-5-0-RC4:1.1
	netbsd-5-0-RC3:1.1
	netbsd-5-0-RC2:1.1
	jym-xensuspend:1.1.0.8
	jym-xensuspend-base:1.1
	netbsd-5-0-RC1:1.1
	netbsd-5:1.1.0.6
	netbsd-5-base:1.1
	matt-mips64-base2:1.1
	wrstuden-revivesa-base-3:1.1
	wrstuden-revivesa:1.1.0.2
	wrstuden-revivesa-base-2:1.1;
locks; strict;
comment	@# @;


1.30
date	2023.06.03.09.09.10;	author lukem;	state Exp;
branches;
next	1.29;
commitid	aBaIRnuykonRStrE;

1.29
date	2021.11.01.21.37.33;	author nia;	state Exp;
branches;
next	1.28;
commitid	3fVyNCFnvj0dD8fD;

1.28
date	2019.10.13.07.28.11;	author mrg;	state Exp;
branches;
next	1.27;
commitid	vRNwN94v7NgB2GGB;

1.27
date	2017.05.11.04.33.14;	author sevan;	state Exp;
branches
	1.27.10.1;
next	1.26;
commitid	vhAHSrHP1SrEuVQz;

1.26
date	2017.05.10.08.48.46;	author sevan;	state Exp;
branches;
next	1.25;
commitid	NVAaUlFuscMEXOQz;

1.25
date	2017.05.10.01.11.52;	author sevan;	state Exp;
branches;
next	1.24;
commitid	sA0WDpMa41g9qMQz;

1.24
date	2016.01.23.21.22.46;	author christos;	state Exp;
branches
	1.24.6.1;
next	1.23;
commitid	0voYFcZKKnOpl6Sy;

1.23
date	2014.11.09.17.39.37;	author pooka;	state Exp;
branches;
next	1.22;
commitid	zEEO5kzkNWfPdxXx;

1.22
date	2014.10.28.23.48.03;	author pooka;	state Exp;
branches;
next	1.21;
commitid	AQnJTbsEip9RF1Wx;

1.21
date	2014.07.22.22.41.58;	author justin;	state Exp;
branches;
next	1.20;
commitid	mFNBLRJ4TtTdpqJx;

1.20
date	2014.07.11.20.26.31;	author justin;	state Exp;
branches;
next	1.19;
commitid	wKeX1KlJTXKp30Ix;

1.19
date	2014.07.09.23.41.40;	author justin;	state Exp;
branches;
next	1.18;
commitid	v32iDnqnl5SzcLHx;

1.18
date	2014.06.17.08.42.35;	author alnsn;	state Exp;
branches;
next	1.17;
commitid	PycUkQNieMc6WQEx;

1.17
date	2014.06.17.06.31.47;	author alnsn;	state Exp;
branches;
next	1.16;
commitid	ben0s4KujpOwdQEx;

1.16
date	2014.02.20.00.42.27;	author pooka;	state Exp;
branches
	1.16.2.1;
next	1.15;
commitid	hCuaznEkQkJT2Mpx;

1.15
date	2013.09.10.16.51.24;	author pooka;	state Exp;
branches;
next	1.14;
commitid	ka21ObiA11N7EU4x;

1.14
date	2013.05.15.20.47.20;	author pooka;	state Exp;
branches;
next	1.13;
commitid	QgVEHxUm9epgKLPw;

1.13
date	2013.05.15.20.27.00;	author pooka;	state Exp;
branches;
next	1.12;
commitid	HGvcrRuyhAk7DLPw;

1.12
date	2013.04.30.15.48.29;	author pooka;	state Exp;
branches;
next	1.11;

1.11
date	2013.04.30.12.39.20;	author pooka;	state Exp;
branches;
next	1.10;

1.10
date	2013.04.29.12.56.04;	author pooka;	state Exp;
branches;
next	1.9;

1.9
date	2013.03.18.13.14.10;	author pooka;	state Exp;
branches;
next	1.8;

1.8
date	2013.03.01.18.15.36;	author pooka;	state Exp;
branches;
next	1.7;

1.7
date	2013.03.01.13.52.31;	author pooka;	state Exp;
branches;
next	1.6;

1.6
date	2012.03.21.05.37.44;	author matt;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	2010.11.30.14.23.24;	author pooka;	state Exp;
branches
	1.5.6.1;
next	1.4;

1.4
date	2010.11.30.14.08.39;	author pooka;	state Exp;
branches;
next	1.3;

1.3
date	2010.10.27.20.44.50;	author pooka;	state Exp;
branches;
next	1.2;

1.2
date	2010.02.26.18.54.20;	author pooka;	state Exp;
branches;
next	1.1;

1.1
date	2008.07.29.13.17.41;	author pooka;	state Exp;
branches
	1.1.2.1;
next	;

1.27.10.1
date	2020.04.13.08.03.16;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.24.6.1
date	2017.05.11.02.58.34;	author pgoyette;	state Exp;
branches;
next	1.24.6.2;
commitid	p6b6NO9zXediZUQz;

1.24.6.2
date	2017.05.19.00.22.53;	author pgoyette;	state Exp;
branches;
next	;
commitid	QNTxgGjVagwoSVRz;

1.16.2.1
date	2014.08.10.06.52.25;	author tls;	state Exp;
branches;
next	;
commitid	0aaPMXItb1daBMLx;

1.6.2.1
date	2013.06.23.06.21.08;	author tls;	state Exp;
branches;
next	1.6.2.2;
commitid	NYFFXRB0xCbrHHUw;

1.6.2.2
date	2014.08.20.00.02.21;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.5.6.1
date	2012.04.17.00.05.33;	author yamt;	state Exp;
branches;
next	1.5.6.2;

1.5.6.2
date	2014.05.22.11.37.00;	author yamt;	state Exp;
branches;
next	;
commitid	HJV5p3BoaVY5KwBx;

1.1.2.1
date	2008.07.29.13.17.41;	author wrstuden;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2008.09.18.04.39.25;	author wrstuden;	state Exp;
branches;
next	;


desc
@@


1.30
log
@bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
	GCC_NO_warning
to
	CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
@
text
@#	$NetBSD: Makefile,v 1.29 2021/11/01 21:37:33 nia Exp $
#

NOFULLRELRO=	yes

.include <bsd.own.mk>

WARNS?=		5

# rumpuser.h is in sys/rump for inclusion by kernel components
.PATH:		${.CURDIR}/../../sys/rump/include/rump

RUMPUSER_THREADS?=pthread

LIB=		rumpuser

.if   ${RUMPUSER_THREADS} == "pthread"
LIBDPLIBS+=	pthread ${.CURDIR}/../libpthread
.endif
.for lib in ${RUMPUSER_EXTERNAL_DPLIBS}
LIBDO.${lib}=	_external
LIBDPLIBS+=	${lib} lib
.endfor
CPPFLAGS+=	-DLIBRUMPUSER
#CPPFLAGS+=	-D_DIAGNOSTIC


.if   ${RUMPUSER_THREADS} == "pthread"
SRCS=		rumpuser.c rumpuser_pth.c rumpuser_bio.c
SRCS+=		rumpuser_sp.c
.elif ${RUMPUSER_THREADS} == "none"
SRCS=		rumpuser.c rumpuser_pth_dummy.c rumpuser_bio.c
SRCS+=		rumpuser_sp.c
.elif ${RUMPUSER_THREADS} == "fiber"
.if defined(RUMP_CURLWP)
.if ${RUMP_CURLWP} != "hypercall"
.error Unsupported curlwp scheme for thread model: ${RUMP_CURLWP}
.endif
.endif
SRCS=		rumpfiber.c rumpfiber_bio.c
SRCS+=		rumpfiber_sp.c
.else
.error Unsupported rumpuser threading type: ${RUMPUSER_THREADS}
.endif

SRCS+=		rumpuser_component.c rumpuser_random.c
SRCS+=		rumpuser_file.c rumpuser_mem.c

SRCS+=		rumpuser_errtrans.c rumpuser_sigtrans.c

# optional
SRCS+=		rumpuser_dl.c rumpuser_daemonize.c

INCSDIR=	/usr/include/rump
INCS=		rumpuser_component.h rumpuser_port.h

CPPFLAGS+=	-D_REENTRANT

COPTS.rumpuser_sp.c+=	${CC_WNO_CAST_FUNCTION_TYPE}

.include <bsd.lib.mk>
@


1.29
log
@Force at most partial RELRO for rump_server and related libraries

rump_server with -l uses lazy resolution by default and thus cannot be
used with full RELRO/BIND_NOW.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2019/10/13 07:28:11 mrg Exp $
d59 1
a59 1
COPTS.rumpuser_sp.c+=	${GCC_NO_CAST_FUNCTION_TYPE}
@


1.28
log
@introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION    -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION  -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW    -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE   -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints.  many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2017/05/11 04:33:14 sevan Exp $
d4 2
@


1.27
log
@With the removal of HAVE_REGISTER_T from rumpuser_port.h, _KERNTYPES does not
need to be defined. This allows register_t to be typedef'd to RUMP_REGISTER_T
without conflict, as highlighted in PR kern/52206.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2017/05/10 08:48:46 sevan Exp $
d57 2
@


1.27.10.1
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d1 1
a1 1
#	$NetBSD$
a56 2
COPTS.rumpuser_sp.c+=	${GCC_NO_CAST_FUNCTION_TYPE}

@


1.26
log
@Revert previous change so builds can resume.
_KERNTYPES needs to be defined for NetBSD builds to succeed.
_KERNTYPES must not be defined for buildrum.sh builds to succeed.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2017/05/10 01:11:52 sevan Exp $
d22 1
a22 1
CPPFLAGS+=	-DLIBRUMPUSER -D_KERNTYPES
@


1.25
log
@Do not define _KERNTYPES as this breaks build with buildrump.sh due to
conflicting types for register_t.
Closes PR kern/52206
Steered in the right direction by christos.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2016/01/23 21:22:46 christos Exp $
d22 1
a22 1
CPPFLAGS+=	-DLIBRUMPUSER
@


1.24
log
@Define _KERNTYPES for things that need it.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2014/11/09 17:39:37 pooka Exp $
d22 1
a22 1
CPPFLAGS+=	-DLIBRUMPUSER -D_KERNTYPES
@


1.24.6.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2017/05/10 08:48:46 sevan Exp $
@


1.24.6.2
log
@Resolve conflicts from previous merge (all resulting from $NetBSD
keywork expansion)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2017/05/11 04:33:14 sevan Exp $
d22 1
a22 1
CPPFLAGS+=	-DLIBRUMPUSER
@


1.23
log
@Move rump kernel man pages from various sources to sys/rump

namely:
  * src/lib is used only when building for POSIX'y platforms, but
    the man pages have their use for all platforms
  * rumpuser.3 is a function of the rump kernel, not one of the of
    the POSIX'y implementation hosted in src/lib/librumpuser

no functional change
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2014/10/28 23:48:03 pooka Exp $
d22 1
a22 1
CPPFLAGS+=	-DLIBRUMPUSER
@


1.22
log
@Don't install rumpuser.h here.

It's already installed by the rump kernel build (sys/rump/include/rump)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2014/07/22 22:41:58 justin Exp $
a54 2
MAN=		rumpuser.3

@


1.21
log
@Clean up random implementation for librumpuser

Use /dev/urandom for platforms without arc4random, not srandom(),
deduplicate code, do not read excessive random bytes

Reviewed by pooka@@
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2014/07/11 20:26:31 justin Exp $
d53 1
a53 1
INCS=		rumpuser.h rumpuser_component.h rumpuser_port.h
@


1.20
log
@Add a fiber based implementation of librumpuser in addition to the
default pthreads based version.

Discussed with pooka@@
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2014/07/09 23:41:40 justin Exp $
d44 1
a44 1
SRCS+=		rumpuser_component.c
@


1.19
log
@Split out file and memory access in librumpuser

This allows alternate implementations to reuse these parts, and the file
parts will at the next hypercall revision be moved to their own driver.

Discussed with pooka@@
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2014/06/17 08:42:35 alnsn Exp $
d11 2
d14 2
d17 1
d25 20
a44 3
SRCS=		rumpuser.c
SRCS+=		rumpuser_pth.c
SRCS+=		rumpuser_component.c rumpuser_bio.c
d50 1
a50 1
SRCS+=		rumpuser_dl.c rumpuser_sp.c rumpuser_daemonize.c
a58 1

@


1.18
log
@Antti objected to including rumpuser_sync_icache. Exclude it from the build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2014/06/17 06:31:47 alnsn Exp $
d23 1
@


1.17
log
@Implement rumpuser_sync_icache hypercall.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2014/02/20 00:42:27 pooka Exp $
a22 1
SRCS+=		rumpuser_cache.c
@


1.16
log
@Translate signal numbers between rump kernel and (POSIX) host.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2013/09/10 16:51:24 pooka Exp $
d23 1
@


1.16.2.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2014/07/22 22:41:58 justin Exp $
a10 2
RUMPUSER_THREADS?=pthread

a11 2

.if   ${RUMPUSER_THREADS} == "pthread"
a12 1
.endif
d20 3
a22 21

.if   ${RUMPUSER_THREADS} == "pthread"
SRCS=		rumpuser.c rumpuser_pth.c rumpuser_bio.c
SRCS+=		rumpuser_sp.c
.elif ${RUMPUSER_THREADS} == "none"
SRCS=		rumpuser.c rumpuser_pth_dummy.c rumpuser_bio.c
SRCS+=		rumpuser_sp.c
.elif ${RUMPUSER_THREADS} == "fiber"
.if defined(RUMP_CURLWP)
.if ${RUMP_CURLWP} != "hypercall"
.error Unsupported curlwp scheme for thread model: ${RUMP_CURLWP}
.endif
.endif
SRCS=		rumpfiber.c rumpfiber_bio.c
SRCS+=		rumpfiber_sp.c
.else
.error Unsupported rumpuser threading type: ${RUMPUSER_THREADS}
.endif

SRCS+=		rumpuser_component.c rumpuser_random.c
SRCS+=		rumpuser_file.c rumpuser_mem.c
d27 1
a27 1
SRCS+=		rumpuser_dl.c rumpuser_daemonize.c
d36 1
@


1.15
log
@Install rumpuser_port.h
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2013/05/15 20:47:20 pooka Exp $
d22 3
a24 1
SRCS+=		rumpuser_component.c rumpuser_errtrans.c rumpuser_bio.c
@


1.14
log
@also, bsd.own.mk to pick up mk.conf
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2013/05/15 20:27:00 pooka Exp $
d28 1
a28 1
INCS=		rumpuser.h rumpuser_component.h
@


1.13
log
@Make it possible for external parties to specify additional dplibs.
This is useful for example on platforms which require -ldl.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2013/04/30 15:48:29 pooka Exp $
d4 2
@


1.12
log
@put optional modules on a separate SRCS line
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2013/04/30 12:39:20 pooka Exp $
d11 4
@


1.11
log
@Translate error codes between the hypervisor and rump kernel.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2013/04/29 12:56:04 pooka Exp $
d16 4
a19 2
SRCS+=		rumpuser_dl.c rumpuser_sp.c rumpuser_daemonize.c rumpuser_bio.c
SRCS+=		rumpuser_component.c rumpuser_errtrans.c
@


1.10
log
@Rework how the bio hypercalls work, part 1/n:

Reduce the set of hypercalls to one: "do block i/o".  This not only
eliminates a lot of pseudo-duplicate code, it also gives the
hypervisor a lot more freedom on how to optimize the i/o.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2013/03/18 13:14:10 pooka Exp $
d17 1
a17 1
SRCS+=		rumpuser_component.c
@


1.9
log
@Move the rumpuser_net set of hypercalls to be a private to the sockin
component.  This cleans up the generic hypercall interfaces from ones
specific to only one component.  They should always have been private,
but the infrastructure to "make it so" didn't exist earlier.

no functional change
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2013/03/01 18:15:36 pooka Exp $
d16 1
a16 1
SRCS+=		rumpuser_dl.c rumpuser_sp.c rumpuser_daemonize.c
@


1.8
log
@Add interfaces that out-of-librumpuser hypercalls can use to unschedule
and reschedule themselves if they plan to block.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2013/03/01 13:52:31 pooka Exp $
d14 1
a14 1
SRCS=		rumpuser.c rumpuser_net.c
@


1.7
log
@limit use of rumpuser.h to where it is meant to be used from
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2012/03/21 05:37:44 matt Exp $
d17 1
d20 1
a20 1
INCS=		rumpuser.h
@


1.6
log
@These directories default to WARNS?=5
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2010/11/30 14:23:24 pooka Exp $
d11 1
@


1.6.2.1
log
@resync from head
@
text
@d1 1
a1 1
#	$NetBSD$
a3 2
.include <bsd.own.mk>

a10 5
.for lib in ${RUMPUSER_EXTERNAL_DPLIBS}
LIBDO.${lib}=	_external
LIBDPLIBS+=	${lib} lib
.endfor
CPPFLAGS+=	-DLIBRUMPUSER
d13 1
a13 1
SRCS=		rumpuser.c
a14 3
SRCS+=		rumpuser_component.c rumpuser_errtrans.c rumpuser_bio.c

# optional
d18 1
a18 1
INCS=		rumpuser.h rumpuser_component.h
@


1.6.2.2
log
@Rebase to HEAD as of a few days ago.
@
text
@a10 2
RUMPUSER_THREADS?=pthread

a11 2

.if   ${RUMPUSER_THREADS} == "pthread"
a12 1
.endif
d20 3
a22 23

.if   ${RUMPUSER_THREADS} == "pthread"
SRCS=		rumpuser.c rumpuser_pth.c rumpuser_bio.c
SRCS+=		rumpuser_sp.c
.elif ${RUMPUSER_THREADS} == "none"
SRCS=		rumpuser.c rumpuser_pth_dummy.c rumpuser_bio.c
SRCS+=		rumpuser_sp.c
.elif ${RUMPUSER_THREADS} == "fiber"
.if defined(RUMP_CURLWP)
.if ${RUMP_CURLWP} != "hypercall"
.error Unsupported curlwp scheme for thread model: ${RUMP_CURLWP}
.endif
.endif
SRCS=		rumpfiber.c rumpfiber_bio.c
SRCS+=		rumpfiber_sp.c
.else
.error Unsupported rumpuser threading type: ${RUMPUSER_THREADS}
.endif

SRCS+=		rumpuser_component.c rumpuser_random.c
SRCS+=		rumpuser_file.c rumpuser_mem.c

SRCS+=		rumpuser_errtrans.c rumpuser_sigtrans.c
d25 1
a25 1
SRCS+=		rumpuser_dl.c rumpuser_daemonize.c
d28 1
a28 1
INCS=		rumpuser.h rumpuser_component.h rumpuser_port.h
d34 1
@


1.5
log
@Require server to be explicitly initialized with rump_init_server(url).
Also, add rump_daemonize_begin() / rump_daemonize_end() to help
with the "can't daemon() after pthread_create()" problem.  Applications
could accomplish the same, but since it's such a common operation,
provide a little help.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2010/11/30 14:08:39 pooka Exp $
d4 1
a4 1
WARNS=		4
@


1.5.6.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2010/11/30 14:23:24 pooka Exp $
d4 1
a4 1
WARNS?=		5
@


1.5.6.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5.6.1 2012/04/17 00:05:33 yamt Exp $
a3 2
.include <bsd.own.mk>

a10 5
.for lib in ${RUMPUSER_EXTERNAL_DPLIBS}
LIBDO.${lib}=	_external
LIBDPLIBS+=	${lib} lib
.endfor
CPPFLAGS+=	-DLIBRUMPUSER
d13 1
a13 1
SRCS=		rumpuser.c
a14 5
SRCS+=		rumpuser_component.c rumpuser_bio.c

SRCS+=		rumpuser_errtrans.c rumpuser_sigtrans.c

# optional
d18 1
a18 1
INCS=		rumpuser.h rumpuser_component.h rumpuser_port.h
@


1.4
log
@add commented-out -D_DIAGNOSTIC
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2010/10/27 20:44:50 pooka Exp $
d15 1
a15 1
SRCS+=		rumpuser_dl.c rumpuser_sp.c
@


1.3
log
@Start rework of system call proxying over socket ("sysproxy").
This incarnation is written in the user namespace as opposed to
the previous one which was done in kernel namespace.  Also, rump
does all the handshaking now instead of excepting an application
to come up with the user namespace socket.

There's still a lot to do, including making code "a bit" more
robust, actually running different clients in a different process
inside the kernel and splitting the client side library from librump.
I'm committing this now so that I don't lose it, plus it generally
works as long as you don't use it in unexcepted ways: i've tested
ifconfig(8), route(8), envstat(8) and sysctl(8).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2010/02/26 18:54:20 pooka Exp $
d10 2
a11 1
LIBDPLIBS+=     pthread ${.CURDIR}/../libpthread
@


1.2
log
@librumpuser is not _KERNEL code and does not belong in sys.  Move
the source files from src/sys/rump/librump/rumpuser to src/lib/librumpuser
(from where it is already built).  Even so, keep rumpuser.h in
sys/rump/include for kernel source tree self-containment.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2008/07/29 13:17:41 pooka Exp $
d14 1
a14 1
SRCS+=		rumpuser_dl.c
@


1.1
log
@Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
  * install relevant headers into /usr/include/rump
  * build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
    from src/lib and install as librumpuser and librump, respectively
    + this retains the ability to test a librump build with just the
      kernel sources at hand
  * move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
    for general consumption, they are not kernel-space dwellers anyway
  * build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
  * add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
  * build and install userspace kernel file system daemons if MKPUFFS=yes
    is spexified
  * retire fsconsole for now, it will make a comeback with an actually
    implemented version shortly
@
text
@d1 1
a1 1
#	$NetBSD$
d4 1
a4 1
.PATH:		${.CURDIR}/../../sys/rump/librump/rumpuser
d6 4
d11 8
d21 4
a24 1
.include "${.CURDIR}/../../sys/rump/librump/rumpuser/Makefile"
@


1.1.2.1
log
@file Makefile was added on branch wrstuden-revivesa on 2008-09-18 04:39:25 +0000
@
text
@d1 9
@


1.1.2.2
log
@Sync with wrstuden-revivesa-base-2.
@
text
@a0 9
#	$NetBSD: Makefile,v 1.1 2008/07/29 13:17:41 pooka Exp $
#

.PATH:		${.CURDIR}/../../sys/rump/librump/rumpuser

LIBDPLIBS+=     pthread ${.CURDIR}/../libpthread
MAN=		rumpuser.3

.include "${.CURDIR}/../../sys/rump/librump/rumpuser/Makefile"
@
