mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-02-13 10:52:09 +02:00
This is required for patch, and hence is about to move to gnulib.
* gl/lib/di-set.c (di_set_lookup): New function.
* gl/lib/di-set.h: Declare it.
* gl/tests/test-di-set.c (main): Exercise it.
The bug was introduced on 2004-12-04 via commit 7380cf79.
15 lines
480 B
C
15 lines
480 B
C
#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);;
|