Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jul 2005 16:15:50 +0530
From:      Dipjyoti Saikia <dipjyoti.saikia@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   thread-safe popen
Message-ID:  <dcbc809d05070503454a259f88@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I am working on an OS derived for BSD 4.1 .  I am trying to backport a
thread-safe version of popen() from BSD 4.10 .

My plan is to create a file in libc_r/uhtread as uthread_popen.c which
will contain the thread safe version of the code .

The problem I am facing while building the libraries is that it gives
error of multiple declarations of popen since libc_r is  sharing the
popen with libc . If  I remove popen code from libc and put popen.o in
HIDDEN_SYSCALLS in Makefile of libc_r still I am getting errors while
building applications  not linking with libc_r .

Is there something I am missing ?? Kindly help  me  with the proper
way of doing it .

Dip



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dcbc809d05070503454a259f88>