Strictly speaking, we are returning the size of a memory chunk of arbitrary size, so ssize_t is more appropriate than int.
The files are used by logind and udevd. And the functions in the files are not specific to logind, and quite general enough to move to libshared.