Add HISTORY section to getc(3) man page
MFC: 2 days
PR: 240269
Differential D24147
Add HISTORY section to getc(3) man page carlavilla on Mar 22 2020, 11:38 AM. Authored by
Details
Diff Detail
Event TimelineComment Actions I don't think this is right. Can you cite your sourse? Stdio didn't happen until V7. And the earlier io library was V6. And we don't have good sources pre v5. Comment Actions getc and getw first appear in the V1 man page. Comment Actions Hi @imp, as the author of the original PR, I try to clarify the sources in question. The newly introduces HISTORY section comes from OpenBSD, which originates from http://minnie.tuhs.org/cgi-bin/utree.pl. Jörg Schwarze did some research and pointed out that these functions actually predate 2BSD and the mentioned UNIX versions are the nearest version to match for the HISTORY section. However, if you think that this HISTORY section needs an update I am willing to refresh it. To sum it up, would it be okay to say that the getc and getw functions first appeared in AT&T Unix V1 and that they changed their buffer size around AT&T V7? I'll also update getchar() first appearance from AT&T V2 to V4. Comment Actions Yea. I think it's sufficient to say "getc and getw appeared, in a similar form in V1 and were integrated into stdio in V7" That's likely enough history for the man page... the buffer sizes and stuff was me just taking notes what I saw.
Yea, updating that to v4 is likely enough. It never took an arg, and was silently migrated to stdio in v7, but the underlying mechanism likely isn't of much interest. I've used TUHS a lot, as well as given a couple of history of early unix talks recently... |