From 00947708c8a3d3dc41014dbeaeed6a2092971507 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Thu, 15 Mar 2001 03:00:39 +0000 Subject: 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 --- libutil/libutil.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libutil/libutil.h b/libutil/libutil.h index 4125b1a..6bebea0 100644 --- a/libutil/libutil.h +++ b/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)); -- cgit v1.2.3