[Bug-gnulib] utimes problem: linux libc/kernel header mismatch? (original) (raw)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
| From: | Jim Meyering |
|---|---|
| Subject: | [Bug-gnulib] utimes problem: linux libc/kernel header mismatch? |
| Date: | Sat, 09 Aug 2003 22:46:00 +0200 |
FYI,
Here are the symptoms of the utimes failure I mentioned recently.
$ cat utimes.c #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h>
#include <utime.h> #include <sys/time.h>
int main () { char const *file = "x"; static struct timeval timeval[2] = {{1, 2}, {3, 4}}; if (utimes (file, timeval)) perror (file), exit (1);
{
struct stat sbuf;
if (lstat (file, &sbuf))
exit (2);
if (sbuf.st_atime != 1)
exit (3);
if (sbuf.st_mtime != 3)
exit (4);
}
exit (0);} $ gcc -W -g -Wall utimes.c $ touch x $ ./a.out [Exit 3] $ strace -e utime ./a.out utime("x", [0, 0]) = 0 $
My environment:
- Debian/unstable system with linux-2.4.21-3-k7 (updated last night)
- gcc version 3.3.1 (Debian)
$ /lib/libc.so.6 GNU C Library stable release version 2.3.2, by Roland McGrath et al. ... Compiled by GNU CC version 3.3.1 20030728 (Debian prerelease). Compiled on a Linux 2.4.21-3 system on 2003-08-06. Available extensions: ...
- [Bug-gnulib] utimes problem: linux libc/kernel header mismatch?,Jim Meyering <=
- [Bug-gnulib] glibc utimes glitch with coreutils 'touch', Paul Eggert, 2003/08/10
* [Bug-gnulib] Re: glibc utimes glitch with coreutils 'touch', Jim Meyering, 2003/08/10
* [Bug-gnulib] Re: glibc utimes glitch with coreutils 'touch', Paul Eggert, 2003/08/10
* [Bug-gnulib] Re: glibc utimes glitch with coreutils 'touch', Jim Meyering, 2003/08/10
* [Bug-gnulib] Re: glibc utimes glitch with coreutils 'touch', Paul Eggert, 2003/08/10
* [Bug-gnulib] Re: glibc utimes glitch with coreutils 'touch', Jim Meyering, 2003/08/10
* [Bug-gnulib] Re: Bug#202243: glibc utimes glitch with coreutils 'touch', GOTO Masanori, 2003/08/18
* [Bug-gnulib] Re: Bug#202243: glibc utimes glitch with coreutils 'touch', Paul Eggert, 2003/08/18
* [Bug-gnulib] Re: Bug#202243: glibc utimes glitch with coreutils 'touch', GOTO Masanori, 2003/08/18
* [Bug-gnulib] Re: Bug#202243: glibc utimes glitch with coreutils 'touch', Paul Eggert, 2003/08/18
- [Bug-gnulib] glibc utimes glitch with coreutils 'touch', Paul Eggert, 2003/08/10
- Prev by Date:[Bug-gnulib] Re: regex.m4 encoding problem; '# serial'
- Next by Date:[Bug-gnulib] serial numbers in .m4 files: are they still useful?
- Previous by thread:[Bug-gnulib] regex.m4 encoding problem; '# serial'
- Next by thread:[Bug-gnulib] glibc utimes glitch with coreutils 'touch'
- Index(es):