From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 5 10:45:51 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9C1B16A41C for ; Tue, 5 Jul 2005 10:45:51 +0000 (GMT) (envelope-from dipjyoti.saikia@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8103A43D5C for ; Tue, 5 Jul 2005 10:45:51 +0000 (GMT) (envelope-from dipjyoti.saikia@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so433064nzo for ; Tue, 05 Jul 2005 03:45:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=lSEVWbPNjkJ7Nw/tIah1xwLrbMGrF70b47Be+wWRdBkZaXWwy8O7Rq6YwX1Zu1jmZpeijPH4CabOcJDguuoZs7vTMlSF5FgSlqQtlKSANNMOrjIEIx7xazTQgcEoI+PXrl0DKRRHm5OykyZNW9nnpJaNwZiIg/u2TNnB3MOgv18= Received: by 10.36.8.16 with SMTP id 16mr1572099nzh; Tue, 05 Jul 2005 03:45:50 -0700 (PDT) Received: by 10.36.77.20 with HTTP; Tue, 5 Jul 2005 03:45:50 -0700 (PDT) Message-ID: Date: Tue, 5 Jul 2005 16:15:50 +0530 From: Dipjyoti Saikia To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: thread-safe popen X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dipjyoti Saikia List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2005 10:45:51 -0000 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