afssysdefs.h revision 120945
1251875Speter/* 2251875Speter * Copyright (c) 1995 - 2003 Kungliga Tekniska H�gskolan 3251875Speter * (Royal Institute of Technology, Stockholm, Sweden). 4251875Speter * All rights reserved. 5251875Speter * 6251875Speter * Redistribution and use in source and binary forms, with or without 7251875Speter * modification, are permitted provided that the following conditions 8251875Speter * are met: 9251875Speter * 10251875Speter * 1. Redistributions of source code must retain the above copyright 11251875Speter * notice, this list of conditions and the following disclaimer. 12251875Speter * 13251875Speter * 2. Redistributions in binary form must reproduce the above copyright 14251875Speter * notice, this list of conditions and the following disclaimer in the 15251875Speter * documentation and/or other materials provided with the distribution. 16251875Speter * 17251875Speter * 3. Neither the name of the Institute nor the names of its contributors 18251875Speter * may be used to endorse or promote products derived from this software 19251875Speter * without specific prior written permission. 20251875Speter * 21251875Speter * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 22251875Speter * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23251875Speter * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24251875Speter * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 25251875Speter * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26251875Speter * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27251875Speter * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28251875Speter * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29251875Speter * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30251875Speter * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31251875Speter * SUCH DAMAGE. 32251875Speter */ 33251875Speter 34251875Speter/* $Id: afssysdefs.h,v 1.26 2003/02/08 22:55:55 assar Exp $ */ 35251875Speter 36251875Speter/* 37251875Speter * This section is for machines using single entry point AFS syscalls! 38251875Speter * and/or 39251875Speter * This section is for machines using multiple entry point AFS syscalls! 40251875Speter * 41251875Speter * SunOS 4 is an example of single entry point and sgi of multiple 42251875Speter * entry point syscalls. 43251875Speter */ 44251875Speter 45251875Speter#if SunOS == 40 46251875Speter#define AFS_SYSCALL 31 47251875Speter#endif 48251875Speter 49251875Speter#if SunOS >= 50 && SunOS < 57 50251875Speter#define AFS_SYSCALL 105 51251875Speter#endif 52251875Speter 53251875Speter#if SunOS == 57 54251875Speter#define AFS_SYSCALL 73 55251875Speter#endif 56251875Speter 57251875Speter#if SunOS >= 58 58251875Speter#define AFS_SYSCALL 65 59251875Speter#endif 60251875Speter 61251875Speter#if defined(__hpux) 62251875Speter#define AFS_SYSCALL 50 63251875Speter#define AFS_SYSCALL2 49 64251875Speter#define AFS_SYSCALL3 48 65251875Speter#endif 66251875Speter 67251875Speter#if defined(_AIX) 68251875Speter/* _AIX is too weird */ 69251875Speter#endif 70251875Speter 71251875Speter#if defined(__sgi) 72251875Speter#define AFS_PIOCTL (64+1000) 73251875Speter#define AFS_SETPAG (65+1000) 74#endif 75 76#if defined(__osf__) 77#define AFS_SYSCALL 232 78#define AFS_SYSCALL2 258 79#endif 80 81#if defined(__ultrix) 82#define AFS_SYSCALL 31 83#endif 84 85#if defined(__FreeBSD__) 86#if __FreeBSD_version >= 500000 87#define AFS_SYSCALL 339 88#else 89#define AFS_SYSCALL 210 90#endif 91#endif /* __FreeBSD__ */ 92 93#ifdef __OpenBSD__ 94#define AFS_SYSCALL 208 95#endif 96 97#if defined(__NetBSD__) 98#define AFS_SYSCALL 210 99#endif 100 101#ifdef __APPLE__ /* MacOS X */ 102#define AFS_SYSCALL 230 103#endif 104 105#ifdef SYS_afs_syscall 106#define AFS_SYSCALL3 SYS_afs_syscall 107#endif 108