134192Sjdp/*
234192Sjdp * Copyright (c) 1998 Daniel Eischen <eischen@vigrid.com>.
334192Sjdp * All rights reserved.
434192Sjdp *
534192Sjdp * Redistribution and use in source and binary forms, with or without
634192Sjdp * modification, are permitted provided that the following conditions
734192Sjdp * are met:
834192Sjdp * 1. Redistributions of source code must retain the above copyright
934192Sjdp *    notice, this list of conditions and the following disclaimer.
1034192Sjdp * 2. Redistributions in binary form must reproduce the above copyright
1134192Sjdp *    notice, this list of conditions and the following disclaimer in the
1234192Sjdp *    documentation and/or other materials provided with the distribution.
1334192Sjdp * 3. All advertising materials mentioning features or use of this software
1434192Sjdp *    must display the following acknowledgement:
1534192Sjdp *	This product includes software developed by Daniel Eischen.
1634192Sjdp * 4. Neither the name of the author nor the names of any co-contributors
1734192Sjdp *    may be used to endorse or promote products derived from this software
1834192Sjdp *    without specific prior written permission.
1934192Sjdp *
2034192Sjdp * THIS SOFTWARE IS PROVIDED BY DANIEL EISCHEN AND CONTRIBUTORS ``AS IS'' AND
2134192Sjdp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2234192Sjdp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2334192Sjdp * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2434192Sjdp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2550476Speter * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2634192Sjdp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2734192Sjdp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2834192Sjdp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2934192Sjdp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3034192Sjdp * SUCH DAMAGE.
3134192Sjdp */
3234192Sjdp
3334192Sjdp#include <sys/cdefs.h>
3434192Sjdp__FBSDID("$FreeBSD: releng/11.0/lib/libthr/thread/thr_switch_np.c 297706 2016-04-08 11:15:26Z kib $");
35146370Sdfr
36146370Sdfr#include "namespace.h"
37146370Sdfr#include <errno.h>
3838816Sdfr#include <pthread.h>
3938816Sdfr#include <pthread_np.h>
4038816Sdfr#include "un-namespace.h"
41146370Sdfr
4238816Sdfr#include "thr_private.h"
4338816Sdfr
4434192Sjdp
4534192Sjdp__weak_reference(_pthread_switch_add_np, pthread_switch_add_np);
46146370Sdfr__weak_reference(_pthread_switch_delete_np, pthread_switch_delete_np);
4734192Sjdp
48146370Sdfrint
4934192Sjdp_pthread_switch_add_np(pthread_switch_routine_t routine __unused)
5034192Sjdp{
5134192Sjdp	return (ENOTSUP);
5234192Sjdp}
5334192Sjdp
5434192Sjdpint
5534192Sjdp_pthread_switch_delete_np(pthread_switch_routine_t routine __unused)
5634192Sjdp{
5734192Sjdp	return (ENOTSUP);
5834192Sjdp}
5934192Sjdp