From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 16:31:14 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E54D016A4BF for ; Thu, 9 Oct 2003 16:31:14 -0700 (PDT) Received: from mail-relay1.mirrorimage.net (mail-relay1.mirrorimage.net [209.58.140.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75CFC43FBD for ; Thu, 9 Oct 2003 16:31:13 -0700 (PDT) (envelope-from leblanc@mirrorimage.net) Received: from leblanc.mirrorimage.net (leblanc.mirrorimage.net [209.192.210.146]) by mail-relay1.mirrorimage.net (8.9.3/8.9.3) with ESMTP id TAA11028 for ; Thu, 9 Oct 2003 19:31:01 -0400 Received: from leblanc.mirrorimage.net (localhost [127.0.0.1]) h99NV5dO056298 for ; Thu, 9 Oct 2003 19:31:10 -0400 (EDT) (envelope-from leblanc@leblanc.mirrorimage.net) Received: (from leblanc@localhost) by leblanc.mirrorimage.net (8.12.8p1/8.12.8/Submit) id h99NV5sY056297 for freebsd-questions@FreeBSD.org; Thu, 9 Oct 2003 19:31:05 -0400 (EDT) Date: Thu, 9 Oct 2003 19:31:05 -0400 From: Louis LeBlanc To: FreeBSD Questions Message-ID: <20031009233104.GG54245@keyslapper.org> Mail-Followup-To: FreeBSD Questions Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.4i Subject: thread safety and host lookups X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2003 23:31:15 -0000 Hey folks. I'm working on a port from Solaris to FreeBSD. For the most part, things are pretty straightforward, but I can't seem to find the details on thread safety for some system calls. gethostbyname_r() is the thread safe call that replaces gethostbyname() on Solaris. Is there a similar alternative call in FreeBSD, or was the default system call modified to ensure thread safety? TIA Lou -- Louis LeBlanc leblanc@keyslapper.org Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org ԿԬ Kramer's Law: You can never tell which way the train went by looking at the tracks.