This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC PATCH] [AARCH64] ILP32: support stat syscall family


On Thu, 30 Jun 2016, Yury Norov wrote:

>  - __32_BIT_ABI_SUPPORTS_64_BIT_TIME_T macro introduced to indicate that 32-bit
>    ABI has struct __timespec (and maybe __timeval in future) that is compatible
>    to 64-bit _timespec;

You can't add a macro to one architecture like that then use it in generic 
code.  You have to define it in *every* architecture's bits/typesizes.h 
before it can be used in generic code.

> +      return INLINE_SYSCALL (fstatfs64, 2, fd, buf);

Bad indentation.  Likewise elsewhere in this patch.

> +++ b/sysdeps/unix/sysv/linux/aarch64/ilp32/statfs64.c
> @@ -0,0 +1,37 @@
> +/* Copyright (C) 2011-2015 Free Software Foundation, Inc.

Still missing descriptive first line and 2016 in copyright dates.

> +   Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.

There should be no "Contributed by" lines in new files.

> +  return result;
> +#endif
> +#if __32_BIT_ABI_SUPPORTS_64_BIT_TIME_T
> +      if (!result)
> +        {
> +	   conv_timespec(&buf->st_atim, &buf->__st_atim);
> +	   conv_timespec(&buf->st_mtim, &buf->__st_mtim);
> +	   conv_timespec(&buf->st_ctim, &buf->__st_ctim);
> +        }
>  #endif

Indentation way off.

> +       conv_timespec(&st->st_atim, &st->__st_atim);
> +       conv_timespec(&st->st_mtim, &st->__st_mtim);
> +       conv_timespec(&st->st_ctim, &st->__st_ctim);

Missing space before '('.

> +    DECLARE_TIMESPEC (st_atim);		/* Time of last access.  */
> +    DECLARE_TIMESPEC (st_mtim);		/* Time of last modification.  */
> +    DECLARE_TIMESPEC (st_ctim);		/* Time of last status change.  */

DECLARE_TIMESPEC is in the user's namespace, not valid in installed 
headers.

> +#  define conv_timespec(ts, _ts)		\

Again, not valid in installed headers.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]