DD'ing IRIX Disks (was Re: [geeks] Apple vs. Sun)
Joshua D Boyd
jdboyd at cs.millersville.edu
Fri Nov 8 00:19:02 CST 2002
On Thu, Nov 07, 2002 at 01:48:42PM -0600, Jonathan C Patschke wrote:
> >It also sounds like it should be simple for someone to make a wrapper
> >library to fix most of the problems.
>
> You're not going to be able to fix the semaphore bugs with a wrapper, I
> think. The bugs are in the function-calling mechanism, and the
> semaphore calls go into the kernel and back out. By that time, the
> data is already corrupt. The only way you could wrap around it would
> be an inline-assembly routine that did the function call by hand. I
> suppose it would work, but it would be messy, and you'd still need to
> modify the source for each dependent source file to make it work.
It seems to me there should be a better way. Well, of course there is,
fix the compiler. But barring that there still seems like there should
be a better way. I don't have the time to fiddle with it though.
--
Joshua D. Boyd
More information about the geeks
mailing list