summaryrefslogtreecommitdiff
path: root/gl/lib/di-set.h
blob: f05e8760c339583707920626d95b14c602924c99 (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

struct di_set *di_set_alloc (void);
int di_set_insert (struct di_set *, dev_t, ino_t) _ATTRIBUTE_NONNULL_ (1);
void di_set_free (struct di_set *) _ATTRIBUTE_NONNULL_ (1);
int di_set_lookup (struct di_set *dis, dev_t dev, ino_t ino)
  _ATTRIBUTE_NONNULL_ (1);;