/usr/include/dacs/range.h is in libdacs-dev 1.4.38a-2build1.
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 | /*
* Copyright (c) 2003-2012
* Distributed Systems Software. All rights reserved.
* See the file LICENSE for redistribution information.
*
* $Id: range.h 2594 2012-10-19 17:28:49Z brachman $
*/
#ifndef _RANGE_H_
#define _RANGE_H_
#include <ctype.h>
#include <stdio.h>
#define RANGE_SPAN_SEP_STR ":"
#define RANGE_ELEMENT_MAX_STR "#"
#define RANGE_ELEMENT_SEP_CHAR ','
#define RANGE_SIGNED_VALUES 1
typedef struct Range_syntax {
char element_sep_char;
char *span_sep_str;
char *element_max_str;
int signed_values;
} Range_syntax;
#ifdef __cplusplus
extern "C" {
#endif
extern Range_syntax *range_set_default_syntax(Range_syntax *syntax);
extern int range_is_valid(char *range, Range_syntax *syntax, char **errmsg);
extern int range_test(int num, char *range, Range_syntax *syntax,
char **errmsg);
extern int range_selftest(FILE *fp);
#ifdef __cplusplus
}
#endif
#endif
|