BSD vs SYS V
Jon Brawn
jonb at specialix.co.uk
Fri Dec 7 23:46:37 AEST 1990
OK, lets get one thing straight.
The world is NOT a VAX, nor is it a BSD derivative.
The world is a mix, Xenix, Unix V7, BSD 4.2, BSD 4.3, SunOS, RISC-OS,
Ultrix, SYS V.3.x, Minix, SYS V.4... to mention a few.
Thus, when you refer to stat, you can never be sure what you get.
When you refer to symbolic links, you can be sure that not everyone
has them. Same thing applies to sockets and streams and things like
that.
What i would ask is that if you make a statement that all you need to
do is look at the size of the file (to determine if it has holes in it)
then you also add a qualifier about using st_blocks, and how on BSD 4.x
that this corresponds to the real number of blocks.
That would save a lot of the confusion.
Thanks!
--
"These opinions where made up on the spur of the moment, to a formula kept
secret from prying eyes for hundreds of years, and bear no relationship to
my actual beliefs, let alone those of Specialix International"
Jon Brawn, jonb at specialix.co.uk "I didn't do it. I wan't there."
More information about the Comp.unix.internals
mailing list