[Bug 240269] Add HISTORY section to getc(3) man page

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Mar 22 14:13:30 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240269

Warner Losh <imp at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |imp at FreeBSD.org

--- Comment #1 from Warner Losh <imp at FreeBSD.org> ---
getc and getw first appear in the V1 man page.
but they aren't in what little v1 sources we have.
They are in the unix-72 which is closer to a v2 or v3 system.
And getc/getw aren't the current modern ones, but took an argument that was an
iobuf, not a FILE* They didn't become the modern form until V7 with stdio.
They also changed between v1 and v2 (the buffer size rose from 128 bytes to 512
bytes).
So it's likely better to say 'routines of the same name, but different calling
conventions, originated in v1'.
I can't find getchar in the V2 man page, nor v3. But it is in the v4 man pages
(man page is named getchr.3, but documents getchar()).
fgetc.c first appears in stdio in V7.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-doc mailing list