2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
9 * This file contains the lsetpag system call. (setpag is handled by the
10 * rmtsys layer and turned into either setpag or a remote call as is
11 * appropriate.) It is kept separate to allow for the creation of a simple
12 * shared library containing only setpag.
15 #include <afsconfig.h>
16 #include <afs/param.h>
20 #if !defined(AFS_AIX_ENV) && !defined(AFS_NT40_ENV)
21 # include <sys/syscall.h>
24 #include <afs/afs_args.h>
25 #include <afs/sys_prototypes.h>
27 #include "afssyscalls.h"
31 * in VRMIX, system calls look just like function calls, so we don't
32 * need to do anything!
36 #if defined(AFS_SGI_ENV)
38 #pragma weak xlsetpag = lsetpag
43 return (syscall(AFS_SETPAG));
46 #else /* AFS_SGI_ENV */
53 #ifdef AFS_LINUX20_ENV
56 rval = proc_afs_syscall(AFSCALL_SETPAG,0,0,0,0,&errcode);
60 errcode = syscall(AFS_SYSCALL, AFSCALL_SETPAG);
66 #elif defined(AFS_DARWIN80_ENV)
69 rval = ioctl_afs_syscall(AFSCALL_SETPAG,0,0,0,0,0,0,&errcode);
73 #elif defined(AFS_SUN511_ENV)
76 rval = ioctl_sun_afs_syscall(AFSCALL_SETPAG,0,0,0,0,0,0,&errcode);
81 errcode = syscall(AFS_SYSCALL, AFSCALL_SETPAG);
87 #endif /* !AFS_SGI_ENV */
88 #endif /* !AFS_AIX32_ENV */