aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2016-10-19 17:01:55 +0100
committerRon Yorston <rmy@pobox.com>2016-10-19 17:01:55 +0100
commit075814c60a316cfd088c88f26f75ab21b5850b98 (patch)
treef6e33ac693630827deb309faa5fa4931588db57d /include/libbb.h
parent977d65c1bbc57f5cdd0c8bfd67c8b5bb1cd390dd (diff)
parentf37e1155aabde6bd95d267a8aec347cedccb8bc3 (diff)
downloadbusybox-w32-075814c60a316cfd088c88f26f75ab21b5850b98.tar.gz
busybox-w32-075814c60a316cfd088c88f26f75ab21b5850b98.tar.bz2
busybox-w32-075814c60a316cfd088c88f26f75ab21b5850b98.zip
Merge branch busybox (up to "ash: comment out free(p) just before...")
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h26
1 files changed, 18 insertions, 8 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 6db03d2df..30a0e00ba 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -196,24 +196,33 @@ int klogctl(int type, char *b, int len);
196/* Busybox does not use threads, we can speed up stdio. */ 196/* Busybox does not use threads, we can speed up stdio. */
197#ifdef HAVE_UNLOCKED_STDIO 197#ifdef HAVE_UNLOCKED_STDIO
198# undef getc 198# undef getc
199# define getc(stream) getc_unlocked(stream) 199# define getc(stream) getc_unlocked(stream)
200# undef getchar 200# undef getchar
201# define getchar() getchar_unlocked() 201# define getchar() getchar_unlocked()
202# undef putc 202# undef putc
203# define putc(c, stream) putc_unlocked(c, stream) 203# define putc(c,stream) putc_unlocked(c,stream)
204# undef putchar 204# undef putchar
205# define putchar(c) putchar_unlocked(c) 205# define putchar(c) putchar_unlocked(c)
206# undef fgetc 206# undef fgetc
207# define fgetc(stream) getc_unlocked(stream) 207# define fgetc(stream) getc_unlocked(stream)
208# undef fputc 208# undef fputc
209# define fputc(c, stream) putc_unlocked(c, stream) 209# define fputc(c,stream) putc_unlocked(c,stream)
210#endif 210#endif
211/* Above functions are required by POSIX.1-2008, below ones are extensions */ 211/* Above functions are required by POSIX.1-2008, below ones are extensions */
212#ifdef HAVE_UNLOCKED_LINE_OPS 212#ifdef HAVE_UNLOCKED_LINE_OPS
213# undef fgets 213# undef fgets
214# define fgets(s, n, stream) fgets_unlocked(s, n, stream) 214# define fgets(s,n,stream) fgets_unlocked(s,n,stream)
215# undef fputs 215# undef fputs
216# define fputs(s, stream) fputs_unlocked(s, stream) 216# define fputs(s,stream) fputs_unlocked(s,stream)
217/* musl <= 1.1.15 does not support fflush_unlocked(NULL) */
218//# undef fflush
219//# define fflush(stream) fflush_unlocked(stream)
220# undef feof
221# define feof(stream) feof_unlocked(stream)
222# undef ferror
223# define ferror(stream) ferror_unlocked(stream)
224# undef fileno
225# define fileno(stream) fileno_unlocked(stream)
217#endif 226#endif
218 227
219 228
@@ -1755,6 +1764,7 @@ typedef struct sha512_ctx_t {
1755typedef struct sha3_ctx_t { 1764typedef struct sha3_ctx_t {
1756 uint64_t state[25]; 1765 uint64_t state[25];
1757 unsigned bytes_queued; 1766 unsigned bytes_queued;
1767 unsigned input_block_bytes;
1758} sha3_ctx_t; 1768} sha3_ctx_t;
1759void md5_begin(md5_ctx_t *ctx) FAST_FUNC; 1769void md5_begin(md5_ctx_t *ctx) FAST_FUNC;
1760void md5_hash(md5_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC; 1770void md5_hash(md5_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC;