add extended attributes constants on NetBSD
This commit is contained in:
parent
301790eecd
commit
1422cee067
|
@ -1038,6 +1038,7 @@ fn test_netbsd(target: &str) {
|
|||
"string.h",
|
||||
"sys/endian.h",
|
||||
"sys/exec_elf.h",
|
||||
"sys/xattr.h",
|
||||
"sys/extattr.h",
|
||||
"sys/file.h",
|
||||
"sys/ioctl.h",
|
||||
|
|
|
@ -1534,4 +1534,7 @@ vm_size_t
|
|||
wait4
|
||||
waitid
|
||||
dirname
|
||||
basename
|
||||
basename
|
||||
XATTR_CREATE
|
||||
XATTR_REPLACE
|
||||
EXTATTR_NAMESPACE_EMPTY
|
||||
|
|
|
@ -2315,6 +2315,12 @@ pub const _REG_RFLAGS: ::c_int = 23;
|
|||
pub const _REG_RSP: ::c_int = 24;
|
||||
pub const _REG_SS: ::c_int = 25;
|
||||
|
||||
// sys/xattr.h
|
||||
pub const XATTR_CREATE: ::c_int = 0x01;
|
||||
pub const XATTR_REPLACE: ::c_int = 0x02;
|
||||
// sys/extattr.h
|
||||
pub const EXTATTR_NAMESPACE_EMPTY: ::c_int = 0;
|
||||
|
||||
const_fn! {
|
||||
{const} fn _ALIGN(p: usize) -> usize {
|
||||
(p + _ALIGNBYTES) & !_ALIGNBYTES
|
||||
|
|
Loading…
Reference in a new issue