c/6126: Tru64 5.1 doesn't expose stat(2) as a function; fixincludes?
mkc@stowers-institute.org
mkc@stowers-institute.org
Mon Apr 1 15:26:00 GMT 2002
>Number: 6126
>Category: c
>Synopsis: Tru64 5.1 doesn't expose stat(2) as a function
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: support
>Submitter-Id: net
>Arrival-Date: Mon Apr 01 15:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Mike Coleman
>Release: 3.0.3
>Organization:
>Environment:
System: OSF1 gskc01 V5.1 732 alpha
Machine: alpha
host: alpha-dec-osf5.1
build: alpha-dec-osf5.1
target: alpha-dec-osf5.1
configured with: ../gcc-3.0.3/configure
>Description:
Under Tru64 5.1, stat is defined as a macro, but is not exposed as a
function, except to the DEC C compiler. The header file uses
#pragma extern_prefix "_F64_"
to map stat to the function _F64_stat, but only if DECC is defined.
My question is, is this something that can or should be fixed by
fixincludes, or should I just complain to the vendor about it?
Thanks.
>How-To-Repeat:
/* this will fail to compile */
/* tru64-stat-bug.c:9: `stat' undeclared (first use in this function) */
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
int main() {
printf("%p\n", &stat);
return 0;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list