Librt Overview

Support for the Librt library on the Symbian platform enables you to port Librt-based applications onto the Symbian platform quickly and easily. With knowledge of the Librt library you can also develop Librt-based applications on the Symbian platform with minimal coding effort and without much knowledge of the native Symbian Utility C++ APIs.

Librt library details

The librt.dll provides the Librt functionality and your code must link to librt.lib .

Important: Your application or library that uses the Librt library for the clock solutions must link to librt.dll prior to all other libraries in the link order. This is because both libc.dll and librt.dll provide similar clock interfaces but only the Librt library is modified to behave according to the LSB 3.1 specification.

Architecture

The following image illustrates how the Librt library interacts with the components of the P.I.P.S. environment and also with the Symbian platform:

Figure 1. The Librt library interacting with P.I.P.S. and the Symbian platform

APIs

The following table is a comprehensive list of Librt APIs as per the LSB 3.1 specification :

API

Shared Memory APIs

shm_open()

shm_unlink()

Clock APIs

clock_getcpuclockid()

clock_getres()

clock_gettime()

clock_nanosleep()

clock_settime()

Timer APIs

timer_create()

timer_delete()

timer_getoverrun()

timer_gettime()

timer_settime

Using Librt

The following tutorials describe some high-level usage scenarios of the Librt library functions: