[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] memory mangement - leak forbyggelse.



On Wed, Mar 20, 2002 at 02:59:32PM +0100, Christian Hemmingsen wrote:
> "Klaus S. Madsen" <sslug@sslug> writes:
> 
> > Der er som udgangspunkt ikke et problem med strerror og tråede
> > programmer, da den returnerer en pointer til et statisk array af
> > strenge i næsten alle tilfælde. Kun hvis errnum ikke er en gyldig
> > fejlbesked, overskriver den informationerne i en streng.
> 
> Forkert. For som der står om strerror_r i (g)libc info siderne:
> " This function (strerror_r) should always be used in multi-threaded
>   programs since there is no way to guarantee the string returned by
>   `strerror' really belongs to the last call of the current thread."
Okey. Der har jeg så taget fejl, men på FreeBSD man-siderne så det ud
som om at det ikke skulle være noget problem, fordi den retunerede en
pointer til en streng i en liste..

-- 
/-----------------------------------------------------\
| Klaus S. Madsen      | "Failure is not an option... |
| ICQ: 45400164        |  It comes bundled with your  |
| www.hjernemadsen.org |  Microsoft products!"        |
\-----------------------------------------------------/


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *