View | Details | Raw Unified | Return to bug 108142
Collapse All | Expand All

(-)src/lib/libc/sys/extattr_get_file.2 (-5 / +12 lines)
Lines 120-125 is Link Here
120
.Dv NULL
120
.Dv NULL
121
in a call to
121
in a call to
122
.Fn extattr_get_file
122
.Fn extattr_get_file
123
and
124
.Fn extattr_list_file
123
then the size of defined extended attribute data will be returned, rather
125
then the size of defined extended attribute data will be returned, rather
124
than the quantity read, permitting applications to test the size of the
126
than the quantity read, permitting applications to test the size of the
125
data without performing a read.
127
data without performing a read.
Lines 134-141 they do not follow symlinks. Link Here
134
The
136
The
135
.Fn extattr_get_fd ,
137
.Fn extattr_get_fd ,
136
.Fn extattr_set_fd ,
138
.Fn extattr_set_fd ,
139
.Fn extattr_delete_fd ,
137
and
140
and
138
.Fn extattr_delete_fd
141
.Fn extattr_list_fd ,
139
calls are identical to their
142
calls are identical to their
140
.Qq Li _file
143
.Qq Li _file
141
counterparts except for the first argument.
144
counterparts except for the first argument.
Lines 170-178 change as applications are adapted to us Link Here
170
Developers are discouraged from relying on its stability.
173
Developers are discouraged from relying on its stability.
171
.Sh RETURN VALUES
174
.Sh RETURN VALUES
172
If successful, the
175
If successful, the
173
.Fn extattr_get_file
176
.Fn extattr_get_file ,
177
.Fn extattr_set_file ,
174
and
178
and
175
.Fn extattr_set_file
179
.Fn extattr_list_file
176
calls return the number of bytes
180
calls return the number of bytes
177
that were read or written from the
181
that were read or written from the
178
.Fa data ,
182
.Fa data ,
Lines 182-188 was Link Here
182
.Dv NULL ,
186
.Dv NULL ,
183
then
187
then
184
.Fn extattr_get_file
188
.Fn extattr_get_file
185
returns the number of bytes available to read.
189
and
190
.Fn extattr_list_file
191
return the number of bytes available to read.
186
If any of the calls are unsuccessful, the value \-1 is returned
192
If any of the calls are unsuccessful, the value \-1 is returned
187
and the global variable
193
and the global variable
188
.Va errno
194
.Va errno
Lines 213-220 The attribute name was longer than Link Here
213
The
219
The
214
.Fn extattr_get_fd ,
220
.Fn extattr_get_fd ,
215
.Fn extattr_set_fd ,
221
.Fn extattr_set_fd ,
222
.Fn extattr_delete_fd ,
216
and
223
and
217
.Fn extattr_delete_fd
224
.Fn extattr_list_fd
218
system calls may also fail if:
225
system calls may also fail if:
219
.Bl -tag -width Er
226
.Bl -tag -width Er
220
.It Bq Er EBADF
227
.It Bq Er EBADF

Return to bug 108142