PageRenderTime 58ms CodeModel.GetById 51ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/core/10.4/fusefs/fuse_kludges.h

http://macfuse.googlecode.com/
C++ Header | 49 lines | 32 code | 13 blank | 4 comment | 0 complexity | cb4e4c0c4df6a08779f87caacbfc5632 MD5 | raw file
 1/*
 2 * Copyright (C) 2006-2008 Google. All Rights Reserved.
 3 * Amit Singh <singh@>
 4 */
 5
 6#ifndef _FUSE_KLUDGES_H_
 7#define _FUSE_KLUDGES_H_
 8
 9#include "fuse.h"
10#include "fuse_sysctl.h"
11
12#include <sys/cdefs.h>
13#include <sys/mount.h>
14#include <sys/types.h>
15#include <sys/vnode.h>
16
17#if M_MACFUSE_ENABLE_DSELECT
18
19struct fuse_selinfo {
20    unsigned char __data[32];
21};
22
23#define POLLIN          0x0001          /* any readable data available */
24#define POLLPRI         0x0002          /* OOB/Urgent readable data */
25#define POLLOUT         0x0004          /* file descriptor is writeable */
26#define POLLRDNORM      0x0040          /* non-OOB/URG data available */
27#define POLLWRNORM      POLLOUT         /* no write type differentiation */
28#define POLLRDBAND      0x0080          /* OOB/Urgent readable data */
29#define POLLWRBAND      0x0100          /* OOB/Urgent data can be written */
30
31#endif /* M_MACFUSE_ENABLE_DSELECT */
32
33#if M_MACFUSE_ENABLE_EXCHANGE
34
35struct fuse_kludge_vnode {
36    char    dummy0[100];
37    char   *v_name;
38    vnode_t v_parent;
39} __attribute__((packed));
40
41extern void fuse_kludge_exchange(vnode_t v1, vnode_t v2);
42
43#endif /* M_MACFUSE_ENABLE_EXCHANGE */
44
45#ifndef LK_NOWAIT
46#define LK_NOWAIT 0x00000010
47#endif
48
49#endif /* _FUSE_KLUDGES_H_ */