public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
To: Lukasz Majewski <lukma@denx.de>
Cc: Joseph Myers <joseph@codesourcery.com>,
	Paul Eggert <eggert@cs.ucla.edu>,
	 Alistair Francis <alistair23@gmail.com>,
	Arnd Bergmann <arnd@arndb.de>,
	Alistair Francis <alistair.francis@wdc.com>,
	GNU C Library <libc-alpha@sourceware.org>,
	Florian Weimer <fweimer@redhat.com>,
	Carlos O'Donell <carlos@redhat.com>,
	Stepan Golosunov <stepan@golosunov.pp.ru>,
	Andreas Schwab <schwab@suse.de>, Zack Weinberg <zackw@panix.com>,
	Jeff Law <law@redhat.com>
Subject: Re: [PATCH] [RFC] y2038: nptl: Convert pthread_cond_{clock|timed}wait to support 64 bit time
Date: Wed, 26 Aug 2020 16:38:49 -0300	[thread overview]
Message-ID: <05579483-675f-d00a-fe65-1faff0c0a898@linaro.org> (raw)
In-Reply-To: <20200826195906.50fb3854@jawa>



On 26/08/2020 14:59, Lukasz Majewski wrote:
> Hi Adhemerval,
> [..]
> was recommended. Which indentation style is correct then? As the manual:
> https://www.gnu.org/prep/standards/standards.html
> 
> did not say about it explicitly.
> 
> Also here:
> https://sourceware.org/glibc/wiki/Style_and_Conventions
> 
> it is not said explicitly.
> 
> The only recommendation I had from Joseph on the very beginning of my
> involvement in the project:
> https://sourceware.org/pipermail/libc-alpha/2019-March/102274.html

I usually follow current file practice of two-column indentation with
tab for 8 columns. But as Florian has added, new files could use
whitespace instead of tabs.

>>
>>> @@ -662,18 +676,32 @@ versioned_symbol (libpthread,
>>> __pthread_cond_timedwait, pthread_cond_timedwait, 
>>>  /* See __pthread_cond_wait_common.  */
>>>  int
>>> -__pthread_cond_clockwait (pthread_cond_t *cond, pthread_mutex_t
>>> *mutex,
>>> -			  clockid_t clockid,
>>> -			  const struct timespec *abstime)
>>> +__pthread_cond_clockwait64 (pthread_cond_t *cond, pthread_mutex_t
>>> *mutex,
>>> +                            clockid_t clockid,
>>> +                            const struct __timespec64 *abstime)
>>>  {
>>>    /* Check parameter validity.  This should also tell the compiler
>>> that it can assume that abstime is not NULL.  */
>>>    if (! valid_nanoseconds (abstime->tv_nsec))
>>>      return EINVAL;
>>>  
>>> -  if (!futex_abstimed_supported_clockid (clockid))
>>> +  if (! futex_abstimed_supported_clockid (clockid))
>>>      return EINVAL;  
>>
>> Gratuitous change.
> 
> Yes, this change is not related to this change. However, IIRC the if (!
> futex*...) for '!' (a space after it) is the correct coding style.

It not wrong indeed, but usually for style change it is better to send a 
separate patch.

  parent reply	other threads:[~2020-08-26 19:38 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-24 16:40 Lukasz Majewski
2020-08-24 16:59 ` Lukasz Majewski
2020-08-24 17:15   ` Florian Weimer
2020-08-24 17:50     ` Lukasz Majewski
2020-08-25  8:08 ` Andreas Schwab
2020-08-25 10:03   ` Lukasz Majewski
2020-08-25 10:34     ` Andreas Schwab
2020-08-25 14:29       ` Adhemerval Zanella
2020-08-25 14:30       ` Lukasz Majewski
2020-08-25 14:47         ` Andreas Schwab
2020-08-25 14:53           ` Adhemerval Zanella
2020-08-25 15:26             ` Andreas Schwab
2020-08-25 15:31               ` Adhemerval Zanella
2020-08-25 15:36                 ` Adhemerval Zanella
2020-08-25 14:43 ` Adhemerval Zanella
2020-08-26 17:59   ` Lukasz Majewski
2020-08-26 18:06     ` Florian Weimer
2020-08-26 19:38     ` Adhemerval Zanella [this message]
2020-08-27  6:20       ` Lukasz Majewski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=05579483-675f-d00a-fe65-1faff0c0a898@linaro.org \
    --to=adhemerval.zanella@linaro.org \
    --cc=alistair.francis@wdc.com \
    --cc=alistair23@gmail.com \
    --cc=arnd@arndb.de \
    --cc=carlos@redhat.com \
    --cc=eggert@cs.ucla.edu \
    --cc=fweimer@redhat.com \
    --cc=joseph@codesourcery.com \
    --cc=law@redhat.com \
    --cc=libc-alpha@sourceware.org \
    --cc=lukma@denx.de \
    --cc=schwab@suse.de \
    --cc=stepan@golosunov.pp.ru \
    --cc=zackw@panix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).