[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] strncasecmp and AIX
From: |
Paul Eggert |
Subject: |
Re: [Bug-gnulib] strncasecmp and AIX |
Date: |
Sat, 27 Mar 2004 00:34:06 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
>> I always feel much better about such things to use the system
>> declaration if present.
>
> Agreed. But if the declaration is in a stone-age file like <strings.h>,
> and only on one system (AIX), I feel safe also without this declaration.
It wouldn't be only on one system, as <strings.h> and strcasecmp are
part of the XSI extension to POSIX 1003.1-2001. See:
http://www.opengroup.org/onlinepubs/007904975/functions/strcasecmp.html
There used to be hosts whose standard headers defined "strcasecmp"
with a different signature than the now-standard one, and I assume
that use of "strcase.h" would cause trouble on such hosts. Examples
include SunOS 4.1.x and CONVEX OS 9.1. See:
http://groups.google.com/groups?selm=matt.767985934%40koala.x.org
http://groups.google.com/groups?selm=199405091610.MAA14752%40gemini.larc.nasa.gov
(dated about 10 years ago, in both cases). I doubt whether this would
come up in any modern host, though, and I'd let sleeping dogs lie
unless they bark.