Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / sys / pioctl_nt.h
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
4 *
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
8 */
9
10 #ifndef OPENAFS_AFS_PIOCTL_H
11 #define OPENAFS_AFS_PIOCTL_H
12
13 /* define the basic DeviceIoControl structure for communicating with the
14 * cache manager.
15 */
16
17 /* looks like pioctl block from the Unix world */
18 typedef struct ViceIoctl {
19 long in_size;
20 long out_size;
21 void *in;
22 void *out;
23 } viceIoctl_t;
24
25 /* Fake error code since NT errno.h doesn't define it */
26 #include <afs/errmap_nt.h>
27
28 extern int pioctl(char *pathp, afs_int32 opcode, struct ViceIoctl *blob,
29 afs_int32 follow);
30
31 extern int pioctl_utf8(char *pathp, afs_int32 opcode, struct ViceIoctl *blob,
32 afs_int32 follow);
33
34 #endif /* OPENAFS_AFS_PIOCTL_H */