From 8d1d5878f983c30d8849cbee1143124f37131f2c Mon Sep 17 00:00:00 2001 From: rodrigc Date: Fri, 19 Aug 2005 12:17:47 +0000 Subject: [PATCH] Update man page to reflect the fact that VOP_LISTEXTATTR does not return a list of ASCII NUL terminated strings. Instead, a list of attribute names is returned, where each list entry consists of one byte for the name length, followed by the name, without a terminating ASCII NUL. This in similar to change 1.17 to extattr_get_file.2 Reviewed by: rwatson, ru --- share/man/man9/VOP_LISTEXTATTR.9 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/share/man/man9/VOP_LISTEXTATTR.9 b/share/man/man9/VOP_LISTEXTATTR.9 index 8c4a6522c606..4c8b744efcfa 100644 --- a/share/man/man9/VOP_LISTEXTATTR.9 +++ b/share/man/man9/VOP_LISTEXTATTR.9 @@ -30,7 +30,7 @@ .\" .\" $FreeBSD$ .\" -.Dd June 5, 2003 +.Dd August 19, 2005 .Os .Dt VOP_LISTEXTATTR 9 .Sh NAME @@ -62,14 +62,16 @@ Integer constant indicating which extended attribute namespace the attribute name is present in. .It Fa uio The location of the data to be read. +The resulting data will be a list of attribute names. +Each list entry consists of a single byte containing the length of +the attribute name, followed by the attribute name. +The attribute name is not terminated by +.Tn ASCII +.Dv NUL . .It Fa size If not .Dv NULL , on return it will contain the number of bytes required to read the list. -The resulting data will be an -.Tn ASCII -.Dv NUL Ns --separated list of strings. In most cases .Fa uio will be