From f8d7384dfddaea6de0253af9cde95396736034b5 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 7 Jan 2007 21:13:31 +0000 Subject: [PATCH] * Use __srefill() on OS X, too. It now works properly. --- doc/zzuf.1 | 10 +++++----- src/load-stream.c | 4 ---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/doc/zzuf.1 b/doc/zzuf.1 index e807156..5229043 100644 --- a/doc/zzuf.1 +++ b/doc/zzuf.1 @@ -285,11 +285,11 @@ using functions that are not in that list, \fBzzuf\fR will not fuzz its input consistently and the results should not be trusted. You can use a tool such as \fBltrace(1)\fR on Linux to know the missing functions. .PP -On some systems, such as FreeBSD, \fB__srefill\fR() is enough to monitor all -standard IO streams functions. On other systems each function needs to be -reimplemented on a case by case basis. One important unimplemented function -is \fBfscanf\fR(), because of its complexity. Missing functions will be -implemented based upon user request. +On BSD systems, such as FreeBSD or Mac OS X, \fB__srefill\fR() is enough to +monitor all standard IO streams functions. On other systems, such as Linux, +each function is reimplemented on a case by case basis. One important +unimplemented function is \fBfscanf\fR(), because of its complexity. Missing +functions will be added upon user request. .SH HISTORY .PP \fBZzuf\fR started its life in 2002 as the \fBstreamfucker\fR tool, a small diff --git a/src/load-stream.c b/src/load-stream.c index 2660c04..5fe2785 100644 --- a/src/load-stream.c +++ b/src/load-stream.c @@ -41,10 +41,6 @@ #include "load.h" #include "fd.h" -#if !defined __FreeBSD__ && !defined __OpenBSD__ -# undef HAVE___SREFILL -#endif - #ifdef HAVE___SREFILL int __srefill(FILE *fp); #endif