Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp188698pxk; Fri, 11 Sep 2020 04:14:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWNc1qCky+Gv3/8KBcUSg0uOYryxUqyR0QrNxSU9MDBY4qMTZvzjgRvmRQgtvt2wQ7Rvca X-Received: by 2002:aa7:c98d:: with SMTP id c13mr1425427edt.199.1599822879982; Fri, 11 Sep 2020 04:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599822879; cv=none; d=google.com; s=arc-20160816; b=Fo0fOLr1gx2V4nYtqIOkVhJ1iE/IPwP/v9no27QExDVD/lhEArsMPZ5PA8ALhEnWeS mmXZ5Wg2x3Xu9wMNdyb3TIHVn14aBYv8E5byidT+aU4XFQqFdr3M/kITYg+4cXN3bMHo D1E0Zzal2HFSpBhZ5wIc8EbVU4OGKJuq2Vn1RMMFUTCUbyF0OtvbbUzPbr/RCXqchWQY s3bU8viIdmU2TegdhUCho12t+RznMVqqQqk1GLqTas4CGu9iglmzbvbIg4vnoxdJ2weE Em7snKDfPA9ZHI5/yt34fkqW73o/R4NEjiRpf+DJq8qdNOPn3tzQrtGQbUM4PmthCryz e2Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:cc:dkim-signature; bh=qwJP8YlWNcgr4cgyIQwKXfW5zHjsUL7pEHb3diYc4xI=; b=DlMAE5RqqLgOwJgRoYNtm3iMGlQsUMux0fM6xuH/2oAhsDx2mu/cA7nMPBOcAjMypI LEwru43XYkfAJCQ3594UaVxDyfQQXx62EUU5mDAqgN9nHchwL+g8LunEaixhvVFQmWTD L9ioN2u8JfUMVXjcB/wGEkZezLZPVrigjm+53N+x5rh1avapYu/+mYdo32UMK9+PFq5D zgOHMW3FV+xR3AwvkUzzc6MQZq2TTJBAViTJXoXhIGF4+Sg1GXx1EY1+zO5yw5uRTmSi mxPMmbAyRAiRZtAeJ2OZcv+Pht3tMhnGv3RZ2JAhyTWEq1buNZsND0HGJ7xwsoR6idFL 0w7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tg8qveRP; 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 d8si1047939edt.19.2020.09.11.04.14.17; Fri, 11 Sep 2020 04:14:39 -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=tg8qveRP; 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 S1725833AbgIKLNB (ORCPT + 99 others); Fri, 11 Sep 2020 07:13:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbgIKLM6 (ORCPT ); Fri, 11 Sep 2020 07:12:58 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D3A3C061573; Fri, 11 Sep 2020 04:12:58 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id a65so4045471wme.5; Fri, 11 Sep 2020 04:12:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=cc:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=qwJP8YlWNcgr4cgyIQwKXfW5zHjsUL7pEHb3diYc4xI=; b=tg8qveRPDWNmDM+Y8CjDDiAaX96w2+CFkPbT3D879hTaTv7wGl5MJ9TuARK33REjAn KNq4ffMGvriPOKmjhzltuEex6NP+n9UMx0BD8KHJeLgORnJkX3PWsrv7hb2hx1O+6XF3 KYwv0w6joavd00kWEHtKy4h/3oz6IfTQgG7Hcow4TjFeoRm+rUvq6nciYWGS12HVJBR1 UyCk80yZH/qaPK5cGLGD3ONdKK+rtcO4fYRyh4xFQvHy+oJ7ZvwL34rgwvgmG4FqFt+p GZufk8fXJr/jTJCoo6nHHmXQrauUTUmxmnIeblBDPzjmr/NI5k6LNoSLtlDfEnJFUw82 G6zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=qwJP8YlWNcgr4cgyIQwKXfW5zHjsUL7pEHb3diYc4xI=; b=ihva6xQzyYMeh7+WlGojK6oR2qNm4hGklI4u+b5UDCuWZe89WmnO+6W9rW2kZP5EPU p6OtqmsS3rmKEnBoDnrr3/UKYFHmykcIGU9MsArGL5EGAOmkmhaLlrFves1s6y4DhHQb DzbliDGMy0W7inmVfAOfNFViDzFuxmkzu4o3Z+7Xi6Uv8gJQXNcf4ekXsv6b0Rj3/nJq zNIQntFBNHweZGjvnqUKaqbwjrsvWGemivOwM3d6MgFb2iHW2RLY0EUEUNRy+JjFtzNF M72qGUDozJ7JMWScJGSA0l9AP4PKIdID8XXnSFN8dIUduPZd/utmuiXcb0W6Q1Afb31G Q7vw== X-Gm-Message-State: AOAM5308fdoGTsqBtWlAqJcZrOWcIomV4udzq+XhlcoKg+6Q/IgmOHml FizsbdWWNWR8mQq8U/TMewudtnlWch0= X-Received: by 2002:a1c:7d16:: with SMTP id y22mr1799214wmc.104.1599822776471; Fri, 11 Sep 2020 04:12:56 -0700 (PDT) Received: from ?IPv6:2001:a61:2479:6801:d8fe:4132:9f23:7e8f? ([2001:a61:2479:6801:d8fe:4132:9f23:7e8f]) by smtp.gmail.com with ESMTPSA id b194sm3718739wmd.42.2020.09.11.04.12.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Sep 2020 04:12:55 -0700 (PDT) Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 19/24] pthread_setname_np.3: ffix To: Alejandro Colomar References: <20200910211344.3562-1-colomar.6.4.3@gmail.com> <20200910211344.3562-20-colomar.6.4.3@gmail.com> <2c2150bc-d4df-e821-1717-6450540b6c71@gmail.com> From: "Michael Kerrisk (man-pages)" Message-ID: Date: Fri, 11 Sep 2020 13:12:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <2c2150bc-d4df-e821-1717-6450540b6c71@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alex, On 9/11/20 10:32 AM, Alejandro Colomar wrote: > Hi Michael, > > The indentation in the original code was a bit weird (specifically, the > 'do {' part had one more indentation level than the closing '} while'), > so I simply chose something nice. See the original page, and if you > think it's ok keep it, else find something nice :) Sorry -- I was being a bit slow. Now I see what you mean. I've fixed it, but in a different way. Thanks, Michael > On 2020-09-11 09:58, Michael Kerrisk (man-pages) wrote: >> Hi Alex, >> >> On 9/10/20 11:13 PM, Alejandro Colomar wrote: >>> Signed-off-by: Alejandro Colomar >>> --- >>> man3/pthread_setname_np.3 | 5 +++-- >>> 1 file changed, 3 insertions(+), 2 deletions(-) >> >> What's the rationale for this patch? >> >> Thanks, >> >> Michael >>> >>> diff --git a/man3/pthread_setname_np.3 b/man3/pthread_setname_np.3 >>> index b206f66c0..4dc4960cd 100644 >>> --- a/man3/pthread_setname_np.3 >>> +++ b/man3/pthread_setname_np.3 >>> @@ -164,8 +164,9 @@ THREADFOO >>> >>> #define NAMELEN 16 >>> >>> -#define errExitEN(en, msg) \e >>> - do { errno = en; perror(msg); exit(EXIT_FAILURE); \e >>> +#define errExitEN(en, msg) do \e >>> + { \ >>> + errno = en; perror(msg); exit(EXIT_FAILURE); \e >>> } while (0) >>> >>> static void * >>> >> >> -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/