" I have gone to the mountain-top and learned that the following
is Written in Stone. The mandatory alignment of a character
array is Two; and Two is the mandatory alignment of a
character array. "
I proposed a very generic improvement to the compiler, which would automatically fix this and similar problems.
There was a young man whom we enlisted as Ambassador to The Software
Gurus and his response, explaining that the compiler would NOT be
modified, struck me as ... amusing!
Open source project would implement at least error checking in (2) and probably (3).
As background: When a BSD or SunOS 3.0 application reads a regular
file, the read goes into kernel memory and the data is then copied.
With SunOS 4.0, memory-mapping is used and is done carefully.
*But none of this applies when reading a RAW device.*
This is a TRUE story from about 36 years ago. I was working with SunOS 4.0 >before it had been released to any customers. I wanted to inspect a disk >label and typed
cp /dev/rsd01 Label
Sysop: | Tetrazocine |
---|---|
Location: | Melbourne, VIC, Australia |
Users: | 14 |
Nodes: | 8 (0 / 8) |
Uptime: | 36:01:54 |
Calls: | 178 |
Files: | 21,502 |
Messages: | 78,782 |