Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdio The flush function makes the tests fail. So u...



details:   https://anonhg.NetBSD.org/src/rev/0c336dc18bb3
branches:  trunk
changeset: 778484:0c336dc18bb3
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Mar 29 14:27:33 2012 +0000

description:
The flush function makes the tests fail. So undo it for now until we decide
if the tests are wrong or the flushing is wrong.

diffstat:

 lib/libc/stdio/fmemopen.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (44 lines):

diff -r e90228fbfdd4 -r 0c336dc18bb3 lib/libc/stdio/fmemopen.c
--- a/lib/libc/stdio/fmemopen.c Thu Mar 29 13:05:10 2012 +0000
+++ b/lib/libc/stdio/fmemopen.c Thu Mar 29 14:27:33 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fmemopen.c,v 1.7 2012/03/27 15:05:42 christos Exp $ */
+/* $NetBSD: fmemopen.c,v 1.8 2012/03/29 14:27:33 christos Exp $ */
 
 /*-
  * Copyright (c)2007, 2010 Takehiko NOZAKI,
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fmemopen.c,v 1.7 2012/03/27 15:05:42 christos Exp $");
+__RCSID("$NetBSD: fmemopen.c,v 1.8 2012/03/29 14:27:33 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <assert.h>
@@ -98,6 +98,7 @@
        return (ssize_t)(p->cur - s);
 }
 
+#ifdef notyet
 static int
 fmemopen_flush(void *cookie)
 {
@@ -111,6 +112,7 @@
        *p->cur = '\0';
        return 0;
 }
+#endif
 
 static off_t
 fmemopen_seek(void *cookie, off_t offset, int whence)
@@ -221,7 +223,9 @@
        fp->_write  = (flags & __SRD) ? NULL : fmemopen_write;
        fp->_read   = (flags & __SWR) ? NULL : fmemopen_read;
        fp->_seek   = fmemopen_seek;
+#ifdef notyet
        fp->_flush  = fmemopen_flush;
+#endif
        fp->_cookie = (void *)cookie;
 
        return fp;



Home | Main Index | Thread Index | Old Index