Two identical filenames in one directory!
John F. Haugh II
jfh at rpp386.cactus.org
Sun Oct 1 12:28:43 AEST 1989
In article <17076 at rpp386.Dallas.TX.US> jfh at rpp386.cactus.org I wrote -
>mkdir creates those entries with mknod, not write. In fact, mkdir
>doesn't create() directories, it mknod()s all of the entries. Only
>the low 9 bits of the file mode are honored by create, to get the
>other 7 bits you have to use mknod().
Yeh, yeh, yeh. I screwed up.
mkdir creates the original directory entry with mknod(). The entries
for "." and ".." are both created with link().
Thanks to Guy Harris for pointing this out.
--
John F. Haugh II +-Things you didn't want to know:------
VoiceNet: (512) 832-8832 Data: -8835 | The real meaning of MACH is ...
InterNet: jfh at rpp386.cactus.org | ... Messages Are Crufty Hacks.
UUCPNet: {texbell|bigtex}!rpp386!jfh +--------------------------------------
More information about the Comp.unix.wizards
mailing list