archive_platform_acl.h revision 315633
118334Speter/*- 218334Speter * Copyright (c) 2017 Martin Matuska 318334Speter * All rights reserved. 490075Sobrien * 590075Sobrien * Redistribution and use in source and binary forms, with or without 618334Speter * modification, are permitted provided that the following conditions 718334Speter * are met: 890075Sobrien * 1. Redistributions of source code must retain the above copyright 918334Speter * notice, this list of conditions and the following disclaimer. 1090075Sobrien * 2. Redistributions in binary form must reproduce the above copyright 1190075Sobrien * notice, this list of conditions and the following disclaimer in the 1290075Sobrien * documentation and/or other materials provided with the distribution. 1390075Sobrien * 1418334Speter * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR 1590075Sobrien * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1690075Sobrien * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1790075Sobrien * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, 1890075Sobrien * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 1918334Speter * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2018334Speter * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2190075Sobrien * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2290075Sobrien * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2390075Sobrien * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2418334Speter * 2518334Speter * $FreeBSD: vendor/libarchive/dist/libarchive/archive_platform_acl.h 315633 2017-03-20 11:12:31Z mm $ 2650397Sobrien */ 2752284Sobrien 2818334Speter/* !!ONLY FOR USE INTERNALLY TO LIBARCHIVE!! */ 2918334Speter 3018334Speter#ifndef ARCHIVE_PLATFORM_ACL_H_INCLUDED 3118334Speter#define ARCHIVE_PLATFORM_ACL_H_INCLUDED 3218334Speter 3318334Speter/* 3418334Speter * Determine what ACL types are supported 3518334Speter */ 3618334Speter#if ARCHIVE_ACL_FREEBSD || ARCHIVE_ACL_SUNOS || ARCHIVE_ACL_LIBACL 3718334Speter#define ARCHIVE_ACL_POSIX1E 1 3818334Speter#endif 3918334Speter 4052284Sobrien#if ARCHIVE_ACL_FREEBSD_NFS4 || ARCHIVE_ACL_SUNOS_NFS4 || \ 4118334Speter ARCHIVE_ACL_DARWIN || ARCHIVE_ACL_LIBRICHACL 4290075Sobrien#define ARCHIVE_ACL_NFS4 1 4390075Sobrien#endif 4490075Sobrien 4590075Sobrien#if ARCHIVE_ACL_POSIX1E || ARCHIVE_ACL_NFS4 4690075Sobrien#define ARCHIVE_ACL_SUPPORT 1 4790075Sobrien#endif 4818334Speter 4918334Speter#endif /* ARCHIVE_PLATFORM_ACL_H_INCLUDED */ 5018334Speter