AmigaDos

Possible to check if Pipe: has data available to read?

Is there any way of checking if I can read from Pipe: without it blocking (due to no data)?

I found SetBlockingMode(), but (1) it has the wrong semantics (I can't check a Read() will succeed without calling Read(), thus getting data I don't want yet), and (2) it's OS4-only (ideally I'd like something compatible with OS3).

Forums: 

How check if a DOS command exists?

Is there an easy way to check that an AmigaDOS command exists? In my particular case, I wish to check that "Curl" exists in the command path, so that I can check before hand if executing "Run >NIL: Curl ..." should work or not (and if not then warn the user it is missing).

I canNOT just try to Lock() the command's name, because AmigaDOS will search the command path, but Lock() will not!

I just tried using LoadSeg(), but that doesn't seem to search the command path either.

Forums: 

Pipe question

I have a program that uses a plugin system. The main executable feeds audio data to the selected plugin sequentially. Whenever a chunk of data is received, the plugin invokes an encoding routine, which then writes the encoded portion of data into a file. The result is an MP3, FLAC etc. file, depending on the selected plugin.

Forums: 

Get devices list

I can find all the devices on the computer just fine: LockDosList(LDF_DEVICES | LDF_READ);

I then check doslist->dol_Port to filter out non-DH0:, non-DF0:, etc. But it still allows ENV:, APPDIR:, and a few others through.

Is there an easy way to only get DFx:, DHx:, RAM:, RAD:, CDx: USB: ? Physical devices.

Forums: 

AmigaDOS handlers [ SOLVED ]

Hello,

my current focus is on the so called AmigaDOS handlers and the related packets interface.

I couldn' t find any good documentation about it. Anyway I was able to put together a bit of info looking at some (rather old) sources:

1) A handler process is started for each invocation (code must be re-entrant?).
2) Just one handler process is started for multiple invocations.

I really would like to better understand 1) and 2).

Any help is more than welcome as usual :)

Thanks

Forums: 

Pages

Subscribe to RSS - AmigaDos