fatbase

portable OpenBSD tools
git clone git://git.2f30.org/fatbase
Log | Files | Refs

commit 8ed9c862b2e3d91a62cd38b60b2596ee0e9a2705
parent c2887849c135227b20ef4c71691bf284864236e5
Author: sin <sin@2f30.org>
Date:   Tue, 18 Nov 2014 17:28:36 +0000

Cleanup util.h

Diffstat:
Mawk/util.h | 2++
Mdiff/util.h | 10+++++-----
Msed/util.h | 2++
3 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/awk/util.h b/awk/util.h @@ -3,6 +3,8 @@ #include <stdint.h> uint32_t arc4random(void); + void *reallocarray(void *, size_t, size_t); + size_t strlcat(char *, const char *, size_t); size_t strlcpy(char *, const char *, size_t); diff --git a/diff/util.h b/diff/util.h @@ -6,12 +6,12 @@ #define SIZE_MAX ((size_t)-1) #endif -void warnc (int code, const char *format, ...); -void vwarnc (int code, const char *format, va_list ap); -void errc (int status, int code, const char *format, ...); -void verrc (int status, int code, const char *format, va_list ap); - char *fgetln(FILE *, size_t *); +void warnc(int, const char *, ...); +void vwarnc(int, const char *, va_list); +void errc(int, int code, const char *, ...); +void verrc(int, int code, const char *, va_list); + size_t strlcat(char *, const char *, size_t); size_t strlcpy(char *, const char *, size_t); diff --git a/sed/util.h b/sed/util.h @@ -5,6 +5,8 @@ #define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) char *fgetln(FILE *, size_t *); + void *reallocarray(void *, size_t, size_t); + size_t strlcat(char *, const char *, size_t); size_t strlcpy(char *, const char *, size_t);