<para>On failure, this call returns a negative
errno-style error code. If the system was booted up
- with systemd as init system this call returns a
+ with systemd as init system, this call returns a
positive return value, zero otherwise.</para>
</refsect1>
implementation.</para>
<para>Internally, this function checks whether the
- <filename>/cgroup/systemd</filename> virtual file
+ <filename>/sys/fs/cgroup/systemd</filename> virtual file
system is mounted, by comparing the st_dev value of
the <function>stat()</function> data of
- <filename>/cgroup</filename> and
- <filename>/cgroup/systemd</filename>.</para>
+ <filename>/sys/fs/cgroup</filename> and
+ <filename>/sys/fs/cgroup/systemd</filename>.</para>
<para>For details about the algorithm check the
liberally licensed reference implementation sources: