Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Christopher Curtis <ccurtis@ee.fit.edu>
Subject: Re: cdrecord on Linux/Alpha works
Date: Tue, 18 Nov 1997 10:36:04 -0500 (EST)	[thread overview]
Message-ID: <b84af3b9e155fd531b98071e91f232d7.axp-list@archive.invalid> (raw)
In-Reply-To: <19971118082818.61406@alpha.franken.de>

On Tue, 18 Nov 1997, Thomas Bogendoerfer wrote:

> I've asked a couple of days ago wether someone has used cdrecord on
> Linux/Alpha successfully. As nobody had success with it, I debugged
> cdrecord and found the usally problems (100 instead of HZ, casts
> from pointers to ints and two functions which assume sizeof(long)==4).

Hello,

Sorry for my ignorance, but we got an Alpha UDB as an entry-level system
to learn some of the peculiarities of porting to a 64 it system.  We
haven't finished our code yet (doh!) to start going 64-bit clean; what is
"HZ" and its relationship to 100 (or not, in the Linux/Alpha case)?

Also, if you don't mind me asking, what can I do about this?  Our code is
into two distinct parts: a UI portion, and a DLL portion (yeah, it's an NT
thing), which does all the needed calculations and memory operations.  The
API is hidden behind 'wrapper' functions, such as:
  MyAPI_Get( MyAPIptr, API_TYPE, "an.api.property" );   (MT-Unsafe)
  MyAPI_Set( MyAPIptr, API_TYPE, "an.api.property", void *Value );

This was halfheartedly designed in the XView paradigm (typically a SunOS
shop) where all return values are strings and the "void *Value" bit can 
be anything, which is typcast as needed by the property.  But I have a
problem: For one specific property, I want to pass the address of a
function (callback handler).  GCC complains to no ends about it.
Naturally, the Microsoft compiler thinks it's great.  :)

I guess my question is will this work on an Alpha?  Will a function
pointer fit within a void pointer?  Does anyone know about the UltraSPARC? 
Or a 'proper' workaround that adds no complexity to the user API?

Thanks immensely,

--
Christopher Curtis               - http://www.ee.fit.edu/users/ccurtis
Florida Institute of Technology  - System Administrator, Programmer
Melbourne, Florida  USA          - http://www.lp.org/

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

       reply	other threads:[~1997-11-18 15:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <19971118082818.61406@alpha.franken.de>
1997-11-18 15:36 ` Christopher Curtis [this message]
1997-11-19 21:30 ` cdrecord on Linux/Alpha works Thomas Bogendoerfer
     [not found] <Pine.GSO.3.96.971118102415.23264A-100000@yacht.ee.fit.edu>
1997-11-19 22:33 ` Thomas Bogendoerfer
1997-11-18  7:28 Thomas Bogendoerfer
read-only archive

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