Loading...
--- Libc/Libc-1725.40.4/stdio/FreeBSD/stdio.c
+++ Libc/Libc-320/stdio/FreeBSD/stdio.c
@@ -13,6 +13,10 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the University of
+ * California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
@@ -34,7 +38,7 @@
static char sccsid[] = "@(#)stdio.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/lib/libc/stdio/stdio.c,v 1.28 2008/05/05 16:14:02 jhb Exp $");
+__FBSDID("$FreeBSD: src/lib/libc/stdio/stdio.c,v 1.24 2003/01/07 06:17:13 tjr Exp $");
#include "namespace.h"
#include <errno.h>
@@ -50,7 +54,10 @@
* Small standard I/O/seek/close functions.
*/
int
-__sread(void *cookie, char *buf, int n)
+__sread(cookie, buf, n)
+ void *cookie;
+ char *buf;
+ int n;
{
FILE *fp = cookie;
@@ -58,7 +65,10 @@
}
int
-__swrite(void *cookie, char const *buf, int n)
+__swrite(cookie, buf, n)
+ void *cookie;
+ char const *buf;
+ int n;
{
FILE *fp = cookie;
@@ -66,7 +76,10 @@
}
fpos_t
-__sseek(void *cookie, fpos_t offset, int whence)
+__sseek(cookie, offset, whence)
+ void *cookie;
+ fpos_t offset;
+ int whence;
{
FILE *fp = cookie;
@@ -74,7 +87,8 @@
}
int
-__sclose(void *cookie)
+__sclose(cookie)
+ void *cookie;
{
return (_close(((FILE *)cookie)->_file));
@@ -84,7 +98,10 @@
* Higher level wrappers.
*/
int
-_sread(FILE *fp, char *buf, int n)
+_sread(fp, buf, n)
+ FILE *fp;
+ char *buf;
+ int n;
{
int ret;
@@ -102,7 +119,10 @@
}
int
-_swrite(FILE *fp, char const *buf, int n)
+_swrite(fp, buf, n)
+ FILE *fp;
+ char const *buf;
+ int n;
{
int ret;
int serrno;
@@ -129,7 +149,10 @@
}
fpos_t
-_sseek(FILE *fp, fpos_t offset, int whence)
+_sseek(fp, offset, whence)
+ FILE *fp;
+ fpos_t offset;
+ int whence;
{
fpos_t ret;
int serrno, errret;