Index: trunk/include/sh_error.h
===================================================================
--- trunk/include/sh_error.h	(revision 409)
+++ trunk/include/sh_error.h	(revision 410)
@@ -191,4 +191,5 @@
 void sh_efile_report();
 int sh_efile_path(const char * str);
+int sh_efile_group(const char * str);
 
 /* (re)set the console device(s)
Index: trunk/include/sh_static.h
===================================================================
--- trunk/include/sh_static.h	(revision 409)
+++ trunk/include/sh_static.h	(revision 410)
@@ -15,4 +15,6 @@
 void  sh_setpwent(void);
 struct group * sh_getgrnam(const char *name);
+int sh_getgrnam_r(const char *name, struct group *gbuf,
+               char *buf, size_t buflen, struct group **gbufp);
 
 struct passwd * sh_getpwnam(const char *name);
@@ -38,4 +40,6 @@
 
 #define sh_initgroups initgroups
+#define sh_getgrnam   getgrnam
+#define sh_getgrnam_r getgrnam_r
 #define sh_getgrgid   getgrgid
 #define sh_getgrgid_r getgrgid_r
Index: trunk/include/sh_unix.h
===================================================================
--- trunk/include/sh_unix.h	(revision 409)
+++ trunk/include/sh_unix.h	(revision 410)
@@ -340,4 +340,7 @@
 char *  sh_unix_getUIDdir (int level, uid_t uid, char * out, size_t len);
 
+/* get a group GID 
+ */
+long sh_group_to_gid (const char * g, int * fail);
 
 #ifdef HAVE_GETTIMEOFDAY
