|
NAMEsg_get_user_stats, sg_get_user_stats_r, sg_free_user_stats - get the current logged in usersSYNOPSIS#include <statgrab.h>
DESCRIPTIONThe user statistics module delivers some information about logged on users. Each logon is treated separately. Both statistic get functions, sg_get_user_stats() and sg_get_user_stats_r(), return a vector of sg_user_stats with entries elements.API Shortcut
The sg_user_stats vector received from sg_get_user_stats_r() must be freed using sg_free_user_stats() when not needed any more. The caller is responsible for doing it. RETURN VALUESThe structure returned is of type sg_user_stats.typedef struct { char *login_name; char *record_id; size_t record_id_size; char *device; char *hostname; pid_t pid; time_t login_time; time_t systime; } sg_user_stats;
SEE ALSOstatgrab(3)WEBSITE⟨https://libstatgrab.org/⟩
Visit the GSP FreeBSD Man Page Interface. |