This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: does gconv issue system calls ?
On Jan 12, 2008 2:23 AM, Pierre Habouzit <madcoder@debian.org> wrote:
> On Fri, Jan 11, 2008 at 08:35:07AM +0000, Metuki Sabhe wrote:
> > hi all...
> >
> > I am trying to understand better the internals of glibc,
> > and was wondering about the gconv subsystem -
> > is it pure user-space work (sounds logical) or does
> > it issue system calls (i will be surprised if yes) ?
>
> It mostly uses read/writes to read files, and uses mmap extensively
> too. As it also malloc's, it's possible to use some mmaps from there
> too. Also, to achieve thread-safety I _think_ there is some locking,
> which could end up calling futex(2). Here are the ones that come to
> mind, I probably miss a couple of other things too.
thanks !
>
> --
> ·O· Pierre Habouzit
> ··O madcoder@debian.org
> OOO http://www.madism.org
>