Matthew Rosato
f64b4087dd
libutil: Move some zdev file reading functions into util
...
In preparation for sharing some zdev udev code with other libraries, move
some file operation code from zdev into util_file.
Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com >
Reviewed-by: Tony Krowiak <akrowiak@linux.ibm.com >
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com >
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com >
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com >
2022-05-17 13:20:27 +02:00
Sven Schnelle
1df4d66387
libutil: add util_file_read_va()
...
Takes a format string and parses a file accordingly and returns the
parsed values.
Signed-off-by: Sven Schnelle <svens@linux.ibm.com >
Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com >
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com >
2020-10-12 13:12:55 +02:00
Sven Schnelle
37348ef662
libutil: add util_file_read_i()/util_file_read_ui()
...
These functions parse a sysfs file and return either an
unsigned integer or signed integer.
Signed-off-by: Sven Schnelle <svens@linux.ibm.com >
Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com >
Acked-by: Jan Höppner <hoeppner@linux.ibm.com >
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com >
2020-10-12 13:12:55 +02:00
Marc Hartmayer
6fcf64ebe0
lib/util_file.h: fix typo in the macro guard
...
Fix typo in the macro guard.
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com >
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com >
2020-03-16 13:39:10 +01:00
Michael Holzheu
b627b8d8e1
Initial s390-tools-2.0.0 import
...
This commit is based on the s390-tools-1.39.0 version.
Changes on top of s390-tools-1.39.0:
- Add MIT license to all source files
- Add LICENSE file
- Transform REAMDE to README.md (markdown)
- Add AUTHORS.md file
- Add CONTRIBUTING.md file
- Move changelog from README to CHANGELOG.md file
Reviewed-by: Stefan Haberland <sth@linux.vnet.ibm.com >
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com >
2017-08-21 10:55:40 +02:00