This file is indexed.

/usr/include/ustr-parse.h is in libustr-dev 1.0.4-3+b2.

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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
/* Copyright (c) 2007 James Antill -- See LICENSE file for terms. */
#ifndef USTR_PARSE_H
#define USTR_PARSE_H 1

#ifndef USTR_MAIN_H
#error " You should have already included ustr-main.h, or just include ustr.h."
#endif

#define USTR_TYPE_PARSE_NUM_ERR_NONE 0
#define USTR_TYPE_PARSE_NUM_ERR_ONLY_S 1
#define USTR_TYPE_PARSE_NUM_ERR_ONLY_SPM 2
#define USTR_TYPE_PARSE_NUM_ERR_ONLY_SPMX 3
#define USTR_TYPE_PARSE_NUM_ERR_OOB 4
#define USTR_TYPE_PARSE_NUM_ERR_OVERFLOW 5
#define USTR_TYPE_PARSE_NUM_ERR_NEGATIVE 6
#define USTR_TYPE_PARSE_NUM_ERR_BEG_ZERO 7

#define USTR_FLAG_PARSE_NUM_DEF          0U
#define USTR__MASK_PARSE_NUM_BASE (63) /* (1<<6) - 1 */
/* #define USTR_FLAG_PARSE_NUM_LOCAL       (1U<<6) */
#define USTR_FLAG_PARSE_NUM_SEP         (1U<<7)
#define USTR_FLAG_PARSE_NUM_OVERFLOW    (1U<<8)
#define USTR_FLAG_PARSE_NUM_SPACE       (1U<<9)
#define USTR_FLAG_PARSE_NUM_NO_BEG_ZERO (1U<<10)
#define USTR_FLAG_PARSE_NUM_NO_BEG_PM   (1U<<11)
#define USTR_FLAG_PARSE_NUM_NO_NEGATIVE (1U<<12)
#define USTR_FLAG_PARSE_NUM_EXACT       (1U<<13)


#if USTR_CONF_HAVE_STDINT_H
USTR_CONF_E_PROTO
uintmax_t ustr_parse_uintmaxx(const struct Ustr *, size_t, unsigned int,
                              uintmax_t, uintmax_t, const char *,
                              size_t *,unsigned int *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1, 6));

USTR_CONF_E_PROTO
uintmax_t ustr_parse_uintmax(const struct Ustr *, size_t, unsigned int, size_t *, unsigned int *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1));
USTR_CONF_E_PROTO
intmax_t ustr_parse_intmax(const struct Ustr *, size_t, unsigned int, size_t *, unsigned int *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1));
#endif

USTR_CONF_E_PROTO
unsigned long ustr_parse_ulongx(const struct Ustr *, size_t, unsigned int,
                                unsigned long, unsigned long,
                                const char *, size_t *, unsigned int *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1, 6));

USTR_CONF_E_PROTO
unsigned long ustr_parse_ulong(const struct Ustr *, size_t, unsigned int,
                               size_t *, unsigned int *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1));
USTR_CONF_E_PROTO
long ustr_parse_long(const struct Ustr *, size_t, unsigned int,
                     size_t *, unsigned int *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1));

USTR_CONF_E_PROTO
unsigned int ustr_parse_uint(const struct Ustr *, size_t, unsigned int,
                             size_t *, unsigned int *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1));
USTR_CONF_E_PROTO
int ustr_parse_int(const struct Ustr *, size_t, unsigned int,
                   size_t *, unsigned int *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1));

USTR_CONF_E_PROTO
unsigned short ustr_parse_ushort(const struct Ustr *, size_t, unsigned int,
                                 size_t *, unsigned int *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1));
USTR_CONF_E_PROTO
short ustr_parse_short(const struct Ustr *, size_t, unsigned int,
                       size_t *, unsigned int *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1));

#if USTR_CONF_INCLUDE_CODEONLY_HEADERS
# include "ustr-parse-code.h"
#endif


/* ---------------- pool wrapper APIs ---------------- */

#if USTR_CONF_HAVE_STDINT_H
USTR_CONF_EI_PROTO
uintmax_t ustrp_parse_uintmaxx(const struct Ustrp *, size_t, unsigned int,
                               uintmax_t, uintmax_t, const char *,
                               size_t *, unsigned int *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1, 6));
USTR_CONF_EI_PROTO
uintmax_t ustrp_parse_uintmax(const struct Ustrp *, size_t, unsigned int,
                              size_t *, unsigned int *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1));
USTR_CONF_EI_PROTO
intmax_t ustrp_parse_intmax(const struct Ustrp *, size_t, unsigned int,
                            size_t *, unsigned int *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1));

