} \
}
+/** Evaluates to 1 if x < y, to -1 if x > y and to 0 if x == y. */
+#define NUM_COMPARE(x, y) ((int)((x) < (y)) - (int)((x) > (y)))
+
/** The columns of the directory table. */
enum dir_table_columns {
/** The name of the directory. */
extern uint32_t num_uids;
extern struct osl_table *dir_table;
-extern uint64_t num_dirs;
-extern uint64_t num_files;
-extern uint64_t num_bytes;
extern struct gengetopt_args_info conf;
/* adu.c */
struct user_info **ui_ptr);
int for_each_admissible_user(int (*func)(struct user_info *, void *),
void *data);
+void sort_hash_table(int (*comp)(const void *, const void *));
/* select.c */
int com_select(void);
/* create.h */
int com_create(void);
-
-static inline int ui_used(struct user_info *ui)
-{
- return ui->flags & UI_FL_SLOT_USED;
-}
-
-static inline int ui_admissible(struct user_info *ui)
-{
- return ui->flags & UI_FL_ADMISSIBLE;
-}