NetBSD imported FreeBSD's acl functions ~5 years ago. This updates some
internal documentation.

I'll have a look through the acl sources to see if anything needs
updating, but I think most of it uses '#if HAVE_ACL_*' instead of
checking for platform like '#if __FreeBSD__'. So I think it should be
fine.

Collin

>From 01c06a1aadcb23dee09189504a02825dd1092c42 Mon Sep 17 00:00:00 2001
From: Collin Funk <collin.fu...@gmail.com>
Date: Fri, 28 Mar 2025 14:58:31 -0700
Subject: [PATCH] doc: Document NetBSD acl functions.

* doc/acl-resources.txt: Document that NetBSD supports all ACL functions
that FreeBSD supports.
---
 ChangeLog             |  6 +++++
 doc/acl-resources.txt | 53 ++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 58 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 53fa2eb158..9f0f64aa6d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-03-28  Collin Funk  <collin.fu...@gmail.com>
+
+	doc: Document NetBSD acl functions.
+	* doc/acl-resources.txt: Document that NetBSD supports all ACL functions
+	that FreeBSD supports.
+
 2025-03-27  Simon Josefsson  <si...@josefsson.org>
 
 	bootstrap: Improve "make dist" tarball reproducability.
diff --git a/doc/acl-resources.txt b/doc/acl-resources.txt
index 06fce7e1ff..da66e69b60 100644
--- a/doc/acl-resources.txt
+++ b/doc/acl-resources.txt
@@ -177,7 +177,58 @@ Utilities:
 
 NetBSD ACLs
 
-Not available.
+Manual pages:
+  https://man.netbsd.org/
+Includes:
+  <sys/acl.h>
+Library:
+  none needed
+Functions:
+  acl_add_perm
+  acl_calc_mask
+  acl_clear_perms
+  acl_copy_entry
+  acl_copy_ext
+  acl_copy_int
+  acl_create_entry
+  acl_delete_entry
+  acl_delete_fd_np
+  acl_delete_file_np
+  acl_delete_link_np
+  acl_delete_def_file
+  acl_delete_def_link_np
+  acl_delete_perm
+  acl_dup
+  acl_free
+  acl_from_text
+  acl_get
+  acl_get_entry
+  acl_get_fd
+  acl_get_fd_np
+  acl_get_file
+  acl_get_link_np
+  acl_get_perm_np
+  acl_get_permset
+  acl_get_qualifier
+  acl_get_tag_type
+  acl_init
+  acl_set
+  acl_set_fd
+  acl_set_fd_np
+  acl_set_file
+  acl_set_link_np
+  acl_set_permset
+  acl_set_qualifier
+  acl_set_tag_type
+  acl_size
+  acl_to_text
+  acl_valid
+  acl_valid_fd_np
+  acl_valid_file_np
+  acl_valid_link_np
+Utilities:
+  getfacl
+  setfacl
 
 
 OpenBSD ACLs
-- 
2.49.0

Reply via email to