This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: does gconv issue system calls ?


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.

-- 
ÂOÂ  Pierre Habouzit
ÂÂO                                                madcoder@debian.org
OOO                                                http://www.madism.org

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]