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
This commit is contained in:
rwatson 2003-06-04 03:49:31 +00:00
parent 8123aee3dd
commit 6cfb05e1ef

View File

@ -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)