From c576920e673114529c5bfe5ea29891a24a443338 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 8 Dec 2022 15:49:02 +0900 Subject: man: mention that sd_id128_get_boot() and friend may return -ENOSYS And drop to mention sd_id128_get_boot_app_specific() may return -ENOENT or -ENOMEDIUM. The function does not read /etc/machine-id. But reads a file in the procfs, which is a kind of the kernel API. Hence the failures are caused only when the system has wrong setup. --- man/sd_id128_get_machine.xml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/man/sd_id128_get_machine.xml b/man/sd_id128_get_machine.xml index 8bc76b686b..dbc6d4885d 100644 --- a/man/sd_id128_get_machine.xml +++ b/man/sd_id128_get_machine.xml @@ -129,19 +129,17 @@ -ENOENT - Returned by sd_id128_get_machine(), - sd_id128_get_machine_app_specific(), and - sd_id128_get_boot_app_specific() when /etc/machine-id is - missing. + Returned by sd_id128_get_machine() and + sd_id128_get_machine_app_specific() when /etc/machine-id + is missing. -ENOMEDIUM - Returned by sd_id128_get_machine(), - sd_id128_get_machine_app_specific(), and - sd_id128_get_boot_app_specific() when /etc/machine-id is - empty or all zeros. + Returned by sd_id128_get_machine() and + sd_id128_get_machine_app_specific() when /etc/machine-id + is empty or all zeros. @@ -152,6 +150,14 @@ /etc/machine-id is uninitialized. + + -ENOSYS + + Returned by sd_id128_get_boot() and + sd_id128_get_boot_app_specific() when /proc/ is not + mounted. + + -ENXIO -- cgit v1.2.1