XBPS Library API
20240111
The X Binary Package System
Main Page
Topics
Data Structures
include
compat.h
1
#ifndef COMPAT_H
2
#define COMPAT_H
3
4
#include <inttypes.h>
5
#include <sys/types.h>
6
#include <stdarg.h>
7
8
#if HAVE_VISIBILITY
9
#define HIDDEN __attribute__ ((visibility("hidden")))
10
#else
11
#define HIDDEN
12
#endif
13
14
#ifndef HAVE_STRLCAT
15
size_t
HIDDEN strlcat(
char
*,
const
char
*,
size_t
);
16
#endif
17
18
#ifndef HAVE_STRLCPY
19
size_t
HIDDEN strlcpy(
char
*,
const
char
*,
size_t
);
20
#endif
21
22
#ifndef HAVE_STRCASESTR
23
char
HIDDEN *strcasestr(
const
char
*,
const
char
*);
24
#endif
25
26
#ifndef HAVE_VASPRINTF
27
int
HIDDEN vasprintf(
char
**,
const
char
*, va_list);
28
#endif
29
30
#ifndef HAVE_HUMANIZE_NUMBER
31
#define HN_DECIMAL 0x01
32
#define HN_NOSPACE 0x02
33
#define HN_B 0x04
34
#define HN_DIVISOR_1000 0x08
35
#define HN_GETSCALE 0x10
36
#define HN_AUTOSCALE 0x20
37
int
HIDDEN humanize_number(
char
*,
size_t
, int64_t,
const
char
*,
int
,
int
);
38
#endif
39
40
#endif
/* COMPAT_H */
Generated on Thu Jan 11 2024 14:37:42 for XBPS Library API by
1.9.8