Commit Graph

10 Commits

Author SHA1 Message Date
Robert Watson
b45deeb2a5 NAI DBA update. 2002-03-14 21:58:58 +00:00
Robert Watson
dc6609e6b5 Update license. 2002-02-10 06:14:03 +00:00
Robert Watson
c885aac573 Teach getextattr to query the EA size and allocate appropriate sized
buffers before reading the memory.  Arguably, the failure modes here
are poor, but we can now read >2k EAs.  Also, update the copyrights
and licenses while I'm here.
2002-02-10 06:13:14 +00:00
Robert Watson
f01dde98e3 Update userland tools to reflect extattr API changes.
Note that getextattr has not yet been updated to dynamically allocate
a read buffer, although that can now be done.

Obtained from:	TrustedBSD Project
Sponsored by:	NAI Labs
2002-02-10 04:48:26 +00:00
Chris D. Faulhaber
54d8895199 WARNS=2 and style(9) cleanup:
o prototype usage()
o move BUFSIZE define above the functions
o nuke externs that are defined in unistd.h

Approved by:	rwatson
Obtained from:	TrustedBSD Project
2001-12-04 03:28:31 +00:00
Dima Dorfman
2694efd413 Include missing header files which define functions for which gcc has
builtints (e.g., exit, strcmp).
2001-06-24 20:25:23 +00:00
Robert Watson
db089ead81 o Rename "namespace" argument to "attrnamespace" as namespace is a C++
reserved word.

Submitted by:	jkh
Obtained from:	TrustedBSD Project
2001-03-19 05:56:02 +00:00
Robert Watson
187e87911c o Update getextattr and setextattr utilities to take into account the
revised EA interface with explicit namespacing.  Link against libutil
  to provide string/constant conversion for namespaces.  Document
  revised interface.

Obtained from:	TrustedBSD Project
2001-03-15 03:09:48 +00:00
Boris Popov
d220443d1c Add the '-l' option which prints string attribute followed by a file name.
Reviewed by:	rwatson, sheldonh
2000-05-11 10:00:22 +00:00
Robert Watson
166eb62fe2 Introduce userland utilities to set and get extended attributes. These
utilities do not present the world's greatest interface, and will
undoubtably change soon.  However, they do let people experiment with
extended attributes, and provide samples of how to use the syscalls.

Obtained from:	TrustedBSD
2000-04-16 20:55:50 +00:00