A/UX and cc and gcc no like stat() function

Jim Jagielski jim at jagmac2.gsfc.nasa.gov
Sat Sep 15 03:42:12 AEST 1990


I'm writing this little program that calls stat() to get various file
information (user, mode, etc..). However, the call always fails with
errno = 14, which is EFAULT (Bad address)... what's going on?

It's not code related... I think it's linker related because the Unisoft
compiler (which uses unshared lib's AND unshared executables: unshared.ld)
compiles and runs it fine... cc and gcc don't.

What the hell is going on? I need a *dependable* programming platform.
A/UX won't even handle a simple system call with crapping out?

And how does one tell cc NOT to use shared executables??
--
=======================================================================
#include <std/disclaimer.h>
                                 =:^)
           Jim Jagielski                    NASA/GSFC, Code 711.1
     jim at jagmac2.gsfc.nasa.gov               Greenbelt, MD 20771

"Kilimanjaro is a pretty tricky climb. Most of it's up, until you reach
 the very, very top, and then it tends to slope away rather sharply."



More information about the Comp.unix.aux mailing list