Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Stefano Diomedi
Tue, 05 Sep 1989 11:32
bug in make 3.55
Author: Stefano Diomedi
Date: Tue, 05 Sep 1989 11:32
Date: Tue, 05 Sep 1989 11:32
44 lines
1448 bytes
1448 bytes
Machine: DEC VAX Operating system: ULTRIX 3.0 1. File: load.c Function: load_average In addition to the patch already made from 3.54 the test on the lseek call has to change from if (lseek (kmem, offset, 0) < 0L) to if (lseek (kmem, offset, 0) == (long)-1) In my case the address of "_avenrun" (offset value) happens to be 2148358396 and the lseek calls returns it as a signed value (-2146608900). So the value is less than 0 but the lseek call didn't fail at all. It seems (Unix manuals, X/Open Portability Guide 3 [xpg3]) that -1 is the only value returned when lseek fails. 2. File: job.c The macro WCOREDUMP is not defined in <sys/wait.h> (because it is not present in xpg3, Posix, I guess). So I added the right Ultrix definition when WTERMSIG is defined: #ifdef WTERMSIG #define WAIT_T int #define WCOREDUMP(x) (((union wait *)&(x))->w_coredump) #else .... Regards Stefano Diomedi Pisa - Italy
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads