blob: 6971dcd0bb099204ff8486b43fe3caf8a598f655 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef APT_H
#define APT_H
#include <unistd.h>
#define DPKG_DATADIR "/usr/share/dpkg"
template <typename Type_>
static Type_ *strchrnul(Type_ *s, int c) {
while (*s != c && *s != '\0')
++s;
return s;
}
#define faccessat(arg0, arg1, arg2, arg3) \
access(arg1, arg2)
#if 0
#include <syslog.h>
static unsigned nonce(0);
#define _trace() syslog(LOG_ERR, "_trace():%s[%u] #%u\n", __FILE__, __LINE__, ++nonce)
#endif
#endif//APT_H
|