SNIP_CLASSIC_OS_SECTION_3_2_3_2_1_Static_wrapper
Wortlaut
3.2.3.2.1 Static wrapper
The following code fragment shows a possible wrapper in case only one "user" calls
the function (in other cases the buffer handling needs to be extended).
In the example the CallTrustedFunction mechanism is used:
1
/* definition of parameter structure for CallTrustedFunction */
2
struct parameter_struct {uint8 return_value};
3
uint8 wrapper_function(void)
4
{
5
struct parameter_struct local_struct;
Versionen & Provenienz · Zugeordnete Anforderungen
Diese Angaben zeigt der Versions-Explorer.
Begründung & Zuweisungs-Evidenz
Parameter structure for trusted functions
Dokumenten-Herkunft & Rückverfolgbarkeit
| Spezifikations-Dokument | EXP_BSWDistributionGuide.pdf |
|---|---|
| Dokumentseite | Seite 71 |
| Ziel-Modul | os (classic) |
| Ziel-Anforderung | SWS_Os_00776 |
| Semantische Rolle | heuristic |
| Automatisierungs-Konfidenz | 0.85 |