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 int create_user_table(uint32_t uid, struct user_info **ui_ptr);
37 int read_uid_file(void);
38 int write_uid_file(void);
40 void create_hash_table(unsigned bits);
41 void sort_hash_table(int (*comp)(struct user_info *, struct user_info *));
43 int for_each_admissible_user(int (*func)(struct user_info *, void *),
45 int parse_uid_arg(const char *orig_arg, struct uid_range **ur);
46 int append_users(char **users, int num_users,
47 struct uid_range **admissible_uids, int num_uid_ranges);
48 void close_user_tables(void);
49 int open_admissible_user_tables(struct uid_range *admissible_uids);