compat.h revision 215144
1254721Semaste/*- 2254721Semaste * Copyright (c) 2009 Advanced Computing Technologies LLC 3254721Semaste * Written by: John H. Baldwin <jhb@FreeBSD.org> 4254721Semaste * All rights reserved. 5254721Semaste * 6254721Semaste * Redistribution and use in source and binary forms, with or without 7254721Semaste * modification, are permitted provided that the following conditions 8254721Semaste * are met: 9254721Semaste * 1. Redistributions of source code must retain the above copyright 10254721Semaste * notice, this list of conditions and the following disclaimer. 11254721Semaste * 2. Redistributions in binary form must reproduce the above copyright 12254721Semaste * notice, this list of conditions and the following disclaimer in the 13254721Semaste * documentation and/or other materials provided with the distribution. 14254721Semaste * 15254721Semaste * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16254721Semaste * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17254721Semaste * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18254721Semaste * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19254721Semaste * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20254721Semaste * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21254721Semaste * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22254721Semaste * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23254721Semaste * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24254721Semaste * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25254721Semaste * SUCH DAMAGE. 26254721Semaste * 27254721Semaste * $FreeBSD: head/lib/libc/include/compat.h 215144 2010-11-11 21:36:52Z dim $ 28254721Semaste */ 29254721Semaste 30254721Semaste/* 31254721Semaste * This file defines compatiblity symbol versions for old system calls. It 32269024Semaste * is included in all generated system call files. 33254721Semaste */ 34254721Semaste 35254721Semaste#ifndef __LIBC_COMPAT_H__ 36254721Semaste#define __LIBC_COMPAT_H__ 37254721Semaste 38254721Semaste#define __sym_compat(sym,impl,verid) \ 39254721Semaste .symver impl, sym@verid 40254721Semaste 41254721Semaste__sym_compat(__semctl, freebsd7___semctl, FBSD_1.0); 42254721Semaste__sym_compat(msgctl, freebsd7_msgctl, FBSD_1.0); 43254721Semaste__sym_compat(shmctl, freebsd7_shmctl, FBSD_1.0); 44254721Semaste 45254721Semaste#undef __sym_compat 46254721Semaste 47254721Semaste#endif /* __LIBC_COMPAT_H__ */ 48254721Semaste 49254721Semaste