]> git.saurik.com Git - apple/libc.git/blobdiff - stdio/FreeBSD/wbuf.c.patch
Libc-825.24.tar.gz
[apple/libc.git] / stdio / FreeBSD / wbuf.c.patch
diff --git a/stdio/FreeBSD/wbuf.c.patch b/stdio/FreeBSD/wbuf.c.patch
deleted file mode 100644 (file)
index f878a04..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
---- wbuf.c.bsdnew      2009-11-11 13:33:20.000000000 -0800
-+++ wbuf.c     2009-11-11 13:33:22.000000000 -0800
-@@ -37,6 +37,7 @@ static char sccsid[] = "@(#)wbuf.c   8.1 (
- __FBSDID("$FreeBSD: src/lib/libc/stdio/wbuf.c,v 1.12 2007/01/09 00:28:08 imp Exp $");
- #include <stdio.h>
-+#include <errno.h>
- #include "local.h"
- /*
-@@ -61,8 +62,10 @@ __swbuf(c, fp)
-        * calls might wrap _w from negative to positive.
-        */
-       fp->_w = fp->_lbfsize;
--      if (prepwrite(fp) != 0)
-+      if (prepwrite(fp) != 0) {
-+              errno = EBADF;
-               return (EOF);
-+      }
-       c = (unsigned char)c;
-       ORIENT(fp, -1);