summaryrefslogtreecommitdiffstats
path: root/lib/libutil/libutil.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2001-03-15 03:00:39 +0000
committerrwatson <rwatson@FreeBSD.org>2001-03-15 03:00:39 +0000
commitf843a4812be42e079fa066fe7f8e5568764902be (patch)
tree24cf64c952e1594a1a803de32a47133de68aed77 /lib/libutil/libutil.h
parentf773ff5a8798de6b68501943b6bd61072bf7ad59 (diff)
downloadFreeBSD-src-f843a4812be42e079fa066fe7f8e5568764902be.zip
FreeBSD-src-f843a4812be42e079fa066fe7f8e5568764902be.tar.gz
o To support new EA interface with explicit namespaces, introduce two
utility functions which convert between string namespace names and numeric constants used by the interface. Right now, two namespaces are supported, EXTATTR_NAMESPACE_SYSTEM ("system") and EXTATTR_NAMESPACE_USER ("user"). These functions are used by various userland EA utilities, rather than hard coding the routines all over the place. Obtained from: TrustedBSD Project
Diffstat (limited to 'lib/libutil/libutil.h')
-rw-r--r--lib/libutil/libutil.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h
index 4125b1a..6bebea0 100644
--- a/lib/libutil/libutil.h
+++ b/lib/libutil/libutil.h
@@ -48,6 +48,8 @@ struct utmp;
struct in_addr;
__BEGIN_DECLS
+int extattr_namespace_to_string(int namespace, char **string);
+int extattr_string_to_namespace(const char *string, int *namespace);
void login __P((struct utmp *_ut));
int login_tty __P((int _fd));
int logout __P((const char *_line));
OpenPOWER on IntegriCloud