I find some libraries are linked to librt.so
, while others are not. I am wondering in what circumstances it is linked.
I have never used this library directly. Is there any demo showing the direct usage of it? Is there a header file related to it?
I find some libraries are linked to librt.so
, while others are not. I am wondering in what circumstances it is linked.
I have never used this library directly. Is there any demo showing the direct usage of it? Is there a header file related to it?
And indeed if we look e.g. at
man shm_open
, we seeso the list of functions provided seems to be correct.
There is also this page from Solaris https://docs.oracle.com/cd/E86824_01/html/E54772/librt-3lib.html which explains that the librt library reexports some symbols actually implemented in libc and is there for historical reasons as it was specified in some versions of the Posix standard.