RSA BSAFE Micro Edition Suite

Streamlined security for mobile and embedded devices

Search  Print

Error Management Functions

This section outlines the error functions.

Defines

int R_os_get_last_sys_error()
 Retrieves the last system error that occurred in the application. More...

void R_os_clear_sys_error()
 Resets the last system error that occurred in the application.


Functions

int R_CDECL R_os_io_non_fatal_error (int err)
 Checks the error condition for non-fatal status. More...

int R_CDECL R_os_io_should_retry (int i, int err)
 Checks if the Input/Output (I/O) should be retried. More...


Define Documentation

 
int R_os_get_last_sys_error  
 

Retrieves the last system error that occurred in the application.

Returns:
The last system error.
Samples:
cache_server.c, p7ssl_client.c, p7ssl_server.c, ssl_client.c, and ssl_server.c.


Function Documentation

int R_CDECL R_os_io_non_fatal_error int    err ;
 

Checks the error condition for non-fatal status.

Parameters:
err [In] The operating system error code returned from R_os_get_last_sys_error().
Returns:
1 indicates a non-fatal error.
0 indicates a fatal error.

int R_CDECL R_os_io_should_retry int    i,
int    err
;
 

Checks if the Input/Output (I/O) should be retried.

Parameters:
i [In] The return code from the last I/O call.
err [In] The operating system error code returned from R_os_get_last_sys_error().
Returns:
1 indicates a non-fatal error.
0 indicates a fatal error.


Copyright (c) 1999-2005 RSA Security Inc. All rights reserved. 072-001001-2100-001-000 - 2.1