From 595aae376fae21f885ec9af2cac1aaf3ff3e9bee Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 19 Dec 2011 14:42:59 +0100 Subject: man: various updates --- man/sd-login.xml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'man/sd-login.xml') diff --git a/man/sd-login.xml b/man/sd-login.xml index 62ec6ffefd..9926d2b85c 100644 --- a/man/sd-login.xml +++ b/man/sd-login.xml @@ -75,7 +75,26 @@ actively make changes to the seat configuration, terminate login sessions, or switch session on a seat you need to utilize the D-Bus API of - systemd-logind. + systemd-logind, instead. + + These functions access data in + /proc, + /sys/fs/cgroup and + /run. All of these are virtual + file systems, hence the runtime cost of the accesses + is relatively cheap. + + If the functions return string arrays, these are + generally NULL terminated and need to be freed by the + caller with the libc + free3 + call after use, including the strings referenced + therein. Similar, individual strings returned need to + be freed, as well. + + As a special exception, instead of an empty + string array NULL may be returned, which should be + treated equivalent to an empty string array. See sd_pid_get_session3, -- cgit v1.2.3-54-g00ecf