diff options
| author | Michael Forney <mforney@mforney.org> | 2016-04-18 02:26:16 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-04-18 02:27:17 -0700 |
| commit | 98dba7002932e3f76ee907b92aa2911a88c3e36e (patch) | |
| tree | 11ff3815839db1643e2acac732b944f05eff8bd8 /core/openbsd/include | |
| parent | b4bc94979483c44d91e32f1728d05d0fac4eaea5 (diff) | |
Add pax from OpenBSD 5.9
Diffstat (limited to 'core/openbsd/include')
| -rw-r--r-- | core/openbsd/include/stdlib.h | 3 | ||||
| -rw-r--r-- | core/openbsd/include/string.h | 2 | ||||
| -rw-r--r-- | core/openbsd/include/sys/cdefs.h | 3 | ||||
| -rw-r--r-- | core/openbsd/include/sys/param.h | 3 | ||||
| -rw-r--r-- | core/openbsd/include/sys/time.h | 5 | ||||
| -rw-r--r-- | core/openbsd/include/unistd.h | 2 |
6 files changed, 18 insertions, 0 deletions
diff --git a/core/openbsd/include/stdlib.h b/core/openbsd/include/stdlib.h new file mode 100644 index 00000000..d5373fea --- /dev/null +++ b/core/openbsd/include/stdlib.h @@ -0,0 +1,3 @@ +#include_next <stdlib.h> +void *reallocarray(void *, size_t, size_t); +long long strtonum(const char *, long long, long long, const char **); diff --git a/core/openbsd/include/string.h b/core/openbsd/include/string.h new file mode 100644 index 00000000..242466e1 --- /dev/null +++ b/core/openbsd/include/string.h @@ -0,0 +1,2 @@ +#include_next <string.h> +void strmode(int, char *); diff --git a/core/openbsd/include/sys/cdefs.h b/core/openbsd/include/sys/cdefs.h new file mode 100644 index 00000000..f1e05946 --- /dev/null +++ b/core/openbsd/include/sys/cdefs.h @@ -0,0 +1,3 @@ +/* only needed for C++ */ +#define __BEGIN_DECLS +#define __END_DECLS diff --git a/core/openbsd/include/sys/param.h b/core/openbsd/include/sys/param.h new file mode 100644 index 00000000..3167713c --- /dev/null +++ b/core/openbsd/include/sys/param.h @@ -0,0 +1,3 @@ +#include_next <sys/param.h> +#define ALIGNBYTES (sizeof(uintptr_t) - 1) +#define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) &~ ALIGNBYTES) diff --git a/core/openbsd/include/sys/time.h b/core/openbsd/include/sys/time.h new file mode 100644 index 00000000..98d5d3a7 --- /dev/null +++ b/core/openbsd/include/sys/time.h @@ -0,0 +1,5 @@ +#include_next <sys/time.h> +#define timespeccmp(tsp, usp, cmp) \ + (((tsp)->tv_sec == (usp)->tv_sec) ? \ + ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \ + ((tsp)->tv_sec cmp (usp)->tv_sec)) diff --git a/core/openbsd/include/unistd.h b/core/openbsd/include/unistd.h new file mode 100644 index 00000000..8d7aa58c --- /dev/null +++ b/core/openbsd/include/unistd.h @@ -0,0 +1,2 @@ +#include_next <unistd.h> +#define pledge(request, paths) 0 /* linux doesn't have pledge */ |
