[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Incorporating other calls into the



Hi Julian,

On Wed, Jun 30, 1999 at 12:10:49AM +0200, Julian Reschke wrote:
> > What about for example localtime and gmtime?  As far as I remember they
> > _must_ return a pointer to the same static buffer.  Or strtok? Or
> > getpwent?
> 
> Well, if they need static storage, they either need to allocate it on their
> own on a thread basis, or they can't be used in a multi threaded program or
> in a MagiC style library-

All these functions are not thread-safe (use gmtime_r, localtime_r,
strtok_r or getpwent_r instead).  But, does that mean that the MagiC
concept also shares the data segment of the objects?

> > I must admit that I'm currently not certain which symbols will end up in
> > the text and which will end up in the data segment.
> >
> > Anyway, if the SLB loader requires major changes in the MiNTLib, please
> > don't expect me to do this on my own and within a week.  (This remark is
> > not addressed to Julian but to all that want to use the SLB loader).
> 
> Nobody expects this.

Nobody -> most people. ;-))

Ciao

Guido
-- 
http://stud.uni-sb.de/~gufl0000
mailto:gufl0000@stud.uni-sb.de