]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - include/idcache.h
2 * No copyright is claimed. This code is in the public domain; do with
5 #ifndef UTIL_LINUX_IDCACHE_H
6 #define UTIL_LINUX_IDCACHE_H
11 #define IDCACHE_FLAGS_NAMELEN (1 << 1)
20 struct identry
*ent
; /* first entry */
21 int width
; /* name width */
25 extern struct idcache
*new_idcache(void);
26 extern void add_gid(struct idcache
*cache
, unsigned long int id
);
27 extern void add_uid(struct idcache
*cache
, unsigned long int id
);
29 extern void free_idcache(struct idcache
*ic
);
30 extern struct identry
*get_id(struct idcache
*ic
, unsigned long int id
);
32 #endif /* UTIL_LINUX_IDCACHE_H */