This file is indexed.

/usr/include/smlist.h is in libion-dev 3.2.1+dfsg-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
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
/*
	Public header file for routines that manage doubly-linked
	lists.  Derived from Jeff Biesiadecki's list (a.k.a. "lyst")
	library, but adapted to be usable in Solaris shared memory.
	All references to data items are expressed as offsets from
	the start of a shared memory partition managed by the PSM
	(Personal Space Management) system.  They can be converted to
	absolute memory pointers by the psp() function provided by PSM.

	Copyright (c) 2001, California Institute of Technology.
	ALL RIGHTS RESERVED.  U.S. Government Sponsorship
	acknowledged.
									*/
/*	Author: Scott Burleigh, Jet Propulsion Laboratory		*/
/*									*/
#ifndef _SMLIST_H_
#define _SMLIST_H_

#include "psm.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef int		(*SmListCompareFn)(PsmPartition partition,
				PsmAddress eltData, void *dataBuffer);
/*	Note: an SmListCompareFn operates by comparing some value(s)
	derived from its first argument (which will always be the
	sm_list_data of some shared memory list element) to some
	value(s) derived from its second argument (which is typically
	a pointer to an object residing in memory).			*/

typedef void		(*SmListDeleteFn)(PsmPartition partition,
				PsmAddress elt, void *arg);

#define sm_list_create(partition) \
Sm_list_create(__FILE__, __LINE__, partition)
extern PsmAddress	Sm_list_create(char *file, int line,
				PsmPartition partition);
extern void		sm_list_unwedge(PsmPartition Partition, PsmAddress list,
				int interval);
#define sm_list_clear(partition, list, fn, arg) \
Sm_list_clear(__FILE__, __LINE__, partition, list, fn, arg)
extern int		Sm_list_clear(char *file, int line,
				PsmPartition partition, PsmAddress list,
				SmListDeleteFn deleteFn, void *argument);
#define sm_list_destroy(partition, list, fn, arg) \
Sm_list_destroy(__FILE__, __LINE__, partition, list, fn, arg)
extern int		Sm_list_destroy(char *file, int line,
				PsmPartition partition, PsmAddress list,
				SmListDeleteFn deleteFn, void *argument);

extern PsmAddress	sm_list_user_data(PsmPartition partition,
				PsmAddress list);
extern int		sm_list_user_data_set(PsmPartition partition,
				PsmAddress list, PsmAddress userData);
extern int		sm_list_length(PsmPartition partition, PsmAddress list);

#define sm_list_insert(partition, list, data, fn, arg) \
Sm_list_insert(__FILE__, __LINE__, partition, list, data, fn, arg)
extern PsmAddress	Sm_list_insert(char *file, int line,
				PsmPartition partition, PsmAddress list,
				PsmAddress data, SmListCompareFn compare,
				void *dataBuffer);
#define sm_list_insert_first(partition, list, data) \
Sm_list_insert_first(__FILE__, __LINE__, partition, list, data)
extern PsmAddress	Sm_list_insert_first(char *file, int line,
				PsmPartition partition, PsmAddress list,
				PsmAddress data);
#define sm_list_insert_last(partition, list, data) \
Sm_list_insert_last(__FILE__, __LINE__, partition, list, data)
extern PsmAddress	Sm_list_insert_last(char *file, int line,
				PsmPartition partition, PsmAddress list,
				PsmAddress data);

#define sm_list_insert_before(partition, elt, data) \
Sm_list_insert_before(__FILE__, __LINE__, partition, elt, data)
extern PsmAddress	Sm_list_insert_before(char *file, int line,
				PsmPartition partition, PsmAddress elt,
				PsmAddress data);
#define sm_list_insert_after(partition, elt, data) \
Sm_list_insert_after(__FILE__, __LINE__, partition, elt, data)
extern PsmAddress	Sm_list_insert_after(char *file, int line,
				PsmPartition partition, PsmAddress elt,
				PsmAddress data);

#define sm_list_delete(partition, elt, fn, arg) \
Sm_list_delete(__FILE__, __LINE__, partition, elt, fn, arg)
extern int		Sm_list_delete(char *file, int line,
				PsmPartition partition, PsmAddress elt,
			       SmListDeleteFn deleteFn, void *argument);

extern PsmAddress	sm_list_first(PsmPartition partition, PsmAddress list);
extern PsmAddress	sm_list_last(PsmPartition partition, PsmAddress list);
extern PsmAddress	sm_list_next(PsmPartition partition, PsmAddress elt);
extern PsmAddress	sm_list_prev(PsmPartition partition, PsmAddress elt);
extern PsmAddress	sm_list_search(PsmPartition partition, PsmAddress elt,
				SmListCompareFn compare, void *dataBuffer);

extern PsmAddress	sm_list_list(PsmPartition partition, PsmAddress elt);
extern PsmAddress	sm_list_data(PsmPartition partition, PsmAddress elt);
extern PsmAddress	sm_list_data_set(PsmPartition partition, PsmAddress elt,
				PsmAddress data);
#ifdef __cplusplus
}
#endif

#endif  /* _SMLIST_H_ */