Path: utzoo!attcan!uunet!ginosko!gem.mps.ohio-state.edu!apple!sun-barr!cs.utexas.edu!natinst!rpp386!jfh From: jfh@rpp386.cactus.org (John F. Haugh II) Newsgroups: comp.unix.wizards Subject: Re: Two identical filenames in one directory! Summary: OOPS ... Message-ID: <17083@rpp386.cactus.org> Date: 1 Oct 89 02:28:43 GMT References: <22@minya.UUCP> <2516@auspex.auspex.com> <8909300118.AA09366@beaches.hub.toronto.edu> <17076@rpp386.Dallas.TX.US> Reply-To: jfh@rpp386.cactus.org (John F. Haugh II) Organization: TrishTrash Readers, Inc. Lines: 17 In article <17076@rpp386.Dallas.TX.US> jfh@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@rpp386.cactus.org | ... Messages Are Crufty Hacks. UUCPNet: {texbell|bigtex}!rpp386!jfh +--------------------------------------