From owner-svn-src-head@FreeBSD.ORG Sat May 7 17:21:26 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D86DA1065673; Sat, 7 May 2011 17:21:26 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3F32A8FC0A; Sat, 7 May 2011 17:21:25 +0000 (UTC) Received: by vxc34 with SMTP id 34so6014853vxc.13 for ; Sat, 07 May 2011 10:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=VZZhXNIdUryt/d5gqZtr1vcdtaM1im7w8lS+z45ozGg=; b=IeLTQDula5ersOBjhyUDbdU9tGnSmtlADvT14/9iA9LF+MByzZjrl5E7Rx2/kwYj2/ rjvXayzqVlQRCaTljxt0Z97h6fKVtvHZGhw+/2NBgikp3HcOUaXLxzu4nKsfl3aRckJN GkbNEezSgYkuLfCGI/DvEdDlnNPadAdJMpZuU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=xGenD6Lh2T2svKwHLxXDy9VdVQ3wg8y17bL6hLM+O5ZMZMXpZLM8Oqvg6pHOUjrt3v j9RE3z//1qi0NtfZhTmYbWaT0BQ21f+e2k7aQnsZ5YL1kgRNQOn4JRCxDkyORmssWsiI wu4wEt9cbR2gDGWHLRuxX9t0vlfMtxH1wOtWI= MIME-Version: 1.0 Received: by 10.220.123.134 with SMTP id p6mr1254812vcr.2.1304788885215; Sat, 07 May 2011 10:21:25 -0700 (PDT) Received: by 10.220.201.136 with HTTP; Sat, 7 May 2011 10:21:25 -0700 (PDT) In-Reply-To: References: <201105071628.p47GSO16006145@svn.freebsd.org> <201105071836.00660.hselasky@c2i.net> Date: Sat, 7 May 2011 10:21:25 -0700 Message-ID: From: Garrett Cooper To: mdf@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" , Hans Petter Selasky Subject: Re: svn commit: r221604 - head/usr.sbin/usbdump X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 May 2011 17:21:26 -0000 On Sat, May 7, 2011 at 10:13 AM, wrote: > On Sat, May 7, 2011 at 9:36 AM, Hans Petter Selasky wr= ote: >> On Saturday 07 May 2011 18:28:24 Hans Petter Selasky wrote: >>> =A0 - Use memcpy() instead of bcopy(). >> >> - Use memset() instead of bzero(). > > Why? =A0It usually falls through to the same code in libc. =A0Is there > some standardization on memfoo versus bfoo here? bfoo is marked legacy per POSIX 2001.1; example: http://pubs.opengroup.org/onlinepubs/009695399/functions/bcopy.html . A lot of folks (Linux leading the charge) are actively working to deprecate the APIs. Thanks, -Garrett