audit_fcntl.h revision 191147
1191147Srwatson/*- 2191147Srwatson * Copyright (c) 2009 Apple Inc. 3191147Srwatson * All rights reserved. 4191147Srwatson * 5191147Srwatson * Redistribution and use in source and binary forms, with or without 6191147Srwatson * modification, are permitted provided that the following conditions 7191147Srwatson * are met: 8191147Srwatson * 1. Redistributions of source code must retain the above copyright 9191147Srwatson * notice, this list of conditions and the following disclaimer. 10191147Srwatson * 2. Redistributions in binary form must reproduce the above copyright 11191147Srwatson * notice, this list of conditions and the following disclaimer in the 12191147Srwatson * documentation and/or other materials provided with the distribution. 13191147Srwatson * 3. Neither the name of Apple Inc. ("Apple") nor the names of 14191147Srwatson * its contributors may be used to endorse or promote products derived 15191147Srwatson * from this software without specific prior written permission. 16191147Srwatson * 17191147Srwatson * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND 18191147Srwatson * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19191147Srwatson * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20191147Srwatson * ARE DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR 21191147Srwatson * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22191147Srwatson * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23191147Srwatson * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24191147Srwatson * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 25191147Srwatson * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 26191147Srwatson * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27191147Srwatson * POSSIBILITY OF SUCH DAMAGE. 28191147Srwatson * 29191147Srwatson * P4: //depot/projects/trustedbsd/openbsm/sys/bsm/audit_fcntl.h#2 30191147Srwatson * $FreeBSD: head/sys/bsm/audit_fcntl.h 191147 2009-04-16 20:17:32Z rwatson $ 31191147Srwatson */ 32191147Srwatson 33191147Srwatson#ifndef _BSM_AUDIT_FCNTL_H_ 34191147Srwatson#define _BSM_AUDIT_FCNTL_H_ 35191147Srwatson 36191147Srwatson/* 37191147Srwatson * Shared and Solaris-specific: (0-99). 38191147Srwatson */ 39191147Srwatson#define BSM_F_DUPFD 0 40191147Srwatson#define BSM_F_GETFD 1 41191147Srwatson#define BSM_F_SETFD 2 42191147Srwatson#define BSM_F_GETFL 3 43191147Srwatson#define BSM_F_SETFL 4 44191147Srwatson#define BSM_F_O_GETLK 5 /* Solaris-specific. */ 45191147Srwatson#define BSM_F_SETLK 6 46191147Srwatson#define BSM_F_SETLKW 7 47191147Srwatson#define BSM_F_CHKFL 8 /* Solaris-specific. */ 48191147Srwatson#define BSM_F_DUP2FD 9 /* FreeBSD/Solaris-specific. */ 49191147Srwatson#define BSM_F_ALLOCSP 10 /* Solaris-specific. */ 50191147Srwatson#define BSM_F_FREESP 11 /* Solaris-specific. */ 51191147Srwatson 52191147Srwatson#define BSM_F_ISSTREAM 13 /* Solaris-specific. */ 53191147Srwatson#define BSM_F_GETLK 14 54191147Srwatson#define BSM_F_PRIV 15 /* Solaris-specific. */ 55191147Srwatson#define BSM_F_NPRIV 16 /* Solaris-specific. */ 56191147Srwatson#define BSM_F_QUOTACTL 17 /* Solaris-specific. */ 57191147Srwatson#define BSM_F_BLOCKS 18 /* Solaris-specific. */ 58191147Srwatson#define BSM_F_BLKSIZE 19 /* Solaris-specific. */ 59191147Srwatson 60191147Srwatson#define BSM_F_GETOWN 23 61191147Srwatson#define BSM_F_SETOWN 24 62191147Srwatson#define BSM_F_REVOKE 25 /* Solaris-specific. */ 63191147Srwatson#define BSM_F_HASREMOTELOCKS 26 /* Solaris-specific. */ 64191147Srwatson#define BSM_F_FREESP64 27 /* Solaris-specific. */ 65191147Srwatson#define BSM_F_ALLOCSP64 28 /* Solaris-specific. */ 66191147Srwatson 67191147Srwatson#define BSM_F_GETLK64 33 /* Solaris-specific. */ 68191147Srwatson#define BSM_F_SETLK64 34 /* Solaris-specific. */ 69191147Srwatson#define BSM_F_SETLKW64 35 /* Solaris-specific. */ 70191147Srwatson 71191147Srwatson#define BSM_F_SHARE 40 /* Solaris-specific. */ 72191147Srwatson#define BSM_F_UNSHARE 41 /* Solaris-specific. */ 73191147Srwatson#define BSM_F_SETLK_NBMAND 42 /* Solaris-specific. */ 74191147Srwatson#define BSM_F_SHARE_NBMAND 43 /* Solaris-specific. */ 75191147Srwatson#define BSM_F_SETLK64_NBMAND 44 /* Solaris-specific. */ 76191147Srwatson#define BSM_F_GETXFL 45 /* Solaris-specific. */ 77191147Srwatson#define BSM_F_BADFD 46 /* Solaris-specific. */ 78191147Srwatson 79191147Srwatson/* 80191147Srwatson * FreeBSD-specific (100-199). 81191147Srwatson */ 82191147Srwatson#define BSM_F_OGETLK 107 /* FreeBSD-specific. */ 83191147Srwatson#define BSM_F_OSETLK 108 /* FreeBSD-specific. */ 84191147Srwatson#define BSM_F_OSETLKW 109 /* FreeBSD-specific. */ 85191147Srwatson 86191147Srwatson#define BSM_F_SETLK_REMOTE 114 /* FreeBSD-specific. */ 87191147Srwatson 88191147Srwatson/* 89191147Srwatson * Linux-specific (200-299). 90191147Srwatson */ 91191147Srwatson#define BSM_F_SETSIG 210 /* Linux-specific. */ 92191147Srwatson#define BSM_F_GETSIG 211 /* Linux-specific. */ 93191147Srwatson 94191147Srwatson/* 95191147Srwatson * Darwin-specific (300-399). 96191147Srwatson */ 97191147Srwatson#define BSM_F_CHKCLEAN 341 /* Darwin-specific. */ 98191147Srwatson#define BSM_F_PREALLOCATE 342 /* Darwin-specific. */ 99191147Srwatson#define BSM_F_SETSIZE 343 /* Darwin-specific. */ 100191147Srwatson#define BSM_F_RDADVISE 344 /* Darwin-specific. */ 101191147Srwatson#define BSM_F_RDAHEAD 345 /* Darwin-specific. */ 102191147Srwatson#define BSM_F_READBOOTSTRAP 346 /* Darwin-specific. */ 103191147Srwatson#define BSM_F_WRITEBOOTSTRAP 347 /* Darwin-specific. */ 104191147Srwatson#define BSM_F_NOCACHE 348 /* Darwin-specific. */ 105191147Srwatson#define BSM_F_LOG2PHYS 349 /* Darwin-specific. */ 106191147Srwatson#define BSM_F_GETPATH 350 /* Darwin-specific. */ 107191147Srwatson#define BSM_F_FULLFSYNC 351 /* Darwin-specific. */ 108191147Srwatson#define BSM_F_PATHPKG_CHECK 352 /* Darwin-specific. */ 109191147Srwatson#define BSM_F_FREEZE_FS 353 /* Darwin-specific. */ 110191147Srwatson#define BSM_F_THAW_FS 354 /* Darwin-specific. */ 111191147Srwatson#define BSM_F_GLOBAL_NOCACHE 355 /* Darwin-specific. */ 112191147Srwatson#define BSM_F_OPENFROM 356 /* Darwin-specific. */ 113191147Srwatson#define BSM_F_UNLINKFROM 357 /* Darwin-specific. */ 114191147Srwatson#define BSM_F_CHECK_OPENEVT 358 /* Darwin-specific. */ 115191147Srwatson#define BSM_F_ADDSIGS 359 /* Darwin-specific. */ 116191147Srwatson#define BSM_F_MARKDEPENDENCY 360 /* Darwin-specific. */ 117191147Srwatson 118191147Srwatson/* 119191147Srwatson * Darwin file system specific (400-499). 120191147Srwatson */ 121191147Srwatson#define BSM_F_FS_SPECIFIC_0 400 /* Darwin-fs-specific. */ 122191147Srwatson#define BSM_F_FS_SPECIFIC_1 401 /* Darwin-fs-specific. */ 123191147Srwatson#define BSM_F_FS_SPECIFIC_2 402 /* Darwin-fs-specific. */ 124191147Srwatson#define BSM_F_FS_SPECIFIC_3 403 /* Darwin-fs-specific. */ 125191147Srwatson#define BSM_F_FS_SPECIFIC_4 404 /* Darwin-fs-specific. */ 126191147Srwatson#define BSM_F_FS_SPECIFIC_5 405 /* Darwin-fs-specific. */ 127191147Srwatson#define BSM_F_FS_SPECIFIC_6 406 /* Darwin-fs-specific. */ 128191147Srwatson#define BSM_F_FS_SPECIFIC_7 407 /* Darwin-fs-specific. */ 129191147Srwatson#define BSM_F_FS_SPECIFIC_8 408 /* Darwin-fs-specific. */ 130191147Srwatson#define BSM_F_FS_SPECIFIC_9 409 /* Darwin-fs-specific. */ 131191147Srwatson#define BSM_F_FS_SPECIFIC_10 410 /* Darwin-fs-specific. */ 132191147Srwatson#define BSM_F_FS_SPECIFIC_11 411 /* Darwin-fs-specific. */ 133191147Srwatson#define BSM_F_FS_SPECIFIC_12 412 /* Darwin-fs-specific. */ 134191147Srwatson#define BSM_F_FS_SPECIFIC_13 413 /* Darwin-fs-specific. */ 135191147Srwatson#define BSM_F_FS_SPECIFIC_14 414 /* Darwin-fs-specific. */ 136191147Srwatson#define BSM_F_FS_SPECIFIC_15 415 /* Darwin-fs-specific. */ 137191147Srwatson 138191147Srwatson 139191147Srwatson#define BSM_F_UNKNOWN 0xFFFF 140191147Srwatson 141191147Srwatson#endif /* !_BSM_AUDIT_FCNTL_H_ */ 142