From owner-freebsd-arch@freebsd.org Fri Mar 10 16:57:36 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 935DDD06EE2 for ; Fri, 10 Mar 2017 16:57:36 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from nm22-vm3.bullet.mail.ne1.yahoo.com (nm22-vm3.bullet.mail.ne1.yahoo.com [98.138.91.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 61E9DCA6 for ; Fri, 10 Mar 2017 16:57:36 +0000 (UTC) (envelope-from pfg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1489165049; bh=hKVusW9OLIWpsYVTqYAbBHFs7as4x6dp1tXuUD47Z5w=; h=From:Subject:To:Date:From:Subject; b=eZPEseEHf1wJSNHk0yI9nGv89TnysllolTyGXV9ImTKh125VkFX4vK+ipDcznU79+VApToRnH2oaY0HGttg8R+/NQY/evbNfiNU/4Tpoj/8k01Dr4RY371jXwNjNJariKiSvgKI2vvVEbxfEskly5R/JKqltS6Fsc0OZA/saaQFZdvp6jONaDBfsp+kB653/POfmmHZm+wdlYUTUe9svoynvzzhy8iz2j59m9OuK5k7LtDCMLW1hVZ8OGPWCjUa8X4PeWaDanQYqkJ76PvSTRlw8iLONl62drJ2EPmIzdX2drHwjz9j2WXB8e7Kb+Nc5zfOqZ1ro8sycCC/mjYOMTg== Received: from [98.138.101.129] by nm22.bullet.mail.ne1.yahoo.com with NNFMP; 10 Mar 2017 16:57:29 -0000 Received: from [98.138.226.132] by tm17.bullet.mail.ne1.yahoo.com with NNFMP; 10 Mar 2017 16:57:29 -0000 Received: from [127.0.0.1] by smtp219.mail.ne1.yahoo.com with NNFMP; 10 Mar 2017 16:57:29 -0000 X-Yahoo-Newman-Id: 669780.85632.bm@smtp219.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: wyo4xmwVM1m49E78YUXR8DMiX5B8K73a9ZZHfywYbEHkhUI 5PZUE_ojggwAmrS_0ccgQg4cWM48Op4u8rDkBzfK_LPxSzSLHYiUd6mO76J0 KYXPbDgvnPuE5MtVUEc71jm9pBYLrloVLUc0cJOOCykFif7llTiPnMOAneur QSI5MiyFINQDV_BNds3mSzaRhLhUrecNyy8_DsgLQ_ObtgAdEpUsQ31dpF_I QNI9C3jSaTkb1dJLEXus7IexS7FkGlqlvQrvFkSL0yl4fLC_ky.W2iARs.3. 1cQsQSgfaXfGE81cE1iKY2M4cbyEQs1eVRVg6IRNQrhlv_wfrzJg1fY7EK.v Pr7OLMoP3s02niqLl.PpdgdA0ECAC9WPB.bQAYJOzMjD71c2Ru_v46UT5C_p qG8DOXIwNNXr77NXczBnAzx_MInLqTupD1aF0sHGktfUAV.gP5njKJ8fuFI. NrLTHHuv2XURmKD8ofSskn8hTjrlVBPQC9vong_GYHlnaLaT_uUSa7Sq.228 qSWsvykhsMpVXrNeEjtKOfqSX7dz8ZfucLozvKAUgn_NpYfc- X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf From: Pedro Giffuni Subject: reallocarray(3) and its uses To: FreeBSD-arch list Message-ID: <44f542e8-920f-c6bc-7eb0-2e4dab86a5eb@FreeBSD.org> Date: Fri, 10 Mar 2017 12:00:33 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 16:57:36 -0000 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. Pedro.