Loading...
--- Libc/Libc-1725.40.4/stdio/FreeBSD/setvbuf.c
+++ Libc/Libc-997.90.3/stdio/FreeBSD/setvbuf.c
@@ -42,7 +42,6 @@
#include "un-namespace.h"
#include "local.h"
#include "libc_private.h"
-#include "libc_hooks_impl.h"
/*
* Set one of the three kinds of buffering, optionally including
@@ -63,9 +62,6 @@
if (mode != _IONBF)
if ((mode != _IOFBF && mode != _IOLBF) || (int)size < 0)
return (EOF);
-
- libc_hooks_will_write(fp, sizeof(*fp));
- libc_hooks_will_write(buf, size);
FLOCKFILE(fp);
/*
@@ -158,11 +154,7 @@
/* begin/continue reading, or stay in intermediate state */
fp->_w = 0;
}
-#ifdef __APPLE__
- __cleanup = 1;
-#else
__cleanup = _cleanup;
-#endif // __APPLE__
FUNLOCKFILE(fp);
return (ret);