X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fsd_machine_get_class.xml;h=a874249afe972a03d9d97c2dd101c74e514bd89f;hp=5b881ccea1f63f1743acfc568d695f3a9b0e523b;hb=5a50df28333d0d9b7afabe37024f37ec698a6a9f;hpb=798d3a524ea57aaf40cb53858aaa45ec702f012d diff --git a/man/sd_machine_get_class.xml b/man/sd_machine_get_class.xml index 5b881ccea..a874249af 100644 --- a/man/sd_machine_get_class.xml +++ b/man/sd_machine_get_class.xml @@ -3,29 +3,29 @@ "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> sd_machine_get_class - systemd + elogind @@ -51,12 +51,12 @@ - #include <systemd/sd-login.h> + #include <elogind/sd-login.h> int sd_machine_get_class const char* machine - char *class + char **class @@ -73,7 +73,7 @@ sd_machine_get_class() may be used to determine the class of a locally running virtual machine or container that is registered with - systemd-machined.service8. + elogind-machined.service8. The string returned is either vm or container. The returned string needs to be freed with the libc systemd-machined.service8. + elogind-machined.service8. The returned array needs to be freed with the libc free3 call after use. @@ -98,6 +98,35 @@ code. + + Errors + + Returned errors may indicate the following problems: + + + + + -ENXIO + + The specified machine does not exist or is currently not running. + + + + + -EINVAL + + An input parameter was invalid (out of range, + or NULL, where that's not accepted). + + + + -ENOMEM + + Memory allocation failed. + + + + Notes @@ -105,7 +134,7 @@ sd_machine_get_ifindices() interfaces are available as a shared library, which can be compiled and linked to with the - libsystemd pkg-config1 + libelogind pkg-config1 file. @@ -113,9 +142,9 @@ See Also - systemd1, + elogind1, sd-login3, - systemd-machined.service8, + elogind-machined.service8, sd_pid_get_machine_name3