Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3071968pxk; Mon, 28 Sep 2020 07:44:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmmL8uCyj5Y/7PAHIKLqzXRFV9+rxXfK6VtnRa2SlOEXCGeSFo4OtA/dQWEkpNi6cgsBCY X-Received: by 2002:aa7:cf05:: with SMTP id a5mr2181605edy.313.1601304262992; Mon, 28 Sep 2020 07:44:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601304262; cv=none; d=google.com; s=arc-20160816; b=phLH+XMBxTixAapmFqQi+euGeNdWvlwFKdnOnS5XwDv4IrWibihClRR7TUN5NIlR6t dUOvEDUx8i8JRVGkEGyRDkXAz9bTdkTn3rZT8ByicJG2YzIZYhX5LKqR5cVS1hfRaU2+ b4xA3OBD+b1yxvEVCN0HcJrsU9d4fI22Bu3cVL+jjnC19XczJn/7wlNKxdlydZ+Xv/Cn lnRGPCW5DRMCdBnDrPW2skeDAn5q6Yu7+dSSXViR7AfCSrDMeHULLFMMJGHjwgm/iUGV /NeIU7MPbkAr0o9Pod8Vr/x1V/pjYWy+O01ae6fGWiXAI/0plz53D2DWNguStuVI0OO6 //Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=jnKA/vDlfSusbSVLCuRZcuP/laLMcatuMX458O2dA9Q=; b=Cjcgem+u78SLJSmgtDWa3nMuZrnetzDfByKeIjRQIuwZ8rC2cBPSS+2+EK0ds2WISw ZOmdi1IWV9WJpHSQM45z7+LF0F1XW4F8ewIBxdTET5G9aTrPJWJh7UaXiDViqD/GeNM1 Xee+bOe/xeq45gMEgsTjP1YMa3ozP76BATQBbfRvnQa1JlXTbO+zYiQs4Rno8655SoeI vmbXO8PHZiyIOkqDrxei1yB7OqyrUdbZsttLHu9gnK9JzoRSFIEkV0gTRkaTV1w+ntnd UxzKbKs8yaITIRVE/a/BVALKR4kTHxwYTg98pArKdDxXQc5C+C0gp8Q/8yOypC/7OHft 2JGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ijYOVQV/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f6si761068edc.423.2020.09.28.07.43.59; Mon, 28 Sep 2020 07:44:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ijYOVQV/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726564AbgI1OnB (ORCPT + 99 others); Mon, 28 Sep 2020 10:43:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726466AbgI1OnA (ORCPT ); Mon, 28 Sep 2020 10:43:00 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8043DC061755; Mon, 28 Sep 2020 07:43:00 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id z4so1656500wrr.4; Mon, 28 Sep 2020 07:43:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=jnKA/vDlfSusbSVLCuRZcuP/laLMcatuMX458O2dA9Q=; b=ijYOVQV/lFzWrxeswWJAjkB9h7d6tjQKJ5rx1Csd1wnaSWu7zndbWeJBSJekxZNmtJ o9qvutdYtlpqrSsS1+giWB62uv9VT5mI6PcciBG4yQZwiymN0hg4wbCx2ckDVqx5I+1S j7m8X9UiDBilqhz/oAaxFSEwyrmeBQEm82VeKaqf06w1BbIz7U+27AjZiH4YsleE6kgI Or5LAwpXvs0/mcjgWKoAmXUi54a9xiUMRurmuHNzTSGWz4WS/u+TBon3fs3efx7s8zgY e97kCVC/nYSLAIKID9HvoBEOpK4Hx4AA0HqcZhl9rneao3FFpOdKVWhBRFn9eFfWV+G/ 62Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jnKA/vDlfSusbSVLCuRZcuP/laLMcatuMX458O2dA9Q=; b=aW8tocpWp+Lsmp+BUiAj6SQBMCPm2z4+g6/gUmLNSboXFXa/9iD8fm9F+l6/eD926V QtazNTiB4/oboB4lHzZK2MnN7FwmEIWhelGKDzTDk1kuzvUSGvPdZUXL4LCmWgukrKGJ 9sAwBs/beP4Smlcw0Ihgcy5q+zKlthGT0O1ZNlayJwQ4x97f6lnFuYDfKdD8sX101rnm qtTjSmLO8hC7QJEa92PuNRCK34b1DX6aTsQ51Vik/qPdSWqWUYm75D5FiLp04XGBV4fI 2KZ4FrS94azs40vgxm/AXm9RxG1NG0s/N8d6ji3o1L0psQ00J0nIk4RBL0JTH9b42uCx coiQ== X-Gm-Message-State: AOAM533D3juxVxJ9kyIqNbKwuvbDlDLIgsTj/vLcTGieA6wIhSkjhGju ELiN9fzSVRaDfrTJ6pXwnFM= X-Received: by 2002:adf:e312:: with SMTP id b18mr2248675wrj.372.1601304179111; Mon, 28 Sep 2020 07:42:59 -0700 (PDT) Received: from [192.168.1.143] ([170.253.60.68]) by smtp.gmail.com with ESMTPSA id q4sm1676352wru.65.2020.09.28.07.42.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Sep 2020 07:42:58 -0700 (PDT) Subject: Re: [PATCH 22/24] membarrier.2: Note that glibc does not provide a wrapper To: David Laight , "G. Branden Robinson" Cc: "linux-kernel@vger.kernel.org" , "linux-man@vger.kernel.org" , "mtk.manpages@gmail.com" References: <20200927054657.ea2zaiesle6hwjit@localhost.localdomain> <562859fd-6740-1068-d9d0-9562140cec33@gmail.com> <20200928125227.yr2ugl23ib6mid76@localhost.localdomain> <5d4f71a6-8a5e-c683-fcbd-b5453435d736@gmail.com> From: Alejandro Colomar Message-ID: Date: Mon, 28 Sep 2020 16:42:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-09-28 15:48, G. Branden Robinson wrote: >> There are a few cases: if I want to find declarations of type int, >> I'd start with: >> >> $ grep -rn "int\s" >> >> or something like that. "int\~" would break the ability to do that. > > That would, among more obscure cases, miss the style of function > declaration used by people who get along without ctags: > > static int > my_little_function(int foo, char bar) > > So I would tend to use grep 'int\>' to match a word boundary instead of > a whitespace character. > > Regards, > Branden > On 2020-09-28 16:31, David Laight wrote: > From: Alejandro Colomar >> Sent: 28 September 2020 14:33 > ... >> There are a few cases: if I want to find declarations of type int, >> I'd start with: >> >> $ grep -rn "int\s" >> >> or something like that. "int\~" would break the ability to do that. > > The 'word markers' \< and \> are your friends; look for "\". > > David > > - > Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK > Registration No: 1397386 (Wales) > Thank you both, I didn't know about those. Regards, Alex