[PATCH] wc: line-buffer the printed counts

2009-12-22 Thread Pádraig Brady
wc is a essentially a digesting function like sha etc. in that it produces a 1 line summary per file. The attached patch ensures that those lines are output atomically for concurrent wc processes. Note in general one can use `stdbuf -oL cmd` to line-buffer a process which outputs to stdout, but

Re: [PATCH] wc: line-buffer the printed counts

2009-12-22 Thread Jim Meyering
Pádraig Brady wrote: wc is a essentially a digesting function like sha etc. in that it produces a 1 line summary per file. The attached patch ensures that those lines are output atomically for concurrent wc processes. Note in general one can use `stdbuf -oL cmd` to line-buffer a process

Re: [PATCH] stat: add support for more file system types

2009-12-22 Thread Jim Meyering
Pádraig Brady wrote: *src/stat.c (human_fstype): Add the following FS types: fuseblk, rpc_pipefs. Also fix a typo of minux3 to minix3 and add ext4 to the ext2/ext3 name. Also mention the fs-magic-compare make target to help update the list. * NEWS: Mention the fix. From

Re: touch

2009-12-22 Thread Jim Meyering
Eric Blake wrote: Yep - it is indeed an example of the mtime (and ctime) failing to update, even though utimensat claimed success. Here's an interesting glibc change from just a few hours ago:

Re: [PATCH] stat: add support for more file system types

2009-12-22 Thread Pádraig Brady
On 22/12/09 10:01, Jim Meyering wrote: Thanks for the additions and typo fix. For the ext4-adding part, I'm a little reluctant, because it may break scripts that test via e.g., test $(stat -f -c %T .) = ext2/ext3 ... rather than the more portable -- in potential retrospect: case

Re: [PATCH] wc: line-buffer the printed counts

2009-12-22 Thread Pádraig Brady
On 22/12/09 09:38, Jim Meyering wrote: Pádraig Brady wrote: wc is a essentially a digesting function like sha etc. in that it produces a 1 line summary per file. The attached patch ensures that those lines are output atomically for concurrent wc processes. Note in general one can use `stdbuf

Re: [PATCH] stat: add support for more file system types

2009-12-22 Thread Pádraig Brady
On 22/12/09 10:18, Pádraig Brady wrote: On 22/12/09 10:01, Jim Meyering wrote: Thanks for the additions and typo fix. For the ext4-adding part, I'm a little reluctant, because it may break scripts that test via e.g., test $(stat -f -c %T .) = ext2/ext3 ... rather than the more portable -- in

Re: touch

2009-12-22 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jim Meyering on 12/22/2009 3:21 AM: Eric Blake wrote: Yep - it is indeed an example of the mtime (and ctime) failing to update, even though utimensat claimed success. Here's an interesting glibc change from just a few hours ago:

Re: touch

2009-12-22 Thread Jim Meyering
Eric Blake wrote: According to Jim Meyering on 12/22/2009 3:21 AM: Eric Blake wrote: Yep - it is indeed an example of the mtime (and ctime) failing to update, even though utimensat claimed success. Here's an interesting glibc change from just a few hours ago:

Re: btwowc(EOF) hang with gcc 4.4.2

2009-12-22 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Karl Berry on 12/21/2009 4:51 PM: It's definitely a compiler problem. That extern inline asm alias trickery The gcc people say that the behavior is correct; not a bug. (I don't understand all of their replies, but the conclusion

Re: [PATCH] stat: add support for more file system types

2009-12-22 Thread Jim Meyering
Pádraig Brady wrote: I pushed forgetting about gfs and ocfs. OK to ammend with this... Subject: [PATCH] stat: Recognize gfs2, ocfs2 file system types * src/stat.c (human_fstype): Add gfs2 and ocfs2 to the list. * NEWS: Update the stat -f entry. Looks fine. Thanks!

Re: tail + inotify over nfs

2009-12-22 Thread Pádraig Brady
On 16/12/09 12:36, Jim Meyering wrote: Pádraig Brady wrote: I got a few minutes to look at this today, and the attached patch seems to work with a very quick test. It doesn't handle the above remount case though as if I mount the parent dir of a file or bind mount the file itself then there

Re: coreutils-8.2 bug-fix-only release coming soon

2009-12-22 Thread Jim Meyering
Ludovic Courtès wrote: Jim Meyering j...@meyering.net writes: Regarding ‘chgrp/basic’, the test finds groups='3 65534'. However, 65534 corresponds to ‘nogroup’. (The build process runs under a special user, typically: $ id nixbld1 uid=30001(nixbld1) gid=65534(nogroup)

Re: btwowc(EOF) hang with gcc 4.4.2

2009-12-22 Thread Bruno Haible
Any objections to the following? + * m4/btowc.m4 (gl_FUNC_BTOWC): Add a timeout. + * doc/posix-functions/btowc.texi (btowc): Document the problem. Here is a proposed change to m4/wchar.m4 that diagnoses the problem before the btowc test program is even compiled. 2009-12-22

Re: btwowc(EOF) hang with gcc 4.4.2

2009-12-22 Thread Karl Berry
Hi Andreas, It still works, that's what fixincludes is for. If that does not work for you then this is a different bug. My understanding is that fixincludes is automatically run these days. So all I did was run configure --prefix=/usr/local/gnu --enable-languages=c,c++ \ make \