xref: /netbsd-src/sys/compat/linux/common/linux_prctl.h (revision eab380320695b8901777f834601151f48dd29933)
1*eab38032Sriastradh /*	$NetBSD: linux_prctl.h,v 1.5 2024/10/01 16:41:29 riastradh Exp $ */
289647c7cSmanu 
389647c7cSmanu /*-
489647c7cSmanu  * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved.
589647c7cSmanu  *
689647c7cSmanu  * Redistribution and use in source and binary forms, with or without
789647c7cSmanu  * modification, are permitted provided that the following conditions
889647c7cSmanu  * are met:
989647c7cSmanu  * 1. Redistributions of source code must retain the above copyright
1089647c7cSmanu  *    notice, this list of conditions and the following disclaimer.
1189647c7cSmanu  * 2. Redistributions in binary form must reproduce the above copyright
1289647c7cSmanu  *    notice, this list of conditions and the following disclaimer in the
1389647c7cSmanu  *    documentation and/or other materials provided with the distribution.
1489647c7cSmanu  * 3. All advertising materials mentioning features or use of this software
1589647c7cSmanu  *    must display the following acknowledgement:
1689647c7cSmanu  *	This product includes software developed by Emmanuel Dreyfus
1789647c7cSmanu  * 4. The name of the author may not be used to endorse or promote
1889647c7cSmanu  *    products derived from this software without specific prior written
1989647c7cSmanu  *    permission.
2089647c7cSmanu  *
2189647c7cSmanu  * THIS SOFTWARE IS PROVIDED BY THE THE AUTHOR AND CONTRIBUTORS ``AS IS''
2289647c7cSmanu  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
2389647c7cSmanu  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2489647c7cSmanu  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
2589647c7cSmanu  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2689647c7cSmanu  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2789647c7cSmanu  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2889647c7cSmanu  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2989647c7cSmanu  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
3089647c7cSmanu  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3189647c7cSmanu  * POSSIBILITY OF SUCH DAMAGE.
3289647c7cSmanu  */
3389647c7cSmanu 
3489647c7cSmanu #ifndef _LINUX_PRCTL_H
3589647c7cSmanu #define _LINUX_PRCTL_H
3689647c7cSmanu 
37100a3398Sandvar /* arch independent prctl(2): not yet implemented */
3889647c7cSmanu 
3989647c7cSmanu /* arch specific arch_prctl(2): only on amd64 so far */
4089647c7cSmanu #if defined(__amd64__)
4189647c7cSmanu #include <compat/linux/arch/amd64/linux_prctl.h>
4289647c7cSmanu #endif
4389647c7cSmanu 
4489647c7cSmanu #endif /* !_LINUX_PRCTL_H */
45