aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-03-06 23:33:50 +0100
committerDuncaen <mail@duncano.de>2017-03-06 23:33:50 +0100
commitae7ab0847aabaa3f515b427a929266c8449a7b12 (patch)
treedd4fefda43ec93706cfc1db54a25806a5bc8a77b
parent33af6c875e8f2c61d07b45258e019b8db97d4d5c (diff)
downloadlobase-ae7ab0847aabaa3f515b427a929266c8449a7b12.tar.gz
include: update stdlib.h and link libutil headers
l---------include/imsg.h1
l---------include/ohash.h1
-rw-r--r--include/stdlib.h6
l---------[-rw-r--r--]include/util.h92
4 files changed, 9 insertions, 91 deletions
diff --git a/include/imsg.h b/include/imsg.h
new file mode 120000
index 0000000..e0196ec
--- /dev/null
+++ b/include/imsg.h
@@ -0,0 +1 @@
+../lib/libutil/imsg.h \ No newline at end of file
diff --git a/include/ohash.h b/include/ohash.h
new file mode 120000
index 0000000..1f11414
--- /dev/null
+++ b/include/ohash.h
@@ -0,0 +1 @@
+../lib/libutil/ohash.h \ No newline at end of file
diff --git a/include/stdlib.h b/include/stdlib.h
index 719a822..c42c592 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -52,6 +52,12 @@ int sradixsort(const unsigned char **, int, const unsigned char *, unsigned);
double strtod(const char *__restrict, char **__restrict);
long long strtonum(const char *, long long, long long, const char **);
long double strtold(const char *__restrict, char **__restrict);
+long random(void);
+void srandom(unsigned int);
+void srandom_deterministic(unsigned int);
+void srandomdev(void);
+char *initstate(unsigned int, char *, size_t);
+char *setstate(char *);
#endif /* _COMPAT_STDLIB_H_ */
diff --git a/include/util.h b/include/util.h
index 83ac040..df81d55 100644..120000
--- a/include/util.h
+++ b/include/util.h
@@ -1,91 +1 @@
-/* $OpenBSD: util.h,v 1.34 2013/06/03 21:07:02 tedu Exp $ */
-/* $NetBSD: util.h,v 1.2 1996/05/16 07:00:22 thorpej Exp $ */
-
-/*-
- * Copyright (c) 1995
- * The Regents of the University of California. All rights reserved.
- * Portions Copyright (c) 1996, Jason Downs. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef _UTIL_H_
-#define _UTIL_H_
-
-#include <sys/types.h>
-#include <stdio.h>
-
-/*
- * fparseln() specific operation flags.
- */
-#define FPARSELN_UNESCESC 0x01
-#define FPARSELN_UNESCCONT 0x02
-#define FPARSELN_UNESCCOMM 0x04
-#define FPARSELN_UNESCREST 0x08
-#define FPARSELN_UNESCALL 0x0f
-
-/*
- * uucplock(3) specific flags.
- */
-#define UU_LOCK_INUSE (1)
-#define UU_LOCK_OK (0)
-#define UU_LOCK_OPEN_ERR (-1)
-#define UU_LOCK_READ_ERR (-2)
-#define UU_LOCK_CREAT_ERR (-3)
-#define UU_LOCK_WRITE_ERR (-4)
-#define UU_LOCK_LINK_ERR (-5)
-#define UU_LOCK_TRY_ERR (-6)
-#define UU_LOCK_OWNER_ERR (-7)
-
-/*
- * fmt_scaled(3) specific flags.
- */
-#define FMT_SCALED_STRSIZE 7 /* minus sign, 4 digits, suffix, null byte */
-
-/*
- * stub struct definitions.
- */
-struct termios;
-struct utmp;
-struct winsize;
-
-__BEGIN_DECLS
-char *fparseln(FILE *, size_t *, size_t *, const char[3], int);
-void logwtmp(const char *, const char *, const char *);
-int pidfile(const char *);
-const char *uu_lockerr(int);
-int uu_lock(const char *);
-int uu_lock_txfr(const char *, pid_t);
-int uu_unlock(const char *);
-int fmt_scaled(long long, char *);
-int scan_scaled(char *, long long *);
-int pkcs5_pbkdf2(const char *, size_t, const uint8_t *, size_t,
- uint8_t *, size_t, unsigned int);
-int bcrypt_pbkdf(const char *, size_t, const uint8_t *, size_t,
- uint8_t *, size_t, unsigned int);
-
-__END_DECLS
-
-#endif /* !_UTIL_H_ */
+../lib/libutil/util.h \ No newline at end of file