[prev in list] [next in list] [prev in thread] [next in thread] 

List:       coreutils
Subject:    humph.  system.h change pushed prematurely
From:       Jim Meyering <jim () meyering ! net>
Date:       2012-05-08 13:56:14
Message-ID: 874nrq7p4x.fsf () rho ! meyering ! net
[Download RAW message or body]

Somehow I managed to push this change.  Not only does it lack a
ChangeLog entry, but it should have been included as part of Paul's
upcoming stat.st_size-guard-improving changes.  It shouldn't have been
committed separately.  I did commit it locally, just to have a record
of it, but did not intend to push it.

Sorry.

...
> http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=452dc6b5ef39d3a9c26208d960085fe992f4c3b7
...
> - Log -----------------------------------------------------------------
> commit 452dc6b5ef39d3a9c26208d960085fe992f4c3b7
> Author: Jim Meyering <meyering@redhat.com>
> Date:   Mon May 7 11:20:45 2012 +0200
>
>     maint: new function: usable_st_size
>
> -----------------------------------------------------------------------
> Summary of changes:
>  src/system.h |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/src/system.h b/src/system.h
> index 93d48c5..e3d3156 100644
> --- a/src/system.h
> +++ b/src/system.h
> @@ -601,6 +601,13 @@ bad_cast (char const *s)
>    return (char *) s;
>  }
>
> +/* Return a boolean indicating whether SB->st_size is defined.  */
> +static inline bool
> +usable_st_size (struct stat const *sb)
> +{
> +  return S_ISREG (sb->st_mode) || S_TYPEISSHM (sb) || S_TYPEISTMO (sb);
> +}


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic