di-set.h, ino-map.h: add multiple-inclusion guard
[gnulib.git] / lib / di-set.h
1 #ifndef _GL_DI_SET_H
2 # define _GL_DI_SET_H
3
4 # include <sys/types.h>
5
6 # undef _ATTRIBUTE_NONNULL_
7 # if __GNUC__ == 3 && __GNUC_MINOR__ >= 3 || 3 < __GNUC__
8 #  define _ATTRIBUTE_NONNULL_(m) __attribute__ ((__nonnull__ (m)))
9 # else
10 #  define _ATTRIBUTE_NONNULL_(m)
11 # endif
12
13 struct di_set *di_set_alloc (void);
14 int di_set_insert (struct di_set *, dev_t, ino_t) _ATTRIBUTE_NONNULL_ (1);
15 void di_set_free (struct di_set *) _ATTRIBUTE_NONNULL_ (1);
16 int di_set_lookup (struct di_set *dis, dev_t dev, ino_t ino)
17   _ATTRIBUTE_NONNULL_ (1);
18
19 #endif