audit_fcntl.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. /*-
  2. * SPDX-License-Identifier: BSD-3-Clause
  3. *
  4. * Copyright (c) 2009 Apple Inc.
  5. * All rights reserved.
  6. *
  7. * Redistribution and use in source and binary forms, with or without
  8. * modification, are permitted provided that the following conditions
  9. * are met:
  10. * 1. Redistributions of source code must retain the above copyright
  11. * notice, this list of conditions and the following disclaimer.
  12. * 2. Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in the
  14. * documentation and/or other materials provided with the distribution.
  15. * 3. Neither the name of Apple Inc. ("Apple") nor the names of
  16. * its contributors may be used to endorse or promote products derived
  17. * from this software without specific prior written permission.
  18. *
  19. * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND
  20. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  21. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  22. * ARE DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR
  23. * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  24. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  25. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  26. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  27. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
  28. * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  29. * POSSIBILITY OF SUCH DAMAGE.
  30. *
  31. * $FreeBSD$
  32. */
  33. #ifndef _BSM_AUDIT_FCNTL_H_
  34. #define _BSM_AUDIT_FCNTL_H_
  35. /*
  36. * Shared and Solaris-specific: (0-99).
  37. */
  38. #define BSM_F_DUPFD 0
  39. #define BSM_F_GETFD 1
  40. #define BSM_F_SETFD 2
  41. #define BSM_F_GETFL 3
  42. #define BSM_F_SETFL 4
  43. #define BSM_F_O_GETLK 5 /* Solaris-specific. */
  44. #define BSM_F_SETLK 6
  45. #define BSM_F_SETLKW 7
  46. #define BSM_F_CHKFL 8 /* Solaris-specific. */
  47. #define BSM_F_DUP2FD 9 /* FreeBSD/Solaris-specific. */
  48. #define BSM_F_ALLOCSP 10 /* Solaris-specific. */
  49. #define BSM_F_FREESP 11 /* Solaris-specific. */
  50. #define BSM_F_ISSTREAM 13 /* Solaris-specific. */
  51. #define BSM_F_GETLK 14
  52. #define BSM_F_PRIV 15 /* Solaris-specific. */
  53. #define BSM_F_NPRIV 16 /* Solaris-specific. */
  54. #define BSM_F_QUOTACTL 17 /* Solaris-specific. */
  55. #define BSM_F_BLOCKS 18 /* Solaris-specific. */
  56. #define BSM_F_BLKSIZE 19 /* Solaris-specific. */
  57. #define BSM_F_GETOWN 23
  58. #define BSM_F_SETOWN 24
  59. #define BSM_F_REVOKE 25 /* Solaris-specific. */
  60. #define BSM_F_HASREMOTELOCKS 26 /* Solaris-specific. */
  61. #define BSM_F_FREESP64 27 /* Solaris-specific. */
  62. #define BSM_F_ALLOCSP64 28 /* Solaris-specific. */
  63. #define BSM_F_GETLK64 33 /* Solaris-specific. */
  64. #define BSM_F_SETLK64 34 /* Solaris-specific. */
  65. #define BSM_F_SETLKW64 35 /* Solaris-specific. */
  66. #define BSM_F_SHARE 40 /* Solaris-specific. */
  67. #define BSM_F_UNSHARE 41 /* Solaris-specific. */
  68. #define BSM_F_SETLK_NBMAND 42 /* Solaris-specific. */
  69. #define BSM_F_SHARE_NBMAND 43 /* Solaris-specific. */
  70. #define BSM_F_SETLK64_NBMAND 44 /* Solaris-specific. */
  71. #define BSM_F_GETXFL 45 /* Solaris-specific. */
  72. #define BSM_F_BADFD 46 /* Solaris-specific. */
  73. /*
  74. * FreeBSD-specific (100-199).
  75. */
  76. #define BSM_F_OGETLK 107 /* FreeBSD-specific. */
  77. #define BSM_F_OSETLK 108 /* FreeBSD-specific. */
  78. #define BSM_F_OSETLKW 109 /* FreeBSD-specific. */
  79. #define BSM_F_SETLK_REMOTE 114 /* FreeBSD-specific. */
  80. /*
  81. * Linux-specific (200-299).
  82. */
  83. #define BSM_F_SETSIG 210 /* Linux-specific. */
  84. #define BSM_F_GETSIG 211 /* Linux-specific. */
  85. /*
  86. * Darwin-specific (300-399).
  87. */
  88. #define BSM_F_CHKCLEAN 341 /* Darwin-specific. */
  89. #define BSM_F_PREALLOCATE 342 /* Darwin-specific. */
  90. #define BSM_F_SETSIZE 343 /* Darwin-specific. */
  91. #define BSM_F_RDADVISE 344 /* Darwin-specific. */
  92. #define BSM_F_RDAHEAD 345 /* Darwin-specific. */
  93. #define BSM_F_READBOOTSTRAP 346 /* Darwin-specific. */
  94. #define BSM_F_WRITEBOOTSTRAP 347 /* Darwin-specific. */
  95. #define BSM_F_NOCACHE 348 /* Darwin-specific. */
  96. #define BSM_F_LOG2PHYS 349 /* Darwin-specific. */
  97. #define BSM_F_GETPATH 350 /* Darwin-specific. */
  98. #define BSM_F_FULLFSYNC 351 /* Darwin-specific. */
  99. #define BSM_F_PATHPKG_CHECK 352 /* Darwin-specific. */
  100. #define BSM_F_FREEZE_FS 353 /* Darwin-specific. */
  101. #define BSM_F_THAW_FS 354 /* Darwin-specific. */
  102. #define BSM_F_GLOBAL_NOCACHE 355 /* Darwin-specific. */
  103. #define BSM_F_OPENFROM 356 /* Darwin-specific. */
  104. #define BSM_F_UNLINKFROM 357 /* Darwin-specific. */
  105. #define BSM_F_CHECK_OPENEVT 358 /* Darwin-specific. */
  106. #define BSM_F_ADDSIGS 359 /* Darwin-specific. */
  107. #define BSM_F_MARKDEPENDENCY 360 /* Darwin-specific. */
  108. /*
  109. * Darwin file system specific (400-499).
  110. */
  111. #define BSM_F_FS_SPECIFIC_0 400 /* Darwin-fs-specific. */
  112. #define BSM_F_FS_SPECIFIC_1 401 /* Darwin-fs-specific. */
  113. #define BSM_F_FS_SPECIFIC_2 402 /* Darwin-fs-specific. */
  114. #define BSM_F_FS_SPECIFIC_3 403 /* Darwin-fs-specific. */
  115. #define BSM_F_FS_SPECIFIC_4 404 /* Darwin-fs-specific. */
  116. #define BSM_F_FS_SPECIFIC_5 405 /* Darwin-fs-specific. */
  117. #define BSM_F_FS_SPECIFIC_6 406 /* Darwin-fs-specific. */
  118. #define BSM_F_FS_SPECIFIC_7 407 /* Darwin-fs-specific. */
  119. #define BSM_F_FS_SPECIFIC_8 408 /* Darwin-fs-specific. */
  120. #define BSM_F_FS_SPECIFIC_9 409 /* Darwin-fs-specific. */
  121. #define BSM_F_FS_SPECIFIC_10 410 /* Darwin-fs-specific. */
  122. #define BSM_F_FS_SPECIFIC_11 411 /* Darwin-fs-specific. */
  123. #define BSM_F_FS_SPECIFIC_12 412 /* Darwin-fs-specific. */
  124. #define BSM_F_FS_SPECIFIC_13 413 /* Darwin-fs-specific. */
  125. #define BSM_F_FS_SPECIFIC_14 414 /* Darwin-fs-specific. */
  126. #define BSM_F_FS_SPECIFIC_15 415 /* Darwin-fs-specific. */
  127. #define BSM_F_UNKNOWN 0xFFFF
  128. #endif /* !_BSM_AUDIT_FCNTL_H_ */