* lib/mountlist.h (read_file_system_list): Move specification to here...
* lib/mountlist.c (read_file_system_list): ...from here.
+2025-03-21 Bruno Haible <bruno@clisp.org>
+
+ mountlist: Add specification comment in .h file.
+ * lib/mountlist.h (read_file_system_list): Move specification to here...
+ * lib/mountlist.c (read_file_system_list): ...from here.
+
2025-03-21 Bruno Haible <bruno@clisp.org>
mountlist: Work around an strtoul() misfeature.
*s = '\0';
return s;
}
-#endif
-/* Return a list of the currently mounted file systems, or NULL on error.
- Add each entry to the tail of the list so that they stay in order.
- If NEED_FS_TYPE is true, ensure that the file system type fields in
- the returned list are valid. Otherwise, they might not be. */
+#endif
struct mount_entry *
read_file_system_list (bool need_fs_type)
struct mount_entry *me_next;
};
+/* Return a list of the currently mounted file systems, or NULL on error.
+ Add each entry to the tail of the list so that they stay in order.
+ If NEED_FS_TYPE is true, ensure that the file system type fields in
+ the returned list are valid. Otherwise, they might not be. */
struct mount_entry *read_file_system_list (bool need_fs_type)
_GL_ATTRIBUTE_MALLOC;
+
void free_mount_entry (struct mount_entry *entry);