Path: blob/main/crypto/heimdal/lib/kafs/afssysdefs.h
34878 views
/*1* Copyright (c) 1995 - 2003 Kungliga Tekniska Högskolan2* (Royal Institute of Technology, Stockholm, Sweden).3* All rights reserved.4*5* Redistribution and use in source and binary forms, with or without6* modification, are permitted provided that the following conditions7* are met:8*9* 1. Redistributions of source code must retain the above copyright10* notice, this list of conditions and the following disclaimer.11*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* 3. Neither the name of the Institute nor the names of its contributors17* may be used to endorse or promote products derived from this software18* without specific prior written permission.19*20* THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND21* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE22* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE23* ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE24* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL25* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS26* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)27* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT28* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY29* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF30* SUCH DAMAGE.31*/3233/* $Id$ */3435/*36* This section is for machines using single entry point AFS syscalls!37* and/or38* This section is for machines using multiple entry point AFS syscalls!39*40* SunOS 4 is an example of single entry point and sgi of multiple41* entry point syscalls.42*/4344#if SunOS == 4045#define AFS_SYSCALL 3146#endif4748#if SunOS >= 50 && SunOS < 5749#define AFS_SYSCALL 10550#endif5152#if SunOS == 5753#define AFS_SYSCALL 7354#endif5556#if SunOS >= 5857#define AFS_SYSCALL 6558#endif5960#if defined(__hpux)61#define AFS_SYSCALL 5062#define AFS_SYSCALL2 4963#define AFS_SYSCALL3 4864#endif6566#if defined(_AIX)67/* _AIX is too weird */68#endif6970#if defined(__sgi)71#define AFS_PIOCTL (64+1000)72#define AFS_SETPAG (65+1000)73#endif7475#if defined(__osf__)76#define AFS_SYSCALL 23277#define AFS_SYSCALL2 25878#endif7980#if defined(__ultrix)81#define AFS_SYSCALL 3182#endif8384#if defined(__FreeBSD__)85#if __FreeBSD_version >= 50000086#define AFS_SYSCALL 33987#else88#define AFS_SYSCALL 21089#endif90#endif /* __FreeBSD__ */9192#ifdef __DragonFly__93#ifndef AFS_SYSCALL94#define AFS_SYSCALL 33995#endif96#endif9798#ifdef __OpenBSD__99#define AFS_SYSCALL 208100#endif101102#if defined(__NetBSD__)103#define AFS_SYSCALL 210104#endif105106#ifdef __APPLE__ /* MacOS X */107#define AFS_SYSCALL 230108#endif109110#ifdef SYS_afs_syscall111#define AFS_SYSCALL3 SYS_afs_syscall112#endif113114115