summaryrefslogtreecommitdiff
path: root/openbsd-compat/openbsd-compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-rw-r--r--openbsd-compat/openbsd-compat.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h
index cff547745..cac799e84 100644
--- a/openbsd-compat/openbsd-compat.h
+++ b/openbsd-compat/openbsd-compat.h
@@ -60,6 +60,10 @@ int bindresvport_sa(int sd, struct sockaddr *sa);
60void closefrom(int); 60void closefrom(int);
61#endif 61#endif
62 62
63#ifndef HAVE_GETPAGESIZE
64int getpagesize(void);
65#endif
66
63#ifndef HAVE_GETCWD 67#ifndef HAVE_GETCWD
64char *getcwd(char *pt, size_t size); 68char *getcwd(char *pt, size_t size);
65#endif 69#endif
@@ -68,6 +72,10 @@ char *getcwd(char *pt, size_t size);
68void *reallocarray(void *, size_t, size_t); 72void *reallocarray(void *, size_t, size_t);
69#endif 73#endif
70 74
75#ifndef HAVE_RECALLOCARRAY
76void *recallocarray(void *, size_t, size_t, size_t);
77#endif
78
71#if !defined(HAVE_REALPATH) || defined(BROKEN_REALPATH) 79#if !defined(HAVE_REALPATH) || defined(BROKEN_REALPATH)
72/* 80/*
73 * glibc's FORTIFY_SOURCE can redefine this and prevent us picking up the 81 * glibc's FORTIFY_SOURCE can redefine this and prevent us picking up the
@@ -296,6 +304,10 @@ int bcrypt_pbkdf(const char *, size_t, const u_int8_t *, size_t,
296void explicit_bzero(void *p, size_t n); 304void explicit_bzero(void *p, size_t n);
297#endif 305#endif
298 306
307#ifndef HAVE_FREEZERO
308void freezero(void *, size_t);
309#endif
310
299char *xcrypt(const char *password, const char *salt); 311char *xcrypt(const char *password, const char *salt);
300char *shadow_pw(struct passwd *pw); 312char *shadow_pw(struct passwd *pw);
301 313