[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#738567: uses futimens, which is supported only on linux-any



Hello,

David Kalnischkies, le Tue 11 Feb 2014 19:36:59 +0100, a écrit :
> On Mon, Feb 10, 2014 at 06:35:37PM +0100, Petr Salinger wrote:
> > The apt 0.9.15.1 started to use futimens instead of previous utime.
> >
> > The futimens() is not supported on kfreebsd.
> 
> Could this be added to the manpage utimensat(2)? I had looked there and
> assumed that by POSIX1.2008 and that it is in glibc it would be safe to
> use it as utime replacement…

Well, but with old Linux kernels you would have the same issue.

> > The futimes() is currently supported (at least) on linux, kfreebsd, hurd.
> 
> It isn't part of any standard though, so I would worry now that we could
> run into problems with it as well.

Indeed.  But you could at least check for them in configure.ac and use
what is available (autoconf will properly figure out that futimens are
ENOSYS stubs in glibc on !linux, BTW).

Samuel


Reply to: