]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - include/idcache.h
1 #ifndef UTIL_LINUX_IDCACHE_H
2 #define UTIL_LINUX_IDCACHE_H
7 #define IDCACHE_FLAGS_NAMELEN (1 << 1)
16 struct identry
*ent
; /* first entry */
17 int width
; /* name width */
21 extern struct idcache
*new_idcache(void);
22 extern void add_gid(struct idcache
*cache
, unsigned long int id
);
23 extern void add_uid(struct idcache
*cache
, unsigned long int id
);
25 extern void free_idcache(struct idcache
*ic
);
26 extern struct identry
*get_id(struct idcache
*ic
, unsigned long int id
);
28 #endif /* UTIL_LINUX_IDCACHE_H */