Subject: Re: mkdir with trailing / (patch proposed)
To: NetBSD Userlevel Technical Discussion List <tech-userlevel@NetBSD.ORG>
From: Greg A. Woods <>
List: tech-kern
Date: 04/28/2002 18:39:58
[ On Monday, April 29, 2002 at 04:53:40 (+0900), Izumi Tsutsui wrote: ]
> Subject: Re: mkdir with trailing / (patch proposed)
> I'm not sure what you mean as "requirement" of _UNIX_ compatability,
> but we cannot support all features of lots of ancient systems anyway.

UTSL!  I.e. read Lions or any one of the freely available Unix releases
-- and be assured the code is nearly identical in function even in the
most modern commercial Unix.  There's nothing "ancient" about this
feature except its heritage, which speaks only to its importance and
longevity.  In Unix one or more slashes at any point in a directory
pathname, including at the end, are and have always been, treated as a
single separator.

> I guess just NetBSD chooses POSIX for standard of UNIX-like OS.

This one is fundamental to all filename parsing in the kernel and is a
de facto standard.

								Greg A. Woods

+1 416 218-0098;  <>;  <>;  <>
Planix, Inc. <>; VE3TCP; Secrets of the Weird <>