initial top-level import of subdirectories
This commit is contained in:
3
include/Makefile.am
Normal file
3
include/Makefile.am
Normal file
@@ -0,0 +1,3 @@
|
||||
SUBDIRS = openssl
|
||||
|
||||
noinst_HEADERS = pqueue.h stdlib.h string.h machine/endian.h
|
14
include/machine/endian.h
Normal file
14
include/machine/endian.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef _COMPAT_BYTE_ORDER_H_
|
||||
#define _COMPAT_BYTE_ORDER_H_
|
||||
|
||||
#ifdef __linux__
|
||||
#include <endian.h>
|
||||
#else
|
||||
#ifdef __sun
|
||||
#include <arpa/nameser_compat.h>
|
||||
#else
|
||||
#include_next <machine/endian.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
5
include/openssl/Makefile.am.tpl
Normal file
5
include/openssl/Makefile.am.tpl
Normal file
@@ -0,0 +1,5 @@
|
||||
include $(top_srcdir)/Makefile.am.common
|
||||
|
||||
opensslincludedir=$(includedir)/openssl
|
||||
|
||||
opensslinclude_HEADERS =
|
16
include/stdlib.h
Normal file
16
include/stdlib.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#include_next <stdlib.h>
|
||||
|
||||
#ifndef LIBCRYPTOCOMPAT_STDLIB_H
|
||||
#define LIBCRYPTOCOMPAT_STDLIB_H
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
#include <stdint.h>
|
||||
|
||||
uint32_t arc4random(void);
|
||||
void arc4random_buf(void *_buf, size_t n);
|
||||
void *reallocarray(void *, size_t, size_t);
|
||||
long long strtonum(const char *nptr, long long minval,
|
||||
long long maxval, const char **errstr);
|
||||
|
||||
#endif
|
25
include/string.h
Normal file
25
include/string.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#include_next <string.h>
|
||||
|
||||
#ifndef LIBCRYPTOCOMPAT_STRING_H
|
||||
#define LIBCRYPTOCOMPAT_STRING_H
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef __sun
|
||||
/* Some functions historically defined in string.h were placed in strings.h by
|
||||
* SUS. Use the same hack as OS X and FreeBSD use to work around on Solaris.
|
||||
*/
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
size_t strlcpy(char *dst, const char *src, size_t siz);
|
||||
|
||||
size_t strlcat(char *dst, const char *src, size_t siz);
|
||||
|
||||
void explicit_bzero(void *, size_t);
|
||||
|
||||
int timingsafe_bcmp(const void *b1, const void *b2, size_t n);
|
||||
|
||||
int timingsafe_memcmp(const void *b1, const void *b2, size_t len);
|
||||
|
||||
#endif
|
13
include/sys/types.h
Normal file
13
include/sys/types.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#include_next <sys/types.h>
|
||||
|
||||
#ifndef LIBCRYPTOCOMPAT_SYS_TYPES_H
|
||||
#define LIBCRYPTOCOMPAT_SYS_TYPES_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __sun
|
||||
typedef uint8_t u_int8_t;
|
||||
typedef uint32_t u_int32_t;
|
||||
#endif
|
||||
|
||||
#endif
|
9
include/unistd.h
Normal file
9
include/unistd.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#include_next <unistd.h>
|
||||
|
||||
#ifndef LIBCRYPTOCOMPAT_UNISTD_H
|
||||
#define LIBCRYPTOCOMPAT_UNISTD_H
|
||||
|
||||
int getentropy(void *buf, size_t buflen);
|
||||
int issetugid(void);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user