summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/sys/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress/lib/libc/sys/macros.h')
-rw-r--r--src/regress/lib/libc/sys/macros.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/regress/lib/libc/sys/macros.h b/src/regress/lib/libc/sys/macros.h
index ef858d137a..56f9ff1a1a 100644
--- a/src/regress/lib/libc/sys/macros.h
+++ b/src/regress/lib/libc/sys/macros.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: macros.h,v 1.2 2020/01/30 08:22:30 mpi Exp $ */ 1/* $OpenBSD: macros.h,v 1.3 2021/09/02 12:40:44 mbuhl Exp $ */
2/* Public domain - Moritz Buhl */ 2/* Public domain - Moritz Buhl */
3 3
4#include <sys/param.h> 4#include <sys/param.h>
@@ -49,6 +49,14 @@ sysctlbyname(char* s, void *oldp, size_t *oldlenp, void *newp, size_t newlen)
49 return sysctl(mib, miblen, oldp, oldlenp, newp, newlen); 49 return sysctl(mib, miblen, oldp, oldlenp, newp, newlen);
50} 50}
51 51
52/* t_connect.c */
53#define IPPORT_RESERVEDMAX 1023
54
55/* t_fork.c */
56#define kinfo_proc2 kinfo_proc
57#define KERN_PROC2 KERN_PROC
58#define reallocarr(pp, n, s) ((*pp = reallocarray(*pp, n, s)), *pp == NULL)
59
52/* t_mlock.c */ 60/* t_mlock.c */
53#define MAP_WIRED __MAP_NOREPLACE 61#define MAP_WIRED __MAP_NOREPLACE
54 62
@@ -63,3 +71,7 @@ sysctlbyname(char* s, void *oldp, size_t *oldlenp, void *newp, size_t newlen)
63 71
64/* t_write.c */ 72/* t_write.c */
65#define _PATH_DEVZERO "/dev/zero" 73#define _PATH_DEVZERO "/dev/zero"
74
75/* t_wait_noproc.c */
76#define ___STRING(x) #x
77#define __BIT(n) (1 << (n))