summaryrefslogtreecommitdiff
path: root/devel/got/files/openbsd-compat/openbsd-compat.h
blob: 6fc91966fef14b4b16dbb4b5fdded302b878f9bb (plain) (blame)
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
/*
 * Compatibility mappings for system headers and
 * prototypes for functions in libopenbsd-compat.
 */

#ifndef _OPENBSD_COMPAT_H_
#define _OPENBSD_COMPAT_H_

/*
 * <sys/cdefs.h>
 */
#define __dead __dead2

/*
 * <stdlib.h>
 */
void	freezero(void *, size_t);
void	*recallocarray(void *, size_t, size_t, size_t);

/*
 * <unistd.h>
 */
int	getdtablecount(void);

#define pledge(promises, execpromises)	0
#define unveil(path, permissions)	0

#endif	/* _OPENBSD_COMPAT_H_ */