ubik-call-sucks-20060704
[openafs.git] / src / ptserver / map.h
1 /*
2  *      map.h - header routines for in-core bitmap routines.
3  */
4 /*
5  * Copyright (c) 1995 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. All advertising materials mentioning features or use of this software
16  *    must display the following acknowledgement:
17  *      This product includes software developed by Marcus D. Watts.
18  * 4. The name of the developer may not be used to endorse or promote
19  *    products derived from this software without specific prior written
20  *    permission.
21  *
22  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
23  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
24  * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
25  * MARCUS D. WATTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
28  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
29  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
30  * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
31  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32  */
33
34 struct map;
35
36 int in_map(struct map *, long);
37 void free_map(struct map *);
38 struct map *add_map(struct map *, long);
39 struct map *and_map(struct map *, struct map *);
40 struct map *or_map(struct map *, struct map *);
41 struct map *not_map(struct map *);
42 struct map *copy_map(struct map *);
43 long count_map(struct map *);
44 long next_map(struct map *, long);
45 long first_map(struct map *);
46 long prev_map(struct map *, long);
47 long last_map(struct map *);
48 struct map *negative_map(struct map *);
49 struct map *bic_map(struct map *, struct map *);
50 int print_map(struct map *);