rumpfiber_sp.c revision 1.3
11.3Sjustin/*	$NetBSD: rumpfiber_sp.c,v 1.3 2014/12/29 21:50:09 justin Exp $	*/
21.2Spooka
31.1Sjustin/*
41.1Sjustin * Copyright (c) 2014 Justin Cormack.  All Rights Reserved.
51.1Sjustin *
61.1Sjustin * Redistribution and use in source and binary forms, with or without
71.1Sjustin * modification, are permitted provided that the following conditions
81.1Sjustin * are met:
91.1Sjustin * 1. Redistributions of source code must retain the above copyright
101.1Sjustin *    notice, this list of conditions and the following disclaimer.
111.1Sjustin * 2. Redistributions in binary form must reproduce the above copyright
121.1Sjustin *    notice, this list of conditions and the following disclaimer in the
131.1Sjustin *    documentation and/or other materials provided with the distribution.
141.1Sjustin *
151.1Sjustin * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
161.1Sjustin * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
171.1Sjustin * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
181.1Sjustin * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
191.1Sjustin * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
201.1Sjustin * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
211.1Sjustin * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
221.1Sjustin * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
231.1Sjustin * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
241.1Sjustin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
251.1Sjustin * SUCH DAMAGE.
261.1Sjustin */
271.1Sjustin
281.1Sjustin/* stubs for sp functions as not supported for fibers yet */
291.1Sjustin
301.1Sjustin#include "rumpuser_port.h"
311.1Sjustin
321.1Sjustin#if !defined(lint)
331.3Sjustin__RCSID("$NetBSD: rumpfiber_sp.c,v 1.3 2014/12/29 21:50:09 justin Exp $");
341.1Sjustin#endif /* !lint */
351.1Sjustin
361.1Sjustin#include <stdlib.h>
371.1Sjustin
381.1Sjustin#include <rump/rumpuser.h>
391.1Sjustin
401.1Sjustin#include "rumpfiber.h"
411.1Sjustin
421.1Sjustin/*ARGSUSED*/
431.1Sjustinint
441.1Sjustinrumpuser_sp_init(const char *url,
451.1Sjustin	const char *ostype, const char *osrelease, const char *machine)
461.1Sjustin{
471.1Sjustin
481.1Sjustin	return 0;
491.1Sjustin}
501.1Sjustin
511.1Sjustin/*ARGSUSED*/
521.1Sjustinvoid
531.1Sjustinrumpuser_sp_fini(void *arg)
541.1Sjustin{
551.1Sjustin
561.1Sjustin}
571.1Sjustin
581.1Sjustin/*ARGSUSED*/
591.1Sjustinint
601.1Sjustinrumpuser_sp_raise(void *arg, int signo)
611.1Sjustin{
621.1Sjustin
631.3Sjustin	abort();
641.1Sjustin}
651.1Sjustin
661.1Sjustin/*ARGSUSED*/
671.1Sjustinint
681.1Sjustinrumpuser_sp_copyin(void *arg, const void *raddr, void *laddr, size_t len)
691.1Sjustin{
701.1Sjustin
711.3Sjustin	abort();
721.1Sjustin}
731.1Sjustin
741.1Sjustin/*ARGSUSED*/
751.1Sjustinint
761.1Sjustinrumpuser_sp_copyinstr(void *arg, const void *raddr, void *laddr, size_t *len)
771.1Sjustin{
781.1Sjustin
791.3Sjustin	abort();
801.1Sjustin}
811.1Sjustin
821.1Sjustin/*ARGSUSED*/
831.1Sjustinint
841.1Sjustinrumpuser_sp_copyout(void *arg, const void *laddr, void *raddr, size_t dlen)
851.1Sjustin{
861.1Sjustin
871.3Sjustin	abort();
881.1Sjustin}
891.1Sjustin
901.1Sjustin/*ARGSUSED*/
911.1Sjustinint
921.1Sjustinrumpuser_sp_copyoutstr(void *arg, const void *laddr, void *raddr, size_t *dlen)
931.1Sjustin{
941.1Sjustin
951.3Sjustin	abort();
961.1Sjustin}
971.1Sjustin
981.1Sjustin/*ARGSUSED*/
991.1Sjustinint
1001.1Sjustinrumpuser_sp_anonmmap(void *arg, size_t howmuch, void **addr)
1011.1Sjustin{
1021.1Sjustin
1031.3Sjustin	abort();
1041.1Sjustin}
105