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

RE: [MiNT] Incorporating other calls into the



> From: owner-mint@fishpool.com [mailto:owner-mint@fishpool.com]On Behalf
> Of Guido Flohr
> Sent: Wednesday, June 30, 1999 4:43 AM
> To: MiNT mailing list
> Subject: 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

Are those standardized somewhere?

> concept also shares the data segment of the objects?

Yes. It is really just a simple extension of the program format, but it has
the advantage that any compiler can generate code for that.

> > > 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. ;-))