summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2023-02-24 01:45:50 +0800
committerMike Yuan <me@yhndnzj.com>2023-02-24 02:12:36 +0800
commitc4ef14dc2a0eaae6b93d41e5c82f50ee86e480a4 (patch)
tree8047acb5c472a5be7178984de0874c5664f1cd2e /man
parentd71f5b1217986a18e8ddaef3191afddfe731b2d7 (diff)
downloadsystemd-c4ef14dc2a0eaae6b93d41e5c82f50ee86e480a4.tar.gz
sd-login: add sd_session_get_start_time
Diffstat (limited to 'man')
-rw-r--r--man/sd_session_is_active.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/man/sd_session_is_active.xml b/man/sd_session_is_active.xml
index b62c35ae74..716d8e162e 100644
--- a/man/sd_session_is_active.xml
+++ b/man/sd_session_is_active.xml
@@ -23,6 +23,7 @@
<refname>sd_session_get_uid</refname>
<refname>sd_session_get_username</refname>
<refname>sd_session_get_seat</refname>
+ <refname>sd_session_get_start_time</refname>
<refname>sd_session_get_service</refname>
<refname>sd_session_get_type</refname>
<refname>sd_session_get_class</refname>
@@ -74,6 +75,12 @@
</funcprototype>
<funcprototype>
+ <funcdef>int <function>sd_session_get_start_time</function></funcdef>
+ <paramdef>const char *<parameter>session</parameter></paramdef>
+ <paramdef>uint64_t *<parameter>usec</parameter></paramdef>
+ </funcprototype>
+
+ <funcprototype>
<funcdef>int <function>sd_session_get_service</function></funcdef>
<paramdef>const char *<parameter>session</parameter></paramdef>
<paramdef>char **<parameter>service</parameter></paramdef>
@@ -178,6 +185,10 @@
<citerefentry project='man-pages'><refentrytitle>free</refentrytitle><manvolnum>3</manvolnum></citerefentry>
call after use.</para>
+ <para><function>sd_session_get_start_time()</function> may be used to
+ determine the start time of the session identified by the specified
+ session identifier belongs to.</para>
+
<para><function>sd_session_get_service()</function> may be used to
determine the name of the service (as passed during PAM session
setup) that registered the session identified by the specified