/usr/include/skalibs/bitarray.h is in skalibs-dev 0.47-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | /* Public domain. */
#ifndef BITARRAY_H
#define BITARRAY_H
#include "gccattributes.h"
#include "uint64alloc.h"
typedef struct bitarray { uint64alloc x ; } bitarray, *bitarray_ref ;
#define BITARRAY_ZERO { UINT64ALLOC_ZERO }
extern int bitarray_ready (bitarray *, unsigned int) ;
extern int bitarray_readyplus (bitarray *, unsigned int) ;
extern void bitarray_free (bitarray *) ;
extern void bitarray_clearsetn (bitarray *, unsigned int, unsigned int, unsigned char) ;
#define bitarray_clearn(x, start, len) bitarray_clearsetn(x, start, len, 0)
#define bitarray_setn(x, start, len) bitarray_clearsetn(x, start, len, 1)
extern int bitarray_peek (bitarray const *, unsigned int) gccattr_pure ;
#define bitarray_isset(b, n) bitarray_peek(b, n)
extern void bitarray_clear (bitarray *, unsigned int) ;
extern void bitarray_set (bitarray *, unsigned int) ;
extern int bitarray_testandpoke (bitarray *, unsigned int, unsigned char) ;
#define bitarray_testandclear(b, n) bitarray_testandpoke(b, n, 0)
#define bitarray_testandset(b, n) bitarray_testandpoke(b, n, 1)
extern unsigned int bitarray_firstclear (bitarray const *) gccattr_pure ;
#endif
|