linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* utimes/futimes/lutimes syscalls
@ 2003-07-12  5:22 Ulrich Drepper
  2003-07-12  5:37 ` Ulrich Drepper
  2003-07-12  5:42 ` Andrew Morton
  0 siblings, 2 replies; 8+ messages in thread
From: Ulrich Drepper @ 2003-07-12  5:22 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: Linux Kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

With the introduction of the nanosecond fields in struct stat the
utime() syscall is kind of obsolete.  It's not possible anymore to
restore the exact access/modification time of a file.

Unix defines the utimes() function for this.  It is currently
implementated in glibc on top of the utime() syscall which used to be OK
but isn't anymore today.  In addition some systems provide the futimes()
and lutimes() functions which appropriate semantics.

The question: would a patch introducing these syscalls be accepted?  If
there are filesystems which store the sub-seconds on disk I think this
is necessary since otherwise all kinds of programs (including archives)
cannot be written correctly.  If the sub-seconds only live in memory I
still think it would be good to have the syscalls but it would not be
that urgent.

- -- 
- --------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/D5sS2ijCOnn/RHQRAjhgAJoCHPLGWjvK6VUxVmyJx/MPnwzjeQCggpmy
1qKasu1RgrliP4QA0t9QuUE=
=NQyO
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-07-15 18:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-12  5:22 utimes/futimes/lutimes syscalls Ulrich Drepper
2003-07-12  5:37 ` Ulrich Drepper
2003-07-12  5:57   ` David Mosberger
2003-07-12  6:38     ` Ulrich Drepper
2003-07-12  5:42 ` Andrew Morton
2003-07-14  7:45   ` Nikita Danilov
2003-07-14 12:16     ` Tomas Szepe
2003-07-15 18:31       ` Nikita Danilov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).