]> git.sesse.net Git - bcachefs-tools-debian/blob - include/linux/sort.h
Disable pristine-tar option in gbp.conf, since there is no pristine-tar branch.
[bcachefs-tools-debian] / include / linux / sort.h
1 #ifndef _LINUX_SORT_H
2 #define _LINUX_SORT_H
3
4 #include <stdlib.h>
5 #include <linux/types.h>
6
7 void sort_r(void *base, size_t num, size_t size,
8             cmp_r_func_t cmp_func,
9             swap_r_func_t swap_func,
10             const void *priv);
11
12 static inline void sort(void *base, size_t num, size_t size,
13                         int (*cmp_func)(const void *, const void *),
14                         void (*swap_func)(void *, void *, int size))
15 {
16         return qsort(base, num, size, cmp_func);
17 }
18
19 #endif