This file is indexed.

/usr/include/ringbuf.h is in uthash-dev 1.9.9.1+git20151125-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
#ifndef _RINGBUF_H_
#define _RINGBUF_H_
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>

/* simple ring buffer */

typedef struct _ringbuf {
    size_t n; /* allocd size */
    size_t u; /* used space */
    size_t i; /* input pos */
    size_t o; /* output pos */
    char d[]; /* C99 flexible array member */
} ringbuf;

ringbuf *ringbuf_new(size_t sz);
int ringbuf_put(ringbuf *, const void *data, size_t len);
size_t ringbuf_get_pending_size(ringbuf *);
size_t ringbuf_get_next_chunk(ringbuf *, char **data);
void ringbuf_mark_consumed(ringbuf *, size_t);
void ringbuf_free(ringbuf*);
void ringbuf_clear(ringbuf*);

#endif /* _RINGBUF_H_ */