mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
rust: utils: Add 'gethostname()' function
Add 'gethostname' function to retrieve the system hostname using libc gethostname. Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Marc Hartmayer <marc@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
95fb1e2b03
commit
893667e73e
@@ -7,6 +7,7 @@ mod cli;
|
||||
mod exit_code;
|
||||
mod file;
|
||||
mod hexslice;
|
||||
mod hostname;
|
||||
mod log;
|
||||
mod tmpfile;
|
||||
|
||||
@@ -20,6 +21,7 @@ pub use crate::{
|
||||
exit_code::{docstring, ExitCodeDoc, ExitCodeTrait, ExitCodeVariantDoc},
|
||||
file::{AtomicFile, AtomicFileOperation},
|
||||
hexslice::HexSlice,
|
||||
hostname::gethostname,
|
||||
log::PvLogger,
|
||||
tmpfile::TemporaryDirectory,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user