From owner-freebsd-arch@freebsd.org Fri Mar 10 17:09:04 2017 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 092D9D06213 for ; Fri, 10 Mar 2017 17:09:04 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x231.google.com (mail-it0-x231.google.com [IPv6:2607:f8b0:4001:c0b::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C15E712D7 for ; Fri, 10 Mar 2017 17:09:03 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x231.google.com with SMTP id w124so287885itb.0 for ; Fri, 10 Mar 2017 09:09:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=5pYrSZnysEt9Ss0zRNraCpXftcFq02MdyHIWuOh6Bvo=; b=VcYMS5Y9JydjBwmCd8GtazF/C0dHhA8boIapXzwKYYnob7Run2+6VoenpR4eqLkQ/7 Crae+gxLZq/Y7bwsLN11hKTPMhLM6V85JjevP/pyiFo55auzoogaXqtnVK1Lr3Y3VjDP CSH1ZyfLST4+aYw61Y1hHEtGUShmwUkRWtWl2resCAEf4Xp7xNpRIHlzpKoEQN0cP5a+ leHj3GkIbXKdCtaTJXdRDf8wwJVkuBLLfdjIaBAiwf0/qOfV6xKZ+S2Tl62j8BROWoJo 4sUfXA7REb25PBgeG9olg8V1iLiREFV74+pNtFnlfAtrig8spjI7WiJ/UdTf70yzhNwH Ff/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=5pYrSZnysEt9Ss0zRNraCpXftcFq02MdyHIWuOh6Bvo=; b=AI1ZHMWzm/5LLjZSXKQNV0caj6nbdeyfiF3RjZ076ltil2j2RR1rcRvdxGr/3iat/Q fuYd6dTnEsc99G8UFhS+zfZkhzJVYMoS9QqM/arp5CZRxYC/eBTig1e9PyIABsjUJBkx dHeK2KQXlZfYzC36IkQL0EUd3BrfOwwD5N9hmbsljWFEjyhxxiiJ8vLQWzPy4heifWab SGc+I/dH/Net34LzC3cuRLw1mlLafeucoejHUQQoFQZr18G49hF0ZozjfCH1j59FIvjZ 8O8SuXwmUAjBOFYYnUGa+U9Now/lFdeEFg3Pu6He9cGDX5BVIjw/NOR2A+EfHyBVIeX5 GYHQ== X-Gm-Message-State: AFeK/H14l9D3MAl4D/1nqOA+tWtRqtH4hc0Xp7+nphUvtSHTAfIT9F1HheLw949OycUCFUeSY44UjrKZiGeGtA== X-Received: by 10.36.189.207 with SMTP id x198mr3038108ite.103.1489165742965; Fri, 10 Mar 2017 09:09:02 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.134.129 with HTTP; Fri, 10 Mar 2017 09:09:02 -0800 (PST) X-Originating-IP: [69.53.245.200] In-Reply-To: <44f542e8-920f-c6bc-7eb0-2e4dab86a5eb@FreeBSD.org> References: <44f542e8-920f-c6bc-7eb0-2e4dab86a5eb@FreeBSD.org> From: Warner Losh Date: Fri, 10 Mar 2017 10:09:02 -0700 X-Google-Sender-Auth: lPeydeY2ix7A9CzAjeQfyelq67o Message-ID: Subject: Re: reallocarray(3) and its uses To: Pedro Giffuni Cc: FreeBSD-arch list Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Mar 2017 17:09:04 -0000 On Fri, Mar 10, 2017 at 10:00 AM, Pedro Giffuni wrote: > Hello; > > I wasn't a fan of bringing reallocarray(3) from OpenBSD, but since we have > it, I thought I'd take a look at using it. It is rather easy to use so I > went around opengrok'ing "realloc" in userland and crosschecking with > OpenBSD and I got to this patch: > > https://reviews.freebsd.org/D9915 > > Current reviewers are mute: I am unsure if they are just deeply impressed > and don't want to speak up or if they are simply too busy (most likely the > later). There are still more uses in some utilities but I wanted to see what > people think of the general idea. https://www.youtube.com/watch?v=ussCHoQttyQ Summarizes my view. I kinda like it since it helps on the overflow front, but it's non standard so I kinda dislike it... I can make arguments both ways and I can't decide which argument I like more... Warner