/*-1* SPDX-License-Identifier: BSD-2-Clause2*3* Copyright (c) 2009 Hudson River Trading LLC4* Written by: John H. Baldwin <[email protected]>5* All rights reserved.6*7* Redistribution and use in source and binary forms, with or without8* modification, are permitted provided that the following conditions9* are met:10* 1. Redistributions of source code must retain the above copyright11* notice, this list of conditions and the following disclaimer.12* 2. Redistributions in binary form must reproduce the above copyright13* notice, this list of conditions and the following disclaimer in the14* documentation and/or other materials provided with the distribution.15*16* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND17* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE18* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE19* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE20* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL21* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS22* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)23* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT24* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY25* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF26* SUCH DAMAGE.27*/2829/*30* This file defines compatibility symbol versions for old system calls. It31* is included in all generated system call files.32*/3334#ifndef __LIBC_COMPAT_H__35#define __LIBC_COMPAT_H__3637#define __sym_compat(sym, impl, verid) \38.symver impl, sym@verid3940#ifndef NO_COMPAT741__sym_compat(__semctl, freebsd7___semctl, FBSD_1.0);42__sym_compat(msgctl, freebsd7_msgctl, FBSD_1.0);43__sym_compat(shmctl, freebsd7_shmctl, FBSD_1.0);44#endif4546__sym_compat(nfstat, freebsd11_nfstat, FBSD_1.0);47__sym_compat(nlstat, freebsd11_nlstat, FBSD_1.0);48__sym_compat(nstat, freebsd11_nstat, FBSD_1.0);4950__sym_compat(fhstat, freebsd11_fhstat, FBSD_1.0);51__sym_compat(fstat, freebsd11_fstat, FBSD_1.0);52__sym_compat(fstatat, freebsd11_fstatat, FBSD_1.1);53__sym_compat(lstat, freebsd11_lstat, FBSD_1.0);54__sym_compat(stat, freebsd11_stat, FBSD_1.0);5556__sym_compat(getdents, freebsd11_getdents, FBSD_1.0);57__sym_compat(getdirentries, freebsd11_getdirentries, FBSD_1.0);5859__sym_compat(getfsstat, freebsd11_getfsstat, FBSD_1.0);60__sym_compat(fhstatfs, freebsd11_fhstatfs, FBSD_1.0);61__sym_compat(fstatfs, freebsd11_fstatfs, FBSD_1.0);62__sym_compat(statfs, freebsd11_statfs, FBSD_1.0);6364__sym_compat(mknod, freebsd11_mknod, FBSD_1.0);65__sym_compat(mknodat, freebsd11_mknodat, FBSD_1.1);6667__sym_compat(kevent, freebsd11_kevent, FBSD_1.0);6869__sym_compat(swapoff, freebsd13_swapoff, FBSD_1.0);7071__sym_compat(getgroups, freebsd14_getgroups, FBSD_1.0);72__sym_compat(setgroups, freebsd14_setgroups, FBSD_1.0);7374#undef __sym_compat7576#define __weak_reference(sym,alias) \77.weak alias;.equ alias,sym7879#undef __weak_reference8081#endif /* __LIBC_COMPAT_H__ */828384