chiark / gitweb /
util: be more picky when validating hostnames
[elogind.git] / src / shared / util.h
index 25c00843ec51c31b8f82a1bfa2792ac216f537eb..7a38421007f7929a7ad2762a9c53dcc32fc226b1 100644 (file)
@@ -429,9 +429,11 @@ int socket_from_display(const char *display, char **path);
 int get_user_creds(const char **username, uid_t *uid, gid_t *gid, const char **home, const char **shell);
 int get_group_creds(const char **groupname, gid_t *gid);
 
+int in_gid(gid_t gid);
 int in_group(const char *name);
 
 char* uid_to_name(uid_t uid);
+char* gid_to_name(gid_t gid);
 
 int glob_exists(const char *path);
 
@@ -608,3 +610,4 @@ static inline void *mempset(void *s, int c, size_t n) {
 
 char *hexmem(const void *p, size_t l);
 char *strextend(char **x, ...);
+char *strrep(const char *s, unsigned n);