Re: Porting SANE backends

Svend Daugaard Pedersen (sdp@vip.cybercity.dk)
Fri, 26 Feb 1999 22:44:50 +0100

Oliver Rauch wrote:

>How do you start a new task on the amiga?

It is done in several ways.

You may call a system routine with the address of the code to be
started as a new task (with some optional information such as size
of stack etc.) Since you have to specify the address it is typically
a subroutine you start.

This is the problem. 'fork()' starts a new task in the middle of a
subroutine. Of cause there is a way out of this problem but to make
an implementation you have to know a lot more about 'fork()' and
related routines than I do. And although you can find a lot of UNIX
routines ported for the Amiga on the Net (I found alloca() on the Net)
it seems as if nobody has ever tried to implement 'fork()'.

To go back to the start of this discussion. If you really need to use
non ANSI C stuff please do it in a way that makes it easy to remove.
As I said in my first letter I have ported 4 backends until now (and I
am on the way to add two or three more). But I do not have all these
scanners my self and I cannot test the porting my self. This is not
possible if you have to make a lot of changes in the code.

Svend

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com