httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Finch <...@dotat.at>
Subject Re: Deja vu
Date Tue, 02 Jan 2001 16:58:58 GMT
Ben Laurie <ben@algroup.co.uk> wrote:
>
>getpwnam _does_ exist in the threaded library - so I'd guess it is
>reentrant. It's just that getpwnam_r doesn't exist.

No, the API prevents it from being re-entrant: subsequent calls to
getpw* functions may alter the contents of the memory pointed to by
the return value. It exists in libc_r because libc_r is a replacement
for libc so it must include every function.

Tony.
-- 
f.a.n.finch    fanf@covalent.net    dot@dotat.at
"Then they attacked a town. A small town, I'll admit.
But nevertheless a town of people. People who died."

Mime
View raw message