[PATCH] BROKEN_STRNDUP and BROKEN_STRNLEN and AIX
Heinrich Mislik
Heinrich.Mislik at univie.ac.at
Wed May 22 05:22:17 MDT 2013
On 22 May 2013 at 17:39, Andrew Bartlett wrote:
> I'm wondering if either of you know more about the allegation that
> strndup and strnlen are broken on AIX?
Allthoug there is an entry in libc, documentation says:
For AIX 5.3:
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/topic/com.ibm.ai
x.basetechref/doc/basetrf2/basetrf2.htm
There is no strndup or strnlen.
For AIX 6.1:
http://pic.dhe.ibm.com/infocenter/aix/v6r1/topic/com.ibm.aix.basetechr
ef/doc/basetrf2/s_nav.htm
there is strnlen, no strndup.
For AIX 7.1
http://pic.dhe.ibm.com/infocenter/aix/v7r1/topic/com.ibm.aix.basetechr
ef/doc/basetrf2/s_nav.htm
there are strndup and strnlen
I could not reproduce the behaviour from
https://bugzilla.samba.org/show_bug.cgi?id=1097
on any current AIX I have available (5.3, 6.1). It seems to be
fixed by now. I still think, one should not use functions,
that are not documented.
Cheers
Heinrich
--
Heinrich Mislik
Zentraler Informatikdienst der Universitaet Wien
A-1010 Wien, Universitaetsstrasse 7
Tel.: (+43 1) 4277-14056, Fax: (+43 1) 4277-9140
More information about the samba-technical
mailing list