summaryrefslogtreecommitdiffstats
path: root/config/extattr-get-link.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-04-22 09:23:55 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-04-22 11:19:20 -0400
commit569e6758e26e23c27d94c0d132bf5e26ee5af862 (patch)
tree945d605388a524a196e96a351a8c59f7b51c6847 /config/extattr-get-link.c
parent75311e2f9aabd1e4775176e9adff5cd5f1fe42aa (diff)
downloadbfs-569e6758e26e23c27d94c0d132bf5e26ee5af862.tar.xz
config: Check for extattr_{get,list}_{file,link}()
This lets us implement -xattr on DragonFly BSD.
Diffstat (limited to 'config/extattr-get-link.c')
-rw-r--r--config/extattr-get-link.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/extattr-get-link.c b/config/extattr-get-link.c
new file mode 100644
index 0000000..c35be5b
--- /dev/null
+++ b/config/extattr-get-link.c
@@ -0,0 +1,10 @@
+// Copyright © Tavian Barnes <tavianator@tavianator.com>
+// SPDX-License-Identifier: 0BSD
+
+#include <stddef.h>
+#include <sys/types.h>
+#include <sys/extattr.h>
+
+int main(void) {
+ return extattr_get_link("link", EXTATTR_NAMESPACE_USER, "xattr", NULL, 0);
+}