Subject: Re: Trailing '/' to mkdir(2) revisited
To: Ben Harris <bjh21@netbsd.org>
From: Todd Vierling <tv@pobox.com>
List: tech-kern
Date: 06/23/2003 13:28:04
On Mon, 23 Jun 2003, Ben Harris wrote:

: >The only reasons I can think of for keeping the current behaviour:
: >
: >(a) it's always been that way
: >(b) it's more efficient
:
: (c) POSIX requires it

Doesn't matter; there's -lposix.  A "POSIX wrapper" to detect the trailing
slash and return EINVAL or ENOENT or whatever it should be is trivial.  But
porting legacy sources that have been written with the trailing slash in
mind is a bit more work.

Many other NetBSD syscalls are not POSIX compliant.  They don't have to be.
That's why link-time libraries and -D_POSIX_SOURCE exist.

-- 
-- Todd Vierling <tv@pobox.com>