sd-login(3)


NAME

   sd-login - APIs for tracking logins

SYNOPSIS

   #include <systemd/sd-login.h>

   pkg-config --cflags --libs libsystemd

DESCRIPTION

   sd-login.h provides APIs to introspect and monitor seat, login session
   and user status information on the local system.

   See Multi-Seat on Linux[1] for an introduction into multi-seat support
   on Linux, the background for this set of APIs.

   Note that these APIs only allow purely passive access and monitoring of
   seats, sessions and users. To 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, instead.

   These functions synchronously 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.

   It is possible (and often a very good choice) to mix calls to the
   synchronous interface of sd-login.h with the asynchronous D-Bus
   interface of systemd-logind. However, if this is done you need to think
   a bit about possible races since the stream of events from D-Bus and
   from sd-login.h interfaces such as the login monitor are asynchronous
   and not ordered against each other.

   If the functions return string arrays, these are generally NULL
   terminated and need to be freed by the caller with the libc free(3)
   call after use, including the strings referenced therein. Similarly,
   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_session(3), sd_uid_get_state(3),
   sd_session_is_active(3), sd_seat_get_active(3), sd_get_seats(3),
   sd_login_monitor_new(3) for more information about the functions
   implemented.

NOTES

   These APIs are implemented as a shared library, which can be compiled
   and linked to with the libsystemd pkg-config(1) file.

SEE ALSO

   systemd(1), sd_pid_get_session(3), sd_uid_get_state(3),
   sd_session_is_active(3), sd_seat_get_active(3), sd_get_seats(3),
   sd_login_monitor_new(3), sd-daemon(3), pkg-config(1)

NOTES

    1. Multi-Seat on Linux
       http://www.freedesktop.org/wiki/Software/systemd/multiseat





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.