From f603fe84cbbaaabc09eb86b77ef119a963b10262 Mon Sep 17 00:00:00 2001 From: rwatson Date: Wed, 4 Jun 2003 03:49:31 +0000 Subject: Add system calls to explicitly list extended attributes on a file/directory/link, rather than using a less explicit hack on the extattr retrieval API: extattr_list_fd() extattr_list_file() extattr_list_link() The existing API was counter-intuitive, and poorly documented. The prototypes for these system calls are identical to extattr_get_*(), but without a specific attribute name to leave NULL. Pointed out by: Dominic Giampaolo Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories --- sys/kern/syscalls.master | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/kern/syscalls.master') diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index cfb84f0..31fb722 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -631,6 +631,12 @@ 434 MSTD BSD { int _umtx_lock(struct umtx *umtx); } 435 MSTD BSD { int _umtx_unlock(struct umtx *umtx); } 436 MSTD BSD { int jail_attach(int jid); } +437 STD BSD { ssize_t extattr_list_fd(int fd, int attrnamespace, \ + void *data, size_t nbytes); } +438 STD BSD { ssize_t extattr_list_file(const char *path, \ + int attrnamespace, void *data, size_t nbytes); } +439 STD BSD { ssize_t extattr_list_link(const char *path, \ + int attrnamespace, void *data, size_t nbytes); } ; Please copy any additions and changes to the following compatability tables: ; sys/ia64/ia32/syscalls.master (take a best guess) -- cgit v1.1