In article <44568477$0$18306$>,
Hercule POIROT <> wrote:
>Furthermore, programmers are not so stupid as to have sclattered their
>efforts amongst several different standards or interfaces about the
>single topic of 64-bit file access ; most of them know of the POSIX
>standard
Except for the OS functions that predate the standard, that
are in the operating systems of companies that developed the
ideas that the standards were derived from...
>Since I want to talk about portable C code, I mean to develop for a
>target that has a POSIX-compliant stdio library.
>In addition, is talking about functional and as portable as feasible C (
>but non pure-C ) source code out of the scope of this newsgroup ?
Yes. In this newsgroup we interpret programs in terms of the
existing C standards, and generally consider as off-topic any
program whose source relies upon features not found in those
standards.
If there is any call to a routine whose standard-C
compliant source is not given and whose -exact- semantics
is not documented, then we generally assume that the purpose
of said routine is to remove all files, launch a nuclear bomb,
and divide by zero -- and if those things haven't happened yet,
we presume that it is only due to bugs in the implementation.
>We could even say that an int has no size in C since it is
>platform-dependent !!!
No, it just doesn't have a -fixed- size in C. The C standards
make it clear that it must be able to hold at least 32767,
but the C standards are agnostic as to whether that's one
byte or two, and agnostic about whether 1<<31-1 is one, two,
or four bytes. {Hmmm, let's see, if a char was 12 bits long,
then 1<<31-1 could be represented in 3 bytes, so sizeof(int) could
possibly even be 3.}
If someone were to give you instructions to "Put on your shoe
and kick the football", then would you say that your shoe has
no size because it is wearer-dependant ?
>If, let's say in near future, MS Windows provides us with a Standard C
>Library that is POSIX-compliant towards 64-bit file access, couldn't we
>say that today's C language and its standard library are the common
>denominator of accessing 64-bit files under all these OSes : UNIX,
>Linux, *BSD, MS Windows, and so on ... ?
No, today's "standard library" for C knows nothing about 64 bit
files, and there are still numerous Unices that have no 64 bit files.
>Can you all really evoke C programming without its standard libraries ?
POSIX is not a C standard library. POSIX is an OS implementation
library which is an add-on.
>What about access to 64-bit files under a 32-bit platform that uses a
>64-bit-aware filesystem; and its coding in C with / APPROPRIATE standard
>libraries under APPROPRIATE OSes ?
This newsgroup works with the C standard library. Libraries
belonging to other standards are off-topic here (unless they are
coded in standard C without extensions.)
--
Is there any thing whereof it may be said, See, this is new? It hath
been already of old time, which was before us. -- Ecclesiastes