vfprintf.c (97407) | vfprintf.c (101776) |
---|---|
1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Torek. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 24 unchanged lines hidden (view full) --- 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 */ 36 37#if defined(LIBC_SCCS) && !defined(lint) 38static char sccsid[] = "@(#)vfprintf.c 8.1 (Berkeley) 6/4/93"; 39#endif /* LIBC_SCCS and not lint */ 40#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Torek. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 24 unchanged lines hidden (view full) --- 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 */ 36 37#if defined(LIBC_SCCS) && !defined(lint) 38static char sccsid[] = "@(#)vfprintf.c 8.1 (Berkeley) 6/4/93"; 39#endif /* LIBC_SCCS and not lint */ 40#include <sys/cdefs.h> |
41__FBSDID("$FreeBSD: head/lib/libc/stdio/vfprintf.c 97407 2002-05-28 17:03:12Z alfred $"); | 41__FBSDID("$FreeBSD: head/lib/libc/stdio/vfprintf.c 101776 2002-08-13 09:30:41Z tjr $"); |
42 43/* 44 * Actual printf innards. 45 * 46 * This code is large and complicated... 47 */ 48 49#include "namespace.h" --- 96 unchanged lines hidden (view full) --- 146 FILE fake; 147 unsigned char buf[BUFSIZ]; 148 149 /* copy the important variables */ 150 fake._flags = fp->_flags & ~__SNBF; 151 fake._file = fp->_file; 152 fake._cookie = fp->_cookie; 153 fake._write = fp->_write; | 42 43/* 44 * Actual printf innards. 45 * 46 * This code is large and complicated... 47 */ 48 49#include "namespace.h" --- 96 unchanged lines hidden (view full) --- 146 FILE fake; 147 unsigned char buf[BUFSIZ]; 148 149 /* copy the important variables */ 150 fake._flags = fp->_flags & ~__SNBF; 151 fake._file = fp->_file; 152 fake._cookie = fp->_cookie; 153 fake._write = fp->_write; |
154 fake._extra = fp->_extra; |
|
154 155 /* set up the buffer */ 156 fake._bf._base = fake._p = buf; 157 fake._bf._size = fake._w = sizeof(buf); 158 fake._lbfsize = 0; /* not actually used, but Just In Case */ 159 160 /* do the work, then copy any error status */ 161 ret = __vfprintf(&fake, fmt, ap); --- 1301 unchanged lines hidden --- | 155 156 /* set up the buffer */ 157 fake._bf._base = fake._p = buf; 158 fake._bf._size = fake._w = sizeof(buf); 159 fake._lbfsize = 0; /* not actually used, but Just In Case */ 160 161 /* do the work, then copy any error status */ 162 ret = __vfprintf(&fake, fmt, ap); --- 1301 unchanged lines hidden --- |