[hurd,commited 1/2] hurd: Define and pass UTIME_NOW and UTIME_OMIT to new file_utimens RPC

Samuel Thibault samuel.thibault@ens-lyon.org
Wed Mar 7 09:09:00 GMT 2018


Hello,

Ben Hutchings, on mar. 06 mars 2018 19:56:35 +0000, wrote:
> On Tue, 2018-03-06 at 08:45 +0100, Samuel Thibault wrote:
> [...]
> > --- a/sysdeps/mach/hurd/futimens.c
> > +++ b/sysdeps/mach/hurd/futimens.c
> > @@ -27,24 +27,53 @@
> >  int
> >  __futimens (int fd, const struct timespec tsp[2])
> >  {
> [...]
> > +  err = HURD_DPORT_USE (fd, __file_utimens (port, atime, mtime));
> > +
> > +  if (err == MIG_BAD_ID || err == EOPNOTSUPP)
> > +    {
> [...]
> Shouldn't this error be cached, to avoid making twice as many calls on
> older Hurd versions?

No, because it depends on the actual translator that we are talking to.
There can be one which doesn't implement the new RPC yet, while others
do (and most of them will, we don't usually run old hurd servers with a
new glibc).

Samuel



More information about the Libc-alpha mailing list