From: Earnie B. <ea...@us...> - 2005-08-23 15:01:17
|
On 2:03:24 pm 2005-08-23 "WELLS, ROGER K." <ROG...@sa...> wrote: > According to ISO/IEC 9899 International Standard for "C" SEEK_xxx are > to be defined in stdio.h > Acording to POSIX Programmers Guide (Levine, O'Reilly & Associates > Inc) SEEK_xxx are to be defined in stdio.h > On "gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-52)" the > following appears in unistd.h: > > /* Values for the WHENCE argument to lseek. */ > #ifndef _STDIO_H /* <stdio.h> has the same > definitions. */ # define SEEK_SET 0 /* Seek from > beginning of file. */ # define SEEK_CUR 1 /* Seek from > current position. */ # define SEEK_END 2 /* Seek from > end of file. */ #endif > > so I guess that stdio.h wins for the definitions and we ought to be > able to do what is done in the RedHat example wrt unistd.h > Just more support for ``#include <stdio.h>'' in unistd.h. Earnie |