backport to buster
[hcoop/debian/openafs.git] / src / ptserver / map.h
CommitLineData
805e021f
CE
1/*
2 * map.h - header routines for in-core bitmap routines.
3 */
4/*
5 * Copyright (c) 1995, 2007 Marcus D. Watts All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. The name of the developer may not be used to endorse or promote
16 * products derived from this software without specific prior written
17 * permission.
18 *
19 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
20 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
21 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
22 * MARCUS D. WATTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
25 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
27 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
28 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31struct map;
32
33int in_map(struct map *, int);
34void free_map(struct map *);
35struct map *add_map(struct map *, int);
36struct map *and_map(struct map *, struct map *);
37struct map *or_map(struct map *, struct map *);
38struct map *not_map(struct map *);
39struct map *copy_map(struct map *);
40int count_map(struct map *);
41int next_map(struct map *, int);
42int first_map(struct map *);
43int prev_map(struct map *, int);
44int last_map(struct map *);
45struct map *negative_map(struct map *);
46struct map *bic_map(struct map *, struct map *);
47int print_map(struct map *);