From owner-freebsd-arch@FreeBSD.ORG Thu Dec 4 23:51:59 2008 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDA7D106564A for ; Thu, 4 Dec 2008 23:51:59 +0000 (UTC) (envelope-from wollman@hergotha.csail.mit.edu) Received: from hergotha.csail.mit.edu (hergotha.csail.mit.edu [66.92.79.170]) by mx1.freebsd.org (Postfix) with ESMTP id 5C3888FC12 for ; Thu, 4 Dec 2008 23:51:59 +0000 (UTC) (envelope-from wollman@hergotha.csail.mit.edu) Received: from hergotha.csail.mit.edu (localhost [127.0.0.1]) by hergotha.csail.mit.edu (8.14.2/8.14.2) with ESMTP id mB4NDAdT045335; Thu, 4 Dec 2008 18:13:10 -0500 (EST) (envelope-from wollman@hergotha.csail.mit.edu) Received: (from wollman@localhost) by hergotha.csail.mit.edu (8.14.2/8.13.8/Submit) id mB4NDA6j045334; Thu, 4 Dec 2008 18:13:10 -0500 (EST) (envelope-from wollman) Date: Thu, 4 Dec 2008 18:13:10 -0500 (EST) From: Garrett Wollman Message-Id: <200812042313.mB4NDA6j045334@hergotha.csail.mit.edu> To: peter@wemm.org In-Reply-To: References: <49381DD4.2000506@kasimir.com> <49382502.1040403@delphij.net> Organization: None X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (hergotha.csail.mit.edu [127.0.0.1]); Thu, 04 Dec 2008 18:13:10 -0500 (EST) X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on hergotha.csail.mit.edu Cc: arch@freebsd.org Subject: Re: Adding strndup(3) to libc viable/useful? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2008 23:51:59 -0000 In article , Peter Wemm writes: >glibc has had this for a long time and the trend for this function >seems to be gaining ground. I think solaris is the last remaining >major holdout. Many formerly glibc-only functions have been adopted in the current (IEEE Std.1003.1-2008, ISO/IEC 9945:2009) POSIX revision. >FWIW, there are a bunch of other useful utility str*() and mem*() >functions that glibc has that we do not. Any of the functions that POSIX has adopted should definitely be added. >I've run into the lack of fmemopen() in the past. I found an >implementation from rwatson. fmemopen() is one of them. -GAWollman