Re: truncate.c fails to compile on make distcheck

2008-06-27 Thread Pádraig Brady
Rather than relying on code inspection to find places where signed ints would be erroneously promoted to unsigned, I went looking for a gcc option to automatically detect this. It's -Wsign-compare which is automatically included in -Wextra. Note it might be good to add to README-hacking to run conf

[PATCH]: Fix for several getdate.y issues

2008-06-27 Thread Ondřej Vašík
Hello, while playing a bit with date formats, I found several issues (still present in GIT head). Current date on my machine is Fri Jun 27 11:58:47 CEST 2008, used in all examples. 1) "Strange" results of signed relative time offset [EMAIL PROTECTED] ~]$ date -d "11:40 + 60 minutes" Fri Jun 27 12:

Re: [PATCH]: Fix for several getdate.y issues

2008-06-27 Thread Jim Meyering
Ondřej Vašík <[EMAIL PROTECTED]> wrote: > Hello, > while playing a bit with date formats, I found several issues (still > present in GIT head). Current date on my machine is Fri Jun 27 11:58:47 > CEST 2008, used in all examples. > > 1) "Strange" results of signed relative time offset > [EMAIL PROTE

Re: 6.12.70-4f470 with 64-bit gcc and gnu ld on Solaris 9 - timeout-parameters.log

2008-06-27 Thread Poor Yorick
Pádraig Brady wrote: Poor Yorick wrote: compiling 6.12.70-4f470 with 64-bit gcc (with -m64) and 64-bit gnu ld on Solaris 9: So on this system `timeout 4294967296 sleep 0` is invalid but `timeout 49711d sleep 0` is OK? The apply_time_suffix() function should be returning an error for the latte

Re: Small patch for AIX & HP-UX

2008-06-27 Thread Peter O'Gorman
On Thu, Jun 26, 2008 at 09:10:21PM +0200, Jim Meyering wrote: > Thanks for the reports and patches. > I've applied those with minor changes. > > When submitting patches in the future, please > look at the relatively new guidelines in HACKING. > The goal is that you'd format each patches you send

Re: truncate.c fails to compile on make distcheck

2008-06-27 Thread Jim Meyering
Pádraig Brady <[EMAIL PROTECTED]> wrote: > Rather than relying on code inspection to find places > where signed ints would be erroneously promoted to unsigned, > I went looking for a gcc option to automatically detect this. > It's -Wsign-compare which is automatically included in -Wextra. > Note it

Re: [PATCH]: Fix for several getdate.y issues

2008-06-27 Thread Ondřej Vašík
Jim Meyering wrote: > Would you mind separating that into a few separate change sets? No problem, I splitted the main patch into smaller sub-patches, it is still not complete set of changes, following 3 gnulib getdate.y patches are fixing only issue #2 and #3. > - in a function definition, the f

FYI, uniq: remove redundant test

2008-06-27 Thread Jim Meyering
It doesn't change semantics, but does change the generated code: >From 922c5eff0c03e79714041f3602ce79cceabd5261 Mon Sep 17 00:00:00 2001 From: Jim Meyering <[EMAIL PROTECTED]> Date: Fri, 27 Jun 2008 18:52:56 +0200 Subject: [PATCH] uniq: remove redundant test * src/uniq.c (find_field): Remove redu

document stty -g code positions

2008-06-27 Thread jidanni
In (info "(coreutils)stty invocation"), please mention what all the secret codes in stty -g (--save) are. One could see e.g., right away that position 15 is different on my mom's terminal, but what stty setting is position 15, one asks? Otherwise one has to do e.g., COLUMNS=1 stty -a > /tmp/ww CO

Re: truncate.c fails to compile on make distcheck

2008-06-27 Thread Paul Eggert
Pádraig Brady <[EMAIL PROTECTED]> writes: > diff --git a/src/truncate.c b/src/truncate.c > index 02d4102..fd321c6 100644 > --- a/src/truncate.c > +++ b/src/truncate.c > @@ -189,9 +189,9 @@ do_ftruncate (int fd, char const *fname, off_t ssize, > rel_mode_t rel_mode) > } > >if (r

Re: truncate.c fails to compile on make distcheck

2008-06-27 Thread Pádraig Brady
Paul Eggert wrote: > Pádraig Brady <[EMAIL PROTECTED]> writes: > >> diff --git a/src/truncate.c b/src/truncate.c >> index 02d4102..fd321c6 100644 >> --- a/src/truncate.c >> +++ b/src/truncate.c >> @@ -189,9 +189,9 @@ do_ftruncate (int fd, char const *fname, off_t ssize, >> rel_mode_t rel_mode) >>

please tell me where can I find the source code for function 'stat(char *, struct stat *)'

2008-06-27 Thread shuaijie wang
I linux system, there is a system funtion 'stat(char *, struct stat *)', I want to read the source code of this function, but while I assume that this function may exist in the file /usr/src/linux-2.4/fs/stat.c, it actually doesn't. In file stat.c, I can't find the funtion of 'stat()', so please t

Man-Page mkdir

2008-06-27 Thread Heiko Marr
Hi, there seems to be a mistake in the description of SYNOPSIS for mkdir. You wrote: mkdir [OPTION] DIRECTORY... but it has to be: mkdir [OPTION]... DIRECTORY... sincerly Heiko Marr ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.

nohup cannot be interrupted

2008-06-27 Thread Loris Rinaldo
I think there should be anther option for the nohup command, in order to quit a command previously launched: nohup OPTION --quit: terminates previously launched nohup command) I launched a 100GB copy command with nohup and I can't figure out how to cancel this operation. thanks, Loris _