summaryrefslogtreecommitdiff
path: root/gl/lib/ino-map.h
blob: 661b78a55f6dcdef20495810bba756390f43f2fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <sys/types.h>

#undef _ATTRIBUTE_NONNULL_
#if __GNUC__ == 3 && __GNUC_MINOR__ >= 3 || 3 < __GNUC__
# define _ATTRIBUTE_NONNULL_(m) __attribute__ ((__nonnull__ (m)))
#else
# define _ATTRIBUTE_NONNULL_(m)
#endif

#define INO_MAP_INSERT_FAILURE ((size_t) -1)

struct ino_map *ino_map_alloc (size_t);
void ino_map_free (struct ino_map *) _ATTRIBUTE_NONNULL_ (1);
size_t ino_map_insert (struct ino_map *, ino_t) _ATTRIBUTE_NONNULL_ (1);