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