2000-11-04 10:01:08 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2000, International Business Machines Corporation and others.
|
|
|
|
* All Rights Reserved.
|
|
|
|
*
|
|
|
|
* This software has been released under the terms of the IBM Public
|
|
|
|
* License. For details, see the LICENSE file in the top-level source
|
|
|
|
* directory or online at http://www.openafs.org/dl/license10.html
|
|
|
|
*/
|
|
|
|
|
2001-07-05 17:20:00 +01:00
|
|
|
#include <afsconfig.h>
|
2001-07-12 21:58:15 +01:00
|
|
|
#include <afs/param.h>
|
2001-07-05 17:20:00 +01:00
|
|
|
|
|
|
|
|
2000-11-04 02:13:13 +00:00
|
|
|
#include <rx/xdr.h>
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <netdb.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <afs/stds.h>
|
|
|
|
#include <afs/vice.h>
|
|
|
|
#include <afs/venus.h>
|
|
|
|
#ifdef AFS_AIX32_ENV
|
|
|
|
#include <signal.h>
|
|
|
|
#endif
|
|
|
|
#undef VIRTUE
|
|
|
|
#undef VICE
|
|
|
|
#include "afs/prs_fs.h"
|
|
|
|
#include <afs/afsint.h>
|
|
|
|
#include <afs/cellconfig.h>
|
|
|
|
#include <afs/cmd.h>
|
|
|
|
#include <strings.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "AFS_component_version_number.c"
|
|
|
|
|
|
|
|
main(argc, argv)
|
2003-07-16 01:28:24 +01:00
|
|
|
int argc;
|
|
|
|
char **argv;
|
|
|
|
{
|
|
|
|
afs_int32 code = 0;
|
2000-11-04 02:13:13 +00:00
|
|
|
struct ViceIoctl blob;
|
2003-07-16 01:28:24 +01:00
|
|
|
|
2000-11-04 02:13:13 +00:00
|
|
|
blob.in = 0;
|
|
|
|
blob.out = 0;
|
|
|
|
blob.in_size = 0;
|
|
|
|
blob.out_size = 0;
|
|
|
|
code = pioctl(0, VIOC_GCPAGS, &blob, 1);
|
2003-07-16 01:28:24 +01:00
|
|
|
if (code)
|
2000-11-04 02:13:13 +00:00
|
|
|
perror("disable gcpags failed");
|
|
|
|
|
|
|
|
exit(code);
|
|
|
|
}
|