1 /** The columns of the id table. */
2 enum user_table_columns {
3 /** The numer of the directory. */
5 /** The number of bytes of all regular files in this dir owned by this id. */
7 /** The number of files in this dir owned by this id. */
9 /** Number of columns in this table. */
13 /** Information about one admissible user. */
17 /** \sa enum uid_info_flags. */
21 /** The user table of this user.*/
22 struct osl_table *table;
23 /** Total number of files owned by this user. */
25 /** Total number of bytes owned by this user. */
27 /** Total number of directories that contain at least one file */
29 /** The description of the user table. */
30 struct osl_table_description *desc;
33 /** An opaque struct that contains info about which users are admissible. */
36 enum search_uid_flags {
38 CREATE_USER_TABLE = 2,
40 int search_uid(uint32_t uid, struct uid_range *urs,
41 enum search_uid_flags flags, struct user_info **ui_ptr);
43 int read_uid_file(struct uid_range *admissible_uids);
44 int write_uid_file(void);
46 void create_hash_table(unsigned bits);
47 void sort_hash_table(int (*comp)(const void *, const void *));
48 void free_hash_table(void);
50 int for_each_admissible_user(int (*func)(struct user_info *, void *),
52 int parse_uid_arg(const char *orig_arg, struct uid_range **ur);
53 int append_users(char **users, int num_users,
54 struct uid_range **admissible_uids, int num_uid_ranges);
55 void close_user_tables(void);