]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: set constant tag to NUL or NULL 17561/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 12 Nov 2020 07:58:00 +0000 (16:58 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 12 Nov 2020 08:10:36 +0000 (17:10 +0900)
24 files changed:
man/journald.conf.xml
man/pam_systemd.xml
man/sd-id128.xml
man/sd_bus_creds_get_pid.xml
man/sd_bus_error.xml
man/sd_bus_interface_name_is_valid.xml
man/sd_bus_path_encode.xml
man/sd_bus_process.xml
man/sd_bus_track_new.xml
man/sd_event_source_get_event.xml
man/sd_event_source_set_prepare.xml
man/sd_event_source_set_userdata.xml
man/sd_get_seats.xml
man/sd_id128_to_string.xml
man/sd_journal_has_runtime_files.xml
man/sd_listen_fds.xml
man/sd_uid_get_state.xml
man/sd_watchdog_enabled.xml
man/systemd-ask-password.xml
man/systemd.exec.xml
man/systemd.journal-fields.xml
man/systemd.netdev.xml
man/systemd.network.xml
man/systemd.unit.xml

index e50e8cd5c7f24de8b7346d0bb0412d781a3e2c87..959815a8f183c38d6db4fbba06a19dded3fbccb7 100644 (file)
 
         <listitem><para>The maximum line length to permit when converting stream logs into record logs. When a systemd
         unit's standard output/error are connected to the journal via a stream socket, the data read is split into
-        individual log records at newline (<literal>\n</literal>, ASCII 10) and NUL characters. If no such delimiter is
+        individual log records at newline (<literal>\n</literal>, ASCII 10) and <constant>NUL</constant> characters. If no such delimiter is
         read for the specified number of bytes a hard log record boundary is artificially inserted, breaking up overly
         long lines into multiple log records. Selecting overly large values increases the possible memory usage of the
         Journal daemon for each stream client, as in the worst case the journal daemon needs to buffer the specified
index c26209f111bb946796a7975c53c92d67b3fae47a..21a2581b2466d621e45f536e69a5e197293a6af3 100644 (file)
     <title>Session limits</title>
 
     <para>PAM modules earlier in the stack, that is those that come before <command>pam_systemd.so</command>,
-    can set session scope limits using the PAM context objects. The data for these objects is provided as NUL-terminated C strings
+    can set session scope limits using the PAM context objects. The data for these objects is provided as <constant>NUL</constant>-terminated C strings
     and maps directly to the respective unit resource control directives. Note that these limits apply to individual sessions of the user,
     they do not apply to all user processes as a combined whole. In particular, the per-user <command>user@.service</command> unit instance,
     which runs the <command>systemd --user</command> manager process and its children, and is tracked outside of any session, being shared
index 79154306a97c748a9e140384ea2c9234010c0c18..40a3cc59aea13a222450d7ea3fd2c0d664de998f 100644 (file)
@@ -85,8 +85,8 @@
 
     <programlisting>#define SD_MESSAGE_COREDUMP SD_ID128_MAKE(fc,2e,22,bc,6e,e6,47,b6,b9,07,29,ab,34,a2,50,b1)</programlisting>
 
-    <para><constant>SD_ID128_NULL</constant> may be used to refer to the 128bit ID consisting of only NUL
-    bytes.</para>
+    <para><constant>SD_ID128_NULL</constant> may be used to refer to the 128bit ID consisting of only
+    <constant>NUL</constant> bytes.</para>
 
     <para><function>SD_ID128_MAKE_STR()</function> is similar to <function>SD_ID128_MAKE()</function>, but creates a
     <type>const char*</type> expression that can be conveniently used in message formats and such:</para>
@@ -136,7 +136,8 @@ int main(int argc, char **argv) {
         return 0;
 }</programlisting>
 
-    <para>Use <function>sd_id128_is_null()</function> to check if an 128bit ID consists of only NUL bytes:</para>
+    <para>Use <function>sd_id128_is_null()</function> to check if an 128bit ID consists of only
+    <constant>NUL</constant> bytes:</para>
 
     <programlisting>int main(int argc, char *argv[]) {
         assert(sd_id128_is_null(SD_ID128_NULL));
index e52bee97760fb290079037775a5015418fc341af..8f5b94e53114099d280c16a88462c9816d413604 100644 (file)
 
     <para>All functions that take a <parameter>const
     char**</parameter> parameter will store the answer there as an
-    address of a NUL-terminated string. It will be valid as long as
+    address of a <constant>NUL</constant>-terminated string. It will be valid as long as
     <parameter>c</parameter> remains valid, and should not be freed or
     modified by the caller.</para>
 
     <para>All functions that take a <parameter>char***</parameter>
     parameter will store the answer there as an address of an array
-    of strings. Each individual string is NUL-terminated, and the
-    array is NULL-terminated as a whole. It will be valid as long as
+    of strings. Each individual string is <constant>NUL</constant>-terminated, and the
+    array is <constant>NULL</constant>-terminated as a whole. It will be valid as long as
     <parameter>c</parameter> remains valid, and should not be freed or
     modified by the caller.</para>
   </refsect1>
index 324d455d59393c42aa5afb92b839ba7a47e938cd..af2238e74d7ef0cdcd89ce1af258815a08c44856 100644 (file)
     but additional domain-specific errors may be defined by
     applications. The <structfield>message</structfield> field usually
     contains a human-readable string describing the details, but might
-    be NULL. An unset <structname>sd_bus_error</structname> structure
-    should have both fields initialized to NULL. Set an error
+    be <constant>NULL</constant>. An unset <structname>sd_bus_error</structname> structure
+    should have both fields initialized to <constant>NULL</constant>. Set an error
     structure to <constant>SD_BUS_ERROR_NULL</constant> in order to
-    reset both fields to NULL. When no longer necessary, resources
+    reset both fields to <constant>NULL</constant>. When no longer necessary, resources
     held by the <structname>sd_bus_error</structname> structure should
     be destroyed with <function>sd_bus_error_free()</function>.</para>
 
     for a list of well-known error names. Additional error mappings
     may be defined with
     <citerefentry><refentrytitle>sd_bus_error_add_map</refentrytitle><manvolnum>3</manvolnum></citerefentry>. If
-    <parameter>e</parameter> is NULL, no error structure is initialized,
+    <parameter>e</parameter> is <constant>NULL</constant>, no error structure is initialized,
     but the error is still converted into an
     <varname>errno</varname>-style error. If
     <parameter>name</parameter> is <constant>NULL</constant>, it is
     assumed that no error occurred, and 0 is returned. This means that
     this function may be conveniently used in a
     <function>return</function> statement. If
-    <parameter>message</parameter> is NULL, no message is set. This
+    <parameter>message</parameter> is <constant>NULL</constant>, no message is set. This
     call can fail if no memory may be allocated for the name and
     message strings, in which case an
     <constant>SD_BUS_ERROR_NO_MEMORY</constant> error might be set
     will not be deallocated, and must be <citerefentry
     project='man-pages'><refentrytitle>free</refentrytitle><manvolnum>3</manvolnum></citerefentry>d
     by the caller if necessary. The function may also be called safely
-    on unset errors (error structures with both fields set to NULL),
+    on unset errors (error structures with both fields set to <constant>NULL</constant>),
     in which case it performs no operation. This call will reset the
     error structure after freeing the data, so that all fields are set
-    to NULL. The structure may be reused afterwards.</para>
+    to <constant>NULL</constant>. The structure may be reused afterwards.</para>
   </refsect1>
 
   <refsect1>
index 4b1614e352404fd5445700c38fa715ffa6e88454..81a3fad0e234aea8fa03a4ec141eef730d0bdd89 100644 (file)
@@ -65,7 +65,7 @@
     <title>Return Value</title>
 
     <para>Those functions return 1 if the argument is a valid interface / service / member name or object
-    path, and 0 if it is not. If the argument is NULL, an error is returned.</para>
+    path, and 0 if it is not. If the argument is <constant>NULL</constant>, an error is returned.</para>
 
     <refsect2>
       <title>Errors</title>
index 15aa8a1b863beeae9d97f61a02036925dde33e2c..5cdb1d77a1dd6892783bba461d44f5cfe65a0d99 100644 (file)
     will be stored there. Each <literal>%</literal> character will
     only match the current label. It will never match across labels.
     Furthermore, only a single directive is allowed per label.
-    If <literal>NULL</literal> is passed as output storage, the
+    If <constant>NULL</constant> is passed as output storage, the
     label is verified but not returned to the caller.</para>
   </refsect1>
 
     argument. On success, <function>sd_bus_path_decode()</function>
     returns a positive value if the prefixed matched, or 0 if it
     did not. If the prefix matched, the external identifier is returned
-    in the return parameter. If it did not match, NULL is returned in
+    in the return parameter. If it did not match, <constant>NULL</constant> is returned in
     the return parameter. On failure, a negative errno-style error
     number is returned by either function. The returned strings must
     be
index 225bced1cd223016e4705452f520bba11936c622..c5a9e0cfdebc8a76b5e03d93373729ce80dc7be8 100644 (file)
@@ -56,7 +56,7 @@
     <parameter>ret</parameter> is not <constant>NULL</constant> and the call processed a message,
     <parameter>*ret</parameter> is set to this message.  The caller owns a reference to this message and should call
     <citerefentry><refentrytitle>sd_bus_message_unref</refentrytitle><manvolnum>3</manvolnum></citerefentry> when the
-    message is no longer needed. If <parameter>ret</parameter> is not NULL, progress was made, but no message was
+    message is no longer needed. If <parameter>ret</parameter> is not <constant>NULL</constant>, progress was made, but no message was
     processed, <parameter>*ret</parameter> is set to <constant>NULL</constant>.</para>
 
     <para>If a the bus object is connected to an
index 84812b00e519199713162ed85e6f286895db92a4..2147ad16dd0350b1e984094bbf36bdc4e9b949e6 100644 (file)
     <function>sd_bus_track_add_sender()</function>. They may be dropped again via
     <function>sd_bus_track_remove_name()</function> and
     <function>sd_bus_track_remove_sender()</function>. Alternatively, references on peers are removed automatically
-    when they disconnect from the bus.  If non-NULL the <parameter>handler</parameter> may specify a function that is
-    invoked whenever the last reference is dropped, regardless whether the reference is dropped explicitly via
-    <function>sd_bus_track_remove_name()</function> or implicitly because the peer disconnected from the bus. The final
-    argument <parameter>userdata</parameter> may be used to attach a generic user data pointer to the object. This
-    pointer is passed to the handler callback when it is invoked.</para>
+    when they disconnect from the bus.  If non-<constant>NULL</constant> the <parameter>handler</parameter> may specify
+    a function that is invoked whenever the last reference is dropped, regardless whether the reference is dropped
+    explicitly via <function>sd_bus_track_remove_name()</function> or implicitly because the peer disconnected from the
+    bus. The final argument <parameter>userdata</parameter> may be used to attach a generic user data pointer to the
+    object. This pointer is passed to the handler callback when it is invoked.</para>
 
     <para><function>sd_bus_track_ref()</function> creates a new reference to a bus peer tracking object. This object
     will not be destroyed until <function>sd_bus_track_unref()</function> has been called as many times plus once
index b301d6f9b9b94c9f0703526a7c26cf580db95cf3..a850583100eafae6f967e74ebdbce83eb9f6536f 100644 (file)
@@ -51,7 +51,7 @@
 
     <para>On success, <function>sd_event_source_get_event()</function>
     returns the associated event loop object. On failure, it returns
-    NULL.</para>
+    <constant>NULL</constant>.</para>
   </refsect1>
 
   <xi:include href="libsystemd-pkgconfig.xml" />
index f24b00edd51d109cb96f7f6c811d68e28038edc0..d52c55b3db950c42bb563a9d00cb1fb8d7f3a68d 100644 (file)
@@ -52,7 +52,7 @@
     when the event source was created. The event source will be disabled
     if the callback function returns a negative error code. The callback
     function may be used to reconfigure the precise events to wait for.
-    If the <parameter>callback</parameter> parameter is passed as NULL
+    If the <parameter>callback</parameter> parameter is passed as <constant>NULL</constant>
     the callback function is reset. </para>
 
     <para>Event source objects have no preparation callback associated
index f3649c4e712e9ff36ee28aa76b1ac368cb714b6e..e8e5dc144486b79aacc3015b68a26c8b9639509a 100644 (file)
@@ -70,7 +70,7 @@
     <function>sd_event_source_set_userdata()</function> and
     <function>sd_event_source_get_userdata()</function> return the
     previously set user data pointer. On failure, they return
-    NULL.</para>
+    <constant>NULL</constant>.</para>
   </refsect1>
 
   <xi:include href="libsystemd-pkgconfig.xml" />
index 3596dbc0de8cbcb3be54aad6c79821a51d84dff5..818f9684c30240cb89defd4f4647c0a0bb562d38 100644 (file)
@@ -56,7 +56,7 @@
 
     <para><function>sd_get_seats()</function> may be used to determine
     all currently available local seats. Returns the number of seat
-    identifiers and if the input pointer is non-NULL, a
+    identifiers and if the input pointer is non-<constant>NULL</constant>, a
     <constant>NULL</constant>-terminated array of seat identifiers
     is stored at the address.
     The returned array and all strings it references need to be freed
index 3e5b53a4296028ea54c7f0b2629508e426c36795..54cab1af5ad3dc1d1a678b37fc7dcce91bdff0d0 100644 (file)
@@ -50,8 +50,9 @@
     <para><function>sd_id128_from_string()</function> implements the reverse operation: it takes a 33 character string
     with 32 hexadecimal digits (either lowercase or uppercase, terminated by <constant>NUL</constant>) and parses them
     back into a 128-bit ID returned in <parameter>ret</parameter>. Alternatively, this call can also parse a
-    37-character string with a 128-bit ID formatted as RFC UUID. If <parameter>ret</parameter> is passed as NULL the
-    function will validate the passed ID string, but not actually return it in parsed form.</para>
+    37-character string with a 128-bit ID formatted as RFC UUID. If <parameter>ret</parameter> is passed as
+    <constant>NULL</constant> the function will validate the passed ID string, but not actually return it in parsed
+    form.</para>
 
     <para>For more information about the <literal>sd_id128_t</literal>
     type see
index a1e0529423018ab4e8c51ca554d70edb981cc7af..e452b49e82a4087345765e1b960518bb217799c0 100644 (file)
@@ -57,7 +57,7 @@
     <title>Return value</title>
     <para>Both <function>sd_journal_has_runtime_files()</function>
     and <function>sd_journal_has_persistent_files()</function> return -EINVAL
-    if their argument is NULL.
+    if their argument is <constant>NULL</constant>.
     </para>
   </refsect1>
 
index 60135790508daba86472757805c18465dac23364..9ddd129aae690e85459b62eec7606341ce8122f4 100644 (file)
@@ -94,7 +94,7 @@
     <function>sd_listen_fds()</function>, but optionally also returns
     an array of strings with identification names for the passed file
     descriptors, if that is available and the
-    <parameter>names</parameter> parameter is non-NULL. This
+    <parameter>names</parameter> parameter is non-<constant>NULL</constant>. This
     information is read from the <varname>$LISTEN_FDNAMES</varname>
     variable, which may contain a colon-separated list of names. For
     socket-activated services, these names may be configured with the
     <function>sd_is_socket()</function> and related calls is not
     sufficient. Note that the names used are not unique in any
     way. The returned array of strings has as many entries as file
-    descriptors have been received, plus a final NULL pointer
+    descriptors have been received, plus a final <constant>NULL</constant> pointer
     terminating the array. The caller needs to free the array itself
     and each of its elements with libc's <function>free()</function>
     call after use. If the <parameter>names</parameter> parameter is
-    NULL, the call is entirely equivalent to
+    <constant>NULL</constant>, the call is entirely equivalent to
     <function>sd_listen_fds()</function>.</para>
 
     <para>Under specific conditions, the following automatic file
index dcac27b326206561a26f00d61aa7041a1b24446d..2d6fb0c8a347eedadd6cc60fceecfe59cd816570 100644 (file)
         <varlistentry>
           <term><constant>-EINVAL</constant></term>
 
-          <listitem><para>An input parameter was invalid (out of range, or NULL, where that is not
-          accepted). This is also returned if the passed user ID is <constant>0xFFFF</constant> or
-          <constant>0xFFFFFFFF</constant>, which are undefined on Linux.</para></listitem>
+          <listitem><para>An input parameter was invalid (out of range, or <constant>NULL</constant>,
+          where that is not accepted). This is also returned if the passed user ID is
+          <constant>0xFFFF</constant> or <constant>0xFFFFFFFF</constant>, which are undefined on Linux.
+          </para></listitem>
         </varlistentry>
 
         <varlistentry>
index 26bd57bbb2db93845b95d60eca4969f35b14dbbf..1abc2f805164c713b94fd58e7828f4706af90938 100644 (file)
@@ -63,7 +63,7 @@
     <function>sd_watchdog_enabled()</function> will also return with
     zero.</para>
 
-    <para>If the <parameter>usec</parameter> parameter is non-NULL,
+    <para>If the <parameter>usec</parameter> parameter is non-<constant>NULL</constant>,
     <function>sd_watchdog_enabled()</function> will write the timeout
     in µs for the watchdog logic to it.</para>
 
index 95e6fd6873f63f8f25a970e8d3204426b4972d55..433260475dc2d9bf39cc42b316405fbbea829e2c 100644 (file)
         cached key will have a timeout of 2.5min set, after which it
         will be purged from the kernel keyring. Note that it is
         possible to cache multiple passwords under the same keyname,
-        in which case they will be stored as NUL-separated list of
+        in which case they will be stored as <constant>NUL</constant>-separated list of
         passwords. Use
         <citerefentry project='die-net'><refentrytitle>keyctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
         to access the cached key via the kernel keyring
index 518ae99386b53afa3c95ba0012e21e86aa1736f8..4b85f914f42d2467c689ee46ca60b8f1a958eb0a 100644 (file)
@@ -2757,7 +2757,7 @@ StandardInputData=SWNrIHNpdHplIGRhIHVuJyBlc3NlIEtsb3BzLAp1ZmYgZWVtYWwga2xvcHAncy
         user IDs, public key material and similar non-sensitive data. For everything else use
         <varname>LoadCredential=</varname>. In order to embed binary data into the credential data use
         C-style escaping (i.e. <literal>\n</literal> to embed a newline, or <literal>\x00</literal> to embed
-        a NUL byte).</para>
+        a <constant>NUL</constant> byte).</para>
 
         <para>If a credential of the same ID is listed in both <varname>LoadCredential=</varname> and
         <varname>SetCredential=</varname>, the latter will act as default if the former cannot be
index f1883200a786f25e0b4e0df71ce40d56f350280b..578e074f578215e72a8fad6d941256d2de28a876 100644 (file)
           <para>Only applies to <literal>_TRANSPORT=stdout</literal> records: indicates that the log message
           in the standard output/error stream was not terminated with a normal newline character
           (<literal>\n</literal>, i.e. ASCII 10). Specifically, when set this field is one of
-          <option>nul</option> (in case the line was terminated by a NUL byte), <option>line-max</option> (in
+          <option>nul</option> (in case the line was terminated by a <constant>NUL</constant> byte), <option>line-max</option> (in
           case the maximum log line length was reached, as configured with <varname>LineMax=</varname> in
           <citerefentry><refentrytitle>journald.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>),
           <option>eof</option> (if this was the last log record of a stream and the stream ended without a
index 9e3cd7fdff370d183c9f1fe7c30e5422a2b26019..e6a96e3a15ed1df786c28241c19e4e77d0b048c3 100644 (file)
       <varlistentry>
         <term><varname>AdActorSystem=</varname></term>
         <listitem>
-          <para>Specifies the 802.3ad system mac address. This can not be either NULL or Multicast.</para>
+          <para>Specifies the 802.3ad system mac address. This can not be either
+          <constant>NULL</constant> or <constant>Multicast</constant>.</para>
         </listitem>
       </varlistentry>
 
index 42bf0c8e3099f8c06bcd04caecf9fd54d1069514..9edf009c085142d77e2d2ab4062bd871218f672f 100644 (file)
@@ -1944,7 +1944,7 @@ IPv6Token=prefixstable:2002:da8:1::</programlisting></para>
             <ulink url="https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
             escapes</ulink>. This setting can be specified multiple times. If an empty string is specified,
             then all options specified earlier are cleared. Takes a whitespace-separated list of strings. Note that
-            currently NUL bytes are not allowed.</para>
+            currently <constant>NUL</constant> bytes are not allowed.</para>
           </listitem>
         </varlistentry>
 
index aa545d0a1956d6e0b438159330df57390bd9dce2..52db36be71368c234561e5bba587a15a89e58fac 100644 (file)
     <title>String Escaping for Inclusion in Unit Names</title>
 
     <para>Sometimes it is useful to convert arbitrary strings into unit names. To facilitate this, a method of string
-    escaping is used, in order to map strings containing arbitrary byte values (except NUL) into valid unit names and
-    their restricted character set. A common special case are unit names that reflect paths to objects in the file
-    system hierarchy. Example: a device unit <filename>dev-sda.device</filename> refers to a device with the device
-    node <filename index="false">/dev/sda</filename> in the file system.</para>
+    escaping is used, in order to map strings containing arbitrary byte values (except <constant>NUL</constant>) into
+    valid unit names and their restricted character set. A common special case are unit names that reflect paths to
+    objects in the file system hierarchy. Example: a device unit <filename>dev-sda.device</filename> refers to a device
+    with the device node <filename index="false">/dev/sda</filename> in the file system.</para>
 
     <para>The escaping algorithm operates as follows: given a string, any <literal>/</literal> character is replaced by
     <literal>-</literal>, and all other characters which are not ASCII alphanumerics or <literal>_</literal> are