d359daaa48
We clean up the journald logger with these four changes. 1. Make field array static 2. Make function name more appropriate 3. Initialize the file descriptors only once 4. Avoid copying the journald cursor Point 4 is the most significant change: instead of treating the journald cursor like a Go string we use it as a raw C.char pointer. That way we avoid the copying by the C.CString and C.GoString functions. Signed-off-by: Silvan Jegen <s.jegen@gmail.com> |
||
---|---|---|
.. | ||
journald.go | ||
journald_test.go | ||
journald_unsupported.go | ||
read.go | ||
read_native.go | ||
read_native_compat.go | ||
read_unsupported.go |