From 1588a1d4c109bd9c800cec098d4fa48a4472003a Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Thu, 15 Dec 2011 00:01:31 +0100 Subject: Fix typos in driver.xml and erl_driver.xml --- erts/doc/src/driver.xml | 2 +- erts/doc/src/erl_driver.xml | 46 ++++++++++++++++++++++----------------------- 2 files changed, 24 insertions(+), 24 deletions(-) (limited to 'erts') diff --git a/erts/doc/src/driver.xml b/erts/doc/src/driver.xml index ac5729880d..52283879c7 100644 --- a/erts/doc/src/driver.xml +++ b/erts/doc/src/driver.xml @@ -31,7 +31,7 @@

This document was written a long time ago. A lot of it is still interesting since it explains important concepts, but it was - written for an older driver interface so the examples does not + written for an older driver interface so the examples do not work anymore. The reader is encouraged to read erl_driver and the driver_entry documentation. diff --git a/erts/doc/src/erl_driver.xml b/erts/doc/src/erl_driver.xml index b5df4ca0c8..4fd74b783e 100644 --- a/erts/doc/src/erl_driver.xml +++ b/erts/doc/src/erl_driver.xml @@ -43,8 +43,8 @@ to the runtime system at driver initialization, and some new driver API functions.

-

As of erts version 5.9 old drivers has to be recompiled - and has to use the extended interface. They also has to be +

As of erts version 5.9 old drivers have to be recompiled + and have to use the extended interface. They also have to be adjusted to the 64-bit capable driver interface. @@ -283,7 +283,7 @@ called return garbage sizes to the emulator causing it to read random memory and create huge incorrect result blobs.

Therefore it is not enough to just recompile drivers written with - version management for pre-R15B types; the types has to be changed + version management for pre-R15B types; the types have to be changed in the driver suggesting other rewrites especially regarding size variables. Investigate all warnings when recompiling!

Also, the API driver functions driver_output*, @@ -356,19 +356,19 @@

Driver callback output - now gets ErlDrvSizeT as 3:rd argument instead + now gets ErlDrvSizeT as 3rd argument instead of previously int.

Driver callback control - now gets ErlDrvSizeT as 4:th and 6:th arguments instead + now gets ErlDrvSizeT as 4th and 6th arguments instead of previously int.

Driver callback call - now gets ErlDrvSizeT as 4:th and 6:th arguments instead + now gets ErlDrvSizeT as 4th and 6th arguments instead of previously int.

@@ -410,54 +410,54 @@ Arguments and return values in the driver API

- Many driver API functions has changed argument type + Many driver API functions have changed argument type and/or return value to ErlDrvSizeT from mostly int. Automatic type casting probably makes these changes necessary only for a driver that encounters sizes larger than 32 bits.

driver_output - 3:rd argument + 3rd argument driver_output2 - 3:rd and 5:th arguments + 3rd and 5th arguments driver_output_binary - 3:rd 5:th and 6:th arguments + 3rd 5th and 6th arguments driver_outputv - 3:rd and 5:th arguments + 3rd and 5th arguments driver_vec_to_buf - 3:rd argument and return value + 3rd argument and return value driver_alloc - 1:st argument + 1st argument driver_realloc - 2:nd argument + 2nd argument driver_alloc_binary - 1:st argument + 1st argument driver_realloc_binary - 2:nd argument + 2nd argument driver_enq - 3:rd argument + 3rd argument driver_pushq - 3:rd argument + 3rd argument driver_deq - 2:nd argument and return value + 2nd argument and return value driver_sizeq return value driver_enq_bin - 3:rd and 4:th argument + 3rd and 4th argument driver_pushq_bin - 3:rd and 4:th argument + 3rd and 4th argument driver_enqv - 3:rd argument + 3rd argument driver_pushqv - 3:rd argument + 3rd argument driver_peekqv return value -- cgit v1.2.3