K
Kevin Bracey
In message <Ihrvb.1618$NB4.26077@news20.bellglobal.com>
I think you might have missed a bit of this thread.
For RISC OS, it's not an OS function; it's a function of the C library. On a
Unix system, that would be a rather fine distinction, but RISC OS didn't have
the shared C library as part of the core OS for the first 4 years of its
life, and most of the core system components (filing systems, kernel, shell
etc) aren't written in C.
So Ctrl-D is for RISC OS in no way part of its "standard" interface. It
performs an entirely different function at the normal command line. Only
programs written in C using the Acorn C library interpret it as EOF. And I'm
not aware of any C programs using terminal input being supplied with the OS
at all. I'm also not even sure whether programs compiled with the GNU C
Library function the same way. Which goes back to my original point - I was
providing a counter-example to those saying that how to generate EOF is an
"OS" feature. For RISC OS it's just a C implementation feature.
Terminal input EOF is a C concept, alien to this particular operating system,
and maybe others. Which is why I wouldn't be adverse to it getting a mention
in the FAQ, pointing out that it is a feature C inherits from Unix, and
saying something like "if your OS doesn't have terminal EOF, the C library
implementors may have used Ctrl-D or Ctrl-Z; check your implementation's
documentation".
Lew Pitcher said:You probably won't find it in either of those manuals. You'll likely find
the doc on how to generate the EOF signal in whatever RISC OS 'user'
manuals are out there. Since the EOF condition is something that the OS
reports to the runtime/application, its generation will be specific to the
OS (although the mechanism that the OS uses to signal EOF to the runtime
may be discussed in the documentation for the runtime). How the OS
determines EOF will be documented in the OS documentation.
I think you might have missed a bit of this thread.
For RISC OS, it's not an OS function; it's a function of the C library. On a
Unix system, that would be a rather fine distinction, but RISC OS didn't have
the shared C library as part of the core OS for the first 4 years of its
life, and most of the core system components (filing systems, kernel, shell
etc) aren't written in C.
So Ctrl-D is for RISC OS in no way part of its "standard" interface. It
performs an entirely different function at the normal command line. Only
programs written in C using the Acorn C library interpret it as EOF. And I'm
not aware of any C programs using terminal input being supplied with the OS
at all. I'm also not even sure whether programs compiled with the GNU C
Library function the same way. Which goes back to my original point - I was
providing a counter-example to those saying that how to generate EOF is an
"OS" feature. For RISC OS it's just a C implementation feature.
Terminal input EOF is a C concept, alien to this particular operating system,
and maybe others. Which is why I wouldn't be adverse to it getting a mention
in the FAQ, pointing out that it is a feature C inherits from Unix, and
saying something like "if your OS doesn't have terminal EOF, the C library
implementors may have used Ctrl-D or Ctrl-Z; check your implementation's
documentation".