This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: FreeBSD port (28): futimes, lutimes
- From: Roland McGrath <roland at frob dot com>
- To: Bruno Haible <bruno at clisp dot org>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Mon, 26 Aug 2002 04:50:20 -0700
- Subject: Re: FreeBSD port (28): futimes, lutimes
> FreeBSD has two system calls futimes() and lutimes(), which are to utimes()
> what fstat() and lstat() are to stat(). It seems they can be useful to user
> programs (for example, tar and the fileutils could use lutimes()).
> The right place to declare them in the headers in <sys/time.h>. So here is
> a patch to declare them there.
I like these fine. The Hurd can implement them trivially.
Does anyone have any objections to adding these functions with ENOSYS stubs
on GNU/Linux?
Note your stubs's EINVAL checks are wrong: passing a null pointer for the
TVP argument is valid in utimes and the new calls will behave the same.
Roland