Re: cvs commit: src/include fnmatch.h

From: Alfred Perlstein <bright_at_mu.org>
Date: Wed, 17 Dec 2003 05:39:53 -0800
* Jacques A. Vidrine <nectar_at_FreeBSD.org> [031217 05:23] wrote:
> On Tue, Dec 16, 2003 at 06:54:29PM -0800, Jordan K. Hubbard wrote:
> > jkh         2003/12/16 18:54:29 PST
> > 
> >   FreeBSD src repository
> > 
> >   Modified files:
> >     include              fnmatch.h 
> >   Log:
> >   Conformance: Define FNM_NOSYS (see http://www.opengroup.org/onlinepubs/007904975/basedefs/fnmatch.h.html)
> >   
> >   Revision  Changes    Path
> >   1.12      +2 -0      src/include/fnmatch.h
> 
> On Tue, Dec 16, 2003 at 06:56:28PM -0800, Jordan K. Hubbard wrote:
> > jkh         2003/12/16 18:56:28 PST
> > 
> >   FreeBSD src repository
> > 
> >   Modified files:
> >     include              regex.h 
> >   Log:
> >   Conformance: Add REG_ENOSYS (see http://www.opengroup.org/onlinepubs/007904975/basedefs/regex.h.html)
> >   
> >   Revision  Changes    Path
> >   1.7       +1 -0      src/include/regex.h
> 
> 
> I don't understand ... why add these defines that are marked
> `obsolescent'?  We don't use them now (clearly), strictly conforming
> applications cannot use them, and they may be widthdrawn from the
> referenced standard in the future.

It is still required for standards conformance.

There may be tools out there that expect to "just work" like so

switch (id) {
...
case FNM_NOSYS:
  str = "FNM_NOSYS";
...
}

and those should "just work".

-- 
- Alfred Perlstein
- Research Engineering Development Inc.
- email: bright_at_mu.org cell: 408-480-4684
Received on Wed Dec 17 2003 - 05:40:15 UTC