Loading...
--- Libc/Libc-1725.40.4/stdio/FreeBSD/fwrite.c
+++ Libc/Libc-997.90.3/stdio/FreeBSD/fwrite.c
@@ -42,7 +42,6 @@
#include "local.h"
#include "fvwrite.h"
#include "libc_private.h"
-#include "libc_hooks_impl.h"
/*
* The maximum amount to write to avoid integer overflow (especially for
@@ -56,8 +55,10 @@
* Return the number of whole objects written.
*/
size_t
-fwrite(const void * __restrict buf, size_t size, size_t count,
- FILE * __restrict fp)
+fwrite(buf, size, count, fp)
+ const void * __restrict buf;
+ size_t size, count;
+ FILE * __restrict fp;
{
size_t n, resid;
struct __suio uio;
@@ -75,8 +76,6 @@
uio.uio_iov = &iov;
uio.uio_iovcnt = 1;
- libc_hooks_will_write(fp, sizeof(*fp));
-
FLOCKFILE(fp);
ORIENT(fp, -1);
@@ -84,8 +83,6 @@
s = resid > INT_MAX ? MAXWRITE : (int)resid;
iov.iov_base = (void *)buf;
uio.uio_resid = iov.iov_len = s;
-
- libc_hooks_will_read(buf, s);
/*
* The usual case is success (__sfvwrite returns 0);