summaryrefslogtreecommitdiffstats
path: root/libutil
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2001-03-15 03:00:39 +0000
committerRobert Watson <rwatson@FreeBSD.org>2001-03-15 03:00:39 +0000
commit00947708c8a3d3dc41014dbeaeed6a2092971507 (patch)
treef6397b2b2a8e4c3aa973d1cb9e9ca043df5b4919 /libutil
parent9bed495159eec8017a8aaa1bb6a0d71cea837fb9 (diff)
downloadpw-darwin-00947708c8a3d3dc41014dbeaeed6a2092971507.tar.gz
pw-darwin-00947708c8a3d3dc41014dbeaeed6a2092971507.tar.zst
pw-darwin-00947708c8a3d3dc41014dbeaeed6a2092971507.zip
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 'libutil')
-rw-r--r--libutil/libutil.h2
1 files changed, 2 insertions, 0 deletions
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));