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>
21 #include <afs/afs_args.h>
22 #if defined(AFS_SUN_ENV) && !defined(AFS_SUN5_ENV)
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
54 rval = proc_afs_syscall(AFSCALL_SETPAG,0,0,0,0,&errcode);
57 errcode = syscall(AFS_SYSCALL, AFSCALL_SETPAG);
59 errcode = syscall(AFS_SYSCALL, AFSCALL_SETPAG);
65 #endif /* !AFS_SGI_ENV */
66 #endif /* !AFS_AIX32_ENV */