From owner-svn-src-head@freebsd.org Tue Apr 4 19:27:38 2017 Return-Path: Delivered-To: svn-src-head@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 AC3ECD2E275; Tue, 4 Apr 2017 19:27:38 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) (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 4A6ACF89; Tue, 4 Apr 2017 19:27:37 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-wm0-f43.google.com with SMTP id y22so33730557wmh.0; Tue, 04 Apr 2017 12:27:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=jRs4WQw+uuoRkORcvguhA4qNVCkkJ11xypsHw67Kuj8=; b=ahnZGyQrinAqji5K7d48uf7QNHvXpZ3n7nWhe7RiDq1x7LhkbSLakGzEgQh8TUiYn2 YGQCEXwivlPXYwG2irIZMbGYdGZw0XmQPnpJZlWTdmmx4KHI5/0/gY+8aHaUXIxm6IGW dpoobYNGmqr6sTtefjy8J2DKlzW2cagHkNN66B+IUC6z0ucEBBoqrsTM4VwZAII+Kg6J hY3WyHTAS/IAnusT9mPDR+ZK1q6OvH2kMc+lZBFlWBY5BYbGLBwmrr94P3+pvovZ3VPL tSyjjxjsyM7Dj3aryiNFUCVvhBloYvaAVFp/CNCSaW9WnP+WewrXqpFoUSPnL9V/uJP2 aoew== X-Gm-Message-State: AFeK/H3vpFWBPb69KBaxjcnFDk5zRgV+m4U+SQloKkzsyNV5wkw/7su6 WpaFMd7H+fIgYw== X-Received: by 10.28.127.149 with SMTP id a143mr16038497wmd.87.1491333641582; Tue, 04 Apr 2017 12:20:41 -0700 (PDT) Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com. [74.125.82.50]) by smtp.gmail.com with ESMTPSA id j2sm20863658wrd.26.2017.04.04.12.20.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Apr 2017 12:20:41 -0700 (PDT) Received: by mail-wm0-f50.google.com with SMTP id x124so36809473wmf.0; Tue, 04 Apr 2017 12:20:41 -0700 (PDT) X-Received: by 10.28.218.197 with SMTP id r188mr16202481wmg.0.1491333641327; Tue, 04 Apr 2017 12:20:41 -0700 (PDT) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 10.80.169.4 with HTTP; Tue, 4 Apr 2017 12:20:40 -0700 (PDT) In-Reply-To: References: <201704041608.v34G8qSo055328@repo.freebsd.org> <4D675D2F-7D6F-4AF2-AE10-5DF19D4158D0@gmail.com> From: Conrad Meyer Date: Tue, 4 Apr 2017 12:20:40 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r316492 - in head/usr.bin/grep: . regex To: Kyle Evans Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 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: Tue, 04 Apr 2017 19:27:38 -0000 On Tue, Apr 4, 2017 at 12:16 PM, Kyle Evans wrote: > On Tue, Apr 4, 2017 at 1:56 PM, Dimitry Andric wrote: >> >> > Where did xmalloc.c originate from? >> >> GNU. Almost all software from the GNU project relies on malloc wrappers >> which abort the program on allocation failures. > > > This also explains the grep_* versions of `malloc`, `calloc`, `realloc`, and > `strdup` that I've developed a slight distaste for. The "xmalloc" flavor > also had some hash table bits to allow failing after $n allocations -- is > that a slightly less common GNU-ism? Aborting-on-failure malloc wrappers didn't begin or end at GNU. I don't think bsdgrep's malloc wrappers have anything to do with GNU. (xmalloc didn't at least; I haven't looked at the grep_malloc stuff). Best, Conrad