Process all option structs that match a given arg.
This lets us handle options such as -i that have different meanings
depending on what other options are present on the command line.
1 #ifndef _RAZOR_INTERNAL_H_
2 #define _RAZOR_INTERNAL_H_
4 #define ALIGN(value, base) (((value) + (base - 1)) & ~((base) - 1))
6 /* Utility functions */
8 int razor_create_dir(const char *root, const char *path);
9 int razor_write(int fd, const void *data, size_t size);
12 typedef int (*razor_compare_with_data_func_t)(const void *p1,
16 razor_qsort_with_data(void *base, size_t nelem, size_t size,
17 razor_compare_with_data_func_t compare, void *data);
19 #endif /* _RAZOR_INTERNAL_H_ */