apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <jwool...@virginia.edu>
Subject RE: [PATCH] Be verbose during shl_load on HP-UX
Date Thu, 05 Jun 2003 03:47:09 GMT
On Wed, 4 Jun 2003, MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1) wrote:

> If I understand you correctly, libraries should return the errno (because
> errors may mean strings also), and not try writing anything to stderr. The
> application should do the job of writing to stderr.
> Is that just your opinion OR is it accepted programming practice OR is it
> documented somewhere ?..

Well, if it's just his opinion, I second it.  Libraries should return an
error to the caller, *not* print messages to some arbitrary file
descriptor (stderr in this case) which the caller may or may not still
have open.

I don't know if we have that documented as a standard for our library, but
we've followed it as an accepted standard to date anyway.


View raw message