diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-06-04 03:49:31 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-06-04 03:49:31 +0000 |
commit | f603fe84cbbaaabc09eb86b77ef119a963b10262 (patch) | |
tree | 2e1434e139b2a240aa6b92309a1749025d051653 /sys/kern/syscalls.master | |
parent | 490170d1ea42e4316457c9c730a5796e25f3d51b (diff) | |
download | FreeBSD-src-f603fe84cbbaaabc09eb86b77ef119a963b10262.zip FreeBSD-src-f603fe84cbbaaabc09eb86b77ef119a963b10262.tar.gz |
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 <dbg@apple.com>
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/kern/syscalls.master')
-rw-r--r-- | sys/kern/syscalls.master | 6 |
1 files changed, 6 insertions, 0 deletions
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) |