EINVAL (was Re: FileNames with the high bit set.)

Scott Schwartz schwartz at gondor.cs.psu.edu
Mon Apr 11 11:49:25 AEST 1988


In article <7653 at brl-smoke.ARPA> gwyn at brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) writes:
>In article <8120010 at eecs.nwu.edu> naim at eecs.nwu.edu (Naim Abdullah) writes:
>>... open(2) and creat(2) return EINVAL if the pathname
>>supplied to them has a character with the high order bit set.
>
>I don't recall exactly which release of 4BSD introduced this "yet
>another better idea", somewhere around 4.1cBSD I think.  Yes, it
>is a bogus feature.  

Made even more strange and bogus when you notice that in the unix domain
	rv = bind(s,sa,sizeof(sa));  /* yes, I know this is incorrect */
returns EINVAL even if the filename part of sa contains only valid
characters and '\0's (at least in SunOS 3.4).  4.3BSD doesn't complain,
though.  This one had some poor grad students on a Sun very upset
for a while: "But 0 has no high bits set!"


-- Scott Schwartz                       | Your array may be without head or     
        schwartz at gondor.cs.psu.edu      | tail, yet it will be proof against
                                        | defeat.  -- Sun Tzu, "The Art of War"



More information about the Comp.unix.wizards mailing list