blob: 9ad6ce5b333db3749cee7b795843657e54358546 (
plain)
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
|
#ifndef LINUX_COMPAT_H
#define LINUX_COMPAT_H
#ifdef __linux__
#define _GNU_SOURCE
#include <stdlib.h>
#include <errno.h>
extern char *program_invocation_short_name;
#define getprogname() program_invocation_short_name
#define __unreachable() __builtin_unreachable()
#define __dead2 __attribute__((__noreturn__))
size_t
strlcat(char *dst, const char *src, size_t siz);
size_t
strlcpy(char *dst, const char *src, size_t siz);
void errc(int eval, int status, const char *fmt, ...) __dead2;
#define __FBSDID(x)
#endif /* __linux__ */
#endif /* LINUX_COMPAT_H */
|