/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. #ifndef _FUSE_KLUDGES_H_
  6. #define _FUSE_KLUDGES_H_
  7. #include "fuse.h"
  8. #include "fuse_sysctl.h"
  9. #include <sys/cdefs.h>
  10. #include <sys/mount.h>
  11. #include <sys/types.h>
  12. #include <sys/vnode.h>
  13. #if M_MACFUSE_ENABLE_DSELECT
  14. struct fuse_selinfo {
  15. unsigned char __data[32];
  16. };
  17. #define POLLIN 0x0001 /* any readable data available */
  18. #define POLLPRI 0x0002 /* OOB/Urgent readable data */
  19. #define POLLOUT 0x0004 /* file descriptor is writeable */
  20. #define POLLRDNORM 0x0040 /* non-OOB/URG data available */
  21. #define POLLWRNORM POLLOUT /* no write type differentiation */
  22. #define POLLRDBAND 0x0080 /* OOB/Urgent readable data */
  23. #define POLLWRBAND 0x0100 /* OOB/Urgent data can be written */
  24. #endif /* M_MACFUSE_ENABLE_DSELECT */
  25. #if M_MACFUSE_ENABLE_EXCHANGE
  26. struct fuse_kludge_vnode {
  27. char dummy0[100];
  28. char *v_name;
  29. vnode_t v_parent;
  30. } __attribute__((packed));
  31. extern void fuse_kludge_exchange(vnode_t v1, vnode_t v2);
  32. #endif /* M_MACFUSE_ENABLE_EXCHANGE */
  33. #ifndef LK_NOWAIT
  34. #define LK_NOWAIT 0x00000010
  35. #endif
  36. #endif /* _FUSE_KLUDGES_H_ */