#endif

USTR_CONF_EI_PROTO
unsigned long ustrp_parse_ulongx(const struct Ustrp *, size_t, unsigned int,
                                 unsigned long, unsigned long,
                                 const char *, size_t *, unsigned int *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1, 6));

USTR_CONF_EI_PROTO
unsigned long ustrp_parse_ulong(const struct Ustrp *, size_t, unsigned int,
                                size_t *, unsigned int *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1));
USTR_CONF_EI_PROTO
long ustrp_parse_long(const struct Ustrp *, size_t, unsigned int,
                      size_t *, unsigned int *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1));

USTR_CONF_EI_PROTO
unsigned int ustrp_parse_uint(const struct Ustrp *, size_t, unsigned int,
                              size_t *, unsigned int *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1));
USTR_CONF_EI_PROTO
int ustrp_parse_int(const struct Ustrp *, size_t, unsigned int,
                    size_t *, unsigned int *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1));

USTR_CONF_EI_PROTO
unsigned short ustrp_parse_ushort(const struct Ustrp *, size_t, unsigned int,
                                  size_t *, unsigned *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1));
USTR_CONF_EI_PROTO
short ustrp_parse_short(const struct Ustrp *, size_t, unsigned int,
                        size_t *, unsigned int *)
    USTR__COMPILE_ATTR_WARN_UNUSED_RET() USTR__COMPILE_ATTR_NONNULL_L((1));

#if USTR_CONF_COMPILE_USE_INLINE
# if USTR_CONF_HAVE_STDINT_H
USTR_CONF_II_PROTO
uintmax_t ustrp_parse_uintmaxx(const struct Ustrp *s1, size_t off,
                               unsigned int flags,
                               uintmax_t nmin, uintmax_t nmax,
                               const char *sep, size_t *len, unsigned int *ern)
{ return (ustr_parse_uintmaxx(&s1->s, off, flags, nmin, nmax, sep, len, ern)); }

USTR_CONF_II_PROTO
uintmax_t ustrp_parse_uintmax(const struct Ustrp *s1, size_t off,
                              unsigned int flags,
                              size_t *len, unsigned int *ern)
{ return (ustr_parse_uintmax(&s1->s, off, flags, len, ern)); }

USTR_CONF_II_PROTO
intmax_t ustrp_parse_intmax(const struct Ustrp *s1, size_t off, 
                            unsigned int flags, size_t *len, unsigned int *ern)
{ return (ustr_parse_intmax(&s1->s, off, flags, len, ern)); }
# endif

USTR_CONF_II_PROTO
unsigned long ustrp_parse_ulongx(const struct Ustrp *s1, size_t off,
                                 unsigned int flags,
                                 unsigned long nmin, unsigned long nmax,
                                 const char *sep, size_t *len, unsigned *ern)
{ return (ustr_parse_ulongx(&s1->s, off, flags, nmin, nmax, sep, len, ern)); }

USTR_CONF_II_PROTO
unsigned long ustrp_parse_ulong(const struct Ustrp *s1, size_t off, 
                                unsigned int flags,
                                size_t *len, unsigned int *ern)
{ return (ustr_parse_ulong(&s1->s, off, flags, len, ern)); }
USTR_CONF_II_PROTO
long ustrp_parse_long(const struct Ustrp *s1, size_t off, 
                      unsigned int flags, size_t *len, unsigned int *ern)
{ return (ustr_parse_long(&s1->s, off, flags, len, ern)); }

USTR_CONF_II_PROTO
unsigned int ustrp_parse_uint(const struct Ustrp *s1, size_t off, 
                              unsigned int flags,
                              size_t *len, unsigned int *ern)
{ return (ustr_parse_uint(&s1->s, off, flags, len, ern)); }
USTR_CONF_II_PROTO
int ustrp_parse_int(const struct Ustrp *s1, size_t off, 
                    unsigned int flags, size_t *len, unsigned int *ern)
{ return (ustr_parse_int(&s1->s, off, flags, len, ern)); }

USTR_CONF_II_PROTO
unsigned short ustrp_parse_ushort(const struct Ustrp *s1, size_t off, 
                                  unsigned int flags,
                                  size_t *len, unsigned int *ern)
{ return (ustr_parse_ushort(&s1->s, off, flags, len, ern)); }
USTR_CONF_II_PROTO
short ustrp_parse_short(const struct Ustrp *s1, size_t off, 
                        unsigned int flags, size_t *len, unsigned int *ern)
{ return (ustr_parse_short(&s1->s, off, flags, len, ern)); }
#endif

#endif