xref: /dflybsd-src/lib/libc/upmap/upmap.h (revision 721505dec240e78696660384d988da78813a33bd)
187116512SMatthew Dillon /*
287116512SMatthew Dillon  * Copyright (c) 2014 The DragonFly Project.  All rights reserved.
387116512SMatthew Dillon  *
487116512SMatthew Dillon  * This code is derived from software contributed to The DragonFly Project
587116512SMatthew Dillon  * by Matthew Dillon <dillon@backplane.com>
687116512SMatthew Dillon  *
787116512SMatthew Dillon  * Redistribution and use in source and binary forms, with or without
887116512SMatthew Dillon  * modification, are permitted provided that the following conditions
987116512SMatthew Dillon  * are met:
1087116512SMatthew Dillon  *
1187116512SMatthew Dillon  * 1. Redistributions of source code must retain the above copyright
1287116512SMatthew Dillon  *    notice, this list of conditions and the following disclaimer.
1387116512SMatthew Dillon  * 2. Redistributions in binary form must reproduce the above copyright
1487116512SMatthew Dillon  *    notice, this list of conditions and the following disclaimer in
1587116512SMatthew Dillon  *    the documentation and/or other materials provided with the
1687116512SMatthew Dillon  *    distribution.
1787116512SMatthew Dillon  * 3. Neither the name of The DragonFly Project nor the names of its
1887116512SMatthew Dillon  *    contributors may be used to endorse or promote products derived
1987116512SMatthew Dillon  *    from this software without specific, prior written permission.
2087116512SMatthew Dillon  *
2187116512SMatthew Dillon  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2287116512SMatthew Dillon  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2387116512SMatthew Dillon  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
2487116512SMatthew Dillon  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
2587116512SMatthew Dillon  * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
2687116512SMatthew Dillon  * INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
2787116512SMatthew Dillon  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
2887116512SMatthew Dillon  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
2987116512SMatthew Dillon  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
3087116512SMatthew Dillon  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
3187116512SMatthew Dillon  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3287116512SMatthew Dillon  * SUCH DAMAGE.
3387116512SMatthew Dillon  */
3487116512SMatthew Dillon 
3587116512SMatthew Dillon #ifndef	_UPMAP_H_
3687116512SMatthew Dillon #define	_UPMAP_H_
3787116512SMatthew Dillon 
3887116512SMatthew Dillon #ifndef _SYS_TYPES_H_
3987116512SMatthew Dillon #include <sys/types.h>
4087116512SMatthew Dillon #endif
41*721505deSMatthew Dillon #ifndef _SYS_UPMAP_H_
42*721505deSMatthew Dillon #include <sys/upmap.h>
43*721505deSMatthew Dillon #endif
4487116512SMatthew Dillon 
4587116512SMatthew Dillon void __kpmap_map(void *datap, int *state, uint16_t type);
4687116512SMatthew Dillon void __upmap_map(void *datap, int *state, uint16_t type);
47*721505deSMatthew Dillon void __lpmap_map(void *datap, int *state, uint16_t type);
4887116512SMatthew Dillon int __ukp_spt(const char *fmt, va_list ap);
49*721505deSMatthew Dillon extern __thread ukpheader_t *__lpmap_headers TLS_ATTRIBUTE;
50*721505deSMatthew Dillon extern __thread uint32_t *__lpmap_blockallsigs TLS_ATTRIBUTE;
5187116512SMatthew Dillon 
5287116512SMatthew Dillon #endif
53