* [9fans] APE behavior
@ 2002-04-19 13:10 Peter A. Cejchan
0 siblings, 0 replies; 2+ messages in thread
From: Peter A. Cejchan @ 2002-04-19 13:10 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 65 bytes --]
HI,
is this correct APE behavior (attached).
Cheers, ++pac.
[-- Attachment #2.1: Type: text/plain, Size: 273 bytes --]
The following attachment had content that we can't
prove to be harmless. To avoid possible automatic
execution, we changed the content headers.
The original header was:
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="ape.err"
[-- Attachment #2.2: ape.err.suspect --]
[-- Type: application/octet-stream, Size: 326 bytes --]
$ ####### APE stat.h err #####
$ cat c.c
#include <sys/stat.h>
void main(void){};
$ cat c2.c
#include <fcntl.h>
#include <sys/stat.h>
void main(void){};
$
$ pcc -D_POSIX_SOURCE c.c
/sys/include/ape/sys/stat.h:9[stdin:10] syntax error, last name: dev_t
pcc: cpp: 8c 5145:error
$ pcc -D_POSIX_SOURCE c2.c
$
$
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [9fans] APE behavior
@ 2002-04-19 16:28 Russ Cox
0 siblings, 0 replies; 2+ messages in thread
From: Russ Cox @ 2002-04-19 16:28 UTC (permalink / raw)
To: 9fans
You need to #include <sys/types.h>.
#including <fcntl.h> happens to do this
as a side effect, whereas <sys/stat.h>
does not. Welcome to the wonderful world
of Unix specifications.
http://www.opengroup.org/onlinepubs/007904975/toc.htm
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-04-19 16:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-19 13:10 [9fans] APE behavior Peter A. Cejchan
2002-04-19 16:28 Russ Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).