Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Has anyone gotten getsysinfo to work?
@ 1999-05-27 14:30 Peter Rival
  1999-05-28 22:23 ` Richard Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Rival @ 1999-05-27 14:30 UTC (permalink / raw)
  To: axp-list

Hi all,

    Well, I'm back again ;)  I'm trying to fix a couple of shortcuts
that I had to use to get a piece of software to compile.  Since
installing RH60 on both my Miata and Rawhide, I've been able to get
everything back to the original code, except for one line:

    getsysinfo(GSI_GET_HWRPB, &my_rpb, sizeof(my_rpb), 0, NULL);

I can compile the file, but when it tries to link the resulting .o
files, it complains about an undefined reference to getsysinfo.  I've
poked around a few of the libs, and the only reference I see is for an
"osf_getsysinfo" which leads me to believe that all I need is a
syscall() wrapper.  Is this correct?

 - Pete


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Has anyone gotten getsysinfo to work?
  1999-05-27 14:30 Has anyone gotten getsysinfo to work? Peter Rival
@ 1999-05-28 22:23 ` Richard Henderson
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 1999-05-28 22:23 UTC (permalink / raw)
  To: axp-list

On Thu, May 27, 1999 at 10:30:55AM -0400, Peter Rival wrote:
> and the only reference I see is for an
> "osf_getsysinfo" which leads me to believe that all I need is a
> syscall() wrapper.  Is this correct?

Yes. 

I don't know if you care, but GSI_GET_HWRPB is only implemented
in very recent kernels.  I don't know if 2.2.5 distributed with
RH6.0 is new enough -- you'll get EOPNOTSUPP if it isn't.


r~


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-05-28 23:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-27 14:30 Has anyone gotten getsysinfo to work? Peter Rival
1999-05-28 22:23 ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox