From 5610a6ae63a163468769d8b1400a386115b53ddf Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 1 Sep 2001 01:56:54 +0000 Subject: Back out disabling ungetc() at 0, use different solution: keep negative offset internally, but return 0 externally in ftell*() I.e. use 0 now as 'unspecified value' per POSIX ungetc() description. --- lib/libc/stdio/ungetc.3 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/libc/stdio/ungetc.3') diff --git a/lib/libc/stdio/ungetc.3 b/lib/libc/stdio/ungetc.3 index 6d657a8..83483be 100644 --- a/lib/libc/stdio/ungetc.3 +++ b/lib/libc/stdio/ungetc.3 @@ -83,10 +83,7 @@ if the operation fails. If the value of the argument .Fa c character equals -.Dv EOF -or current -.Fa stream -offset equals 0, +.Dv EOF , the operation will fail and the stream will remain unchanged. .Sh SEE ALSO .Xr fseek 3 , -- cgit v1.1