kopia lustrzana https://gitlab.com/sane-project/website
65 wiersze
2.8 KiB
HTML
65 wiersze
2.8 KiB
HTML
<!-- received="Fri Feb 26 14:00:08 1999 PST" -->
|
||
<!-- sent="Fri, 26 Feb 1999 22:44:50 +0100" -->
|
||
<!-- name="Svend Daugaard Pedersen" -->
|
||
<!-- email="sdp@vip.cybercity.dk" -->
|
||
<!-- subject="Re: Porting SANE backends" -->
|
||
<!-- id="" -->
|
||
<!-- inreplyto="36D6D00B.836D5150@wolfsburg.de" -->
|
||
<title>sane-devel: Re: Porting SANE backends</title>
|
||
<h1>Re: Porting SANE backends</h1>
|
||
<b>Svend Daugaard Pedersen</b> (<a href="mailto:sdp@vip.cybercity.dk"><i>sdp@vip.cybercity.dk</i></a>)<br>
|
||
<i>Fri, 26 Feb 1999 22:44:50 +0100</i>
|
||
<p>
|
||
<ul>
|
||
<li> <b>Messages sorted by:</b> <a href="date.html#194">[ date ]</a><a href="index.html#194">[ thread ]</a><a href="subject.html#194">[ subject ]</a><a href="author.html#194">[ author ]</a>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0195.html">Tim Waugh: "HP ScanJet 5p scan button"</a>
|
||
<li> <b>Previous message:</b> <a href="0193.html">Dr. Andreas Bolsch: "Re: horizontal stripes in your image"</a>
|
||
<!-- nextthread="start" -->
|
||
<!-- reply="end" -->
|
||
</ul>
|
||
<!-- body="start" -->
|
||
Oliver Rauch wrote:<br>
|
||
<p>
|
||
<p>
|
||
<i>>How do you start a new task on the amiga?</i><br>
|
||
<p>
|
||
It is done in several ways.<br>
|
||
<p>
|
||
You may call a system routine with the address of the code to be<br>
|
||
started as a new task (with some optional information such as size<br>
|
||
of stack etc.) Since you have to specify the address it is typically<br>
|
||
a subroutine you start.<br>
|
||
<p>
|
||
This is the problem. 'fork()' starts a new task in the middle of a<br>
|
||
subroutine. Of cause there is a way out of this problem but to make<br>
|
||
an implementation you have to know a lot more about 'fork()' and<br>
|
||
related routines than I do. And although you can find a lot of UNIX<br>
|
||
routines ported for the Amiga on the Net (I found alloca() on the Net)<br>
|
||
it seems as if nobody has ever tried to implement 'fork()'.<br>
|
||
<p>
|
||
To go back to the start of this discussion. If you really need to use<br>
|
||
non ANSI C stuff please do it in a way that makes it easy to remove.<br>
|
||
As I said in my first letter I have ported 4 backends until now (and I<br>
|
||
am on the way to add two or three more). But I do not have all these<br>
|
||
scanners my self and I cannot test the porting my self. This is not<br>
|
||
possible if you have to make a lot of changes in the code.<br>
|
||
<br>
|
||
Svend<br>
|
||
<p>
|
||
<p>
|
||
<pre>
|
||
--
|
||
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
|
||
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
|
||
</pre>
|
||
<!-- body="end" -->
|
||
<p>
|
||
<ul>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0195.html">Tim Waugh: "HP ScanJet 5p scan button"</a>
|
||
<li> <b>Previous message:</b> <a href="0193.html">Dr. Andreas Bolsch: "Re: horizontal stripes in your image"</a>
|
||
<!-- nextthread="start" -->
|
||
<!-- reply="end" -->
|
||
</ul>
|