public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/6126: Tru64 5.1 doesn't expose stat(2) as a function; fixincludes?
@ 2002-04-01 15:26 mkc
  0 siblings, 0 replies; only message in thread
From: mkc @ 2002-04-01 15:26 UTC (permalink / raw)
  To: gcc-gnats


>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:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-04-01 23:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-01 15:26 c/6126: Tru64 5.1 doesn't expose stat(2) as a function; fixincludes? mkc

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 read-only IMAP folder(s) and NNTP newsgroup(s).