SCCS-vsn: lib/libc/stdio/fseek.c 5.5
SCCS-vsn: lib/libc/stdio/refill.c 5.2
SCCS-vsn: lib/libc/stdio/setvbuf.c 5.2
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)fseek.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)fseek.c 5.5 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
* do it. Allow the seek function to change fp->_bf._base.
*/
dumb:
* do it. Allow the seek function to change fp->_bf._base.
*/
dumb:
(*seekfn)(fp->_cookie, offset, whence) == POS_ERR) {
return (EOF);
}
(*seekfn)(fp->_cookie, offset, whence) == POS_ERR) {
return (EOF);
}
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)refill.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)refill.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <errno.h>
#endif /* LIBC_SCCS and not lint */
#include <errno.h>
{
if ((fp->_flags & (__SLBF|__SWR)) == __SLBF|__SWR)
{
if ((fp->_flags & (__SLBF|__SWR)) == __SLBF|__SWR)
}
/* switch to reading */
if (fp->_flags & __SWR) {
}
/* switch to reading */
if (fp->_flags & __SWR) {
return (EOF);
fp->_flags &= ~__SWR;
fp->_w = 0;
return (EOF);
fp->_flags &= ~__SWR;
fp->_w = 0;
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)setvbuf.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)setvbuf.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
* Free old buffer if it was from malloc(). Clear line and
* non buffer flags, and clear malloc flag.
*/
* Free old buffer if it was from malloc(). Clear line and
* non buffer flags, and clear malloc flag.
*/
fp->_r = 0;
fp->_lbfsize = 0;
if (fp->_flags & __SMBF)
fp->_r = 0;
fp->_lbfsize = 0;
if (fp->_flags & __SMBF)