There is a C language programming interface for some BlackBerry Dynamics capabilities. Functions and other elements in the interface in general have the same names as the corresponding elements in the Standard C library or POSIX standard interface, but with a "GD_" or "GD_UNISTD_" prefix. For example, the BlackBerry Dynamics functions are GD_fopen() instead of fopen(), and GD_accept() instead of accept(). The interfaces are otherwise the same, with some exceptions.
To import the headers for the C API, download the BlackBerry Dynamics SDK for Android from developers.blackberry.com and extract the headers from the path /sdk/libs/handheld/libs/gd/inc/
within the downloaded zip.
Note that opening a file with the C interface doesn't lock the file.