TypeScript API Documentation for GLIB
API Version: 2.0
Library Version: 2.86.4
Generated with TypeDoc via ts-for-gir v4.0.0-beta.40
Since 2.50
Check whether the given output_fd file descriptor is a connection to the systemd journal, or something else (like a log file or stdout or stderr).
output_fd
stdout
stderr
Invalid file descriptors are accepted and return FALSE, which allows for the following construct without needing any additional error handling:
FALSE
is_journald = g_log_writer_is_journald (fileno (stderr)); Copy
is_journald = g_log_writer_is_journald (fileno (stderr));
output file descriptor to check
TRUE if output_fd points to the journal, FALSE otherwise
TRUE
2.50
Check whether the given
output_fdfile descriptor is a connection to the systemd journal, or something else (like a log file orstdoutorstderr).Invalid file descriptors are accepted and return
FALSE, which allows for the following construct without needing any additional error handling: