Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linux/linux_xattr.h
- This file was added.
/*- | |||||
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD | |||||
pfgUnsubmitted Done Inline Actionspfg: ```
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
``` | |||||
* | |||||
Not Done Inline ActionsPlease add SPDX ID tags here. pfg: Please add SPDX ID tags here.
The committers guide was updated :). | |||||
* Copyright (c) 2017 Fedor Uporov | |||||
* All rights reserved. | |||||
* | |||||
* Redistribution and use in source and binary forms, with or without | |||||
* modification, are permitted provided that the following conditions | |||||
* are met: | |||||
* 1. Redistributions of source code must retain the above copyright | |||||
* notice, this list of conditions and the following disclaimer | |||||
* in this position and unchanged. | |||||
* 2. Redistributions in binary form must reproduce the above copyright | |||||
* notice, this list of conditions and the following disclaimer in the | |||||
* documentation and/or other materials provided with the distribution. | |||||
* | |||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | |||||
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | |||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | |||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | |||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||||
* | |||||
* $FreeBSD$ | |||||
*/ | |||||
Done Inline ActionsThis should be defined in terms of the Linux ABI, not a FreeBSD constant. cem: This should be defined in terms of the Linux ABI, not a FreeBSD constant. | |||||
#define XATTR_NAME_MAX 255 /* Chars in an xattr name */ | |||||
#define XATTR_SIZE_MAX 65536 /* Size of an extended attribute value (64k). */ | |||||
#define XATTR_NAMESPACE_SECURITY_STRING "security" | |||||
#define LINUX_BSD_USER_NAMESPACE EXTATTR_NAMESPACE_USER | |||||
static const char linux_xattr_name_separator = '.'; | |||||
#define XATTR_CREATE 0x1 /* Set value, fail if attr already exists. */ | |||||
#define XATTR_REPLACE 0x2 /* Set value, fail if attr does not exist. */ |