]> git.ipfire.org Git - thirdparty/lxc.git/commit
log: add lxc_log_strerror_r macro 2429/head
author2xsec <dh48.jeong@samsung.com>
Mon, 25 Jun 2018 13:00:43 +0000 (22:00 +0900)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 25 Jun 2018 14:04:25 +0000 (16:04 +0200)
commit9d46514002e91e30bbe02b9ba2aa5aa9bb20c1bf
treea16a2977968f271e4935c393ea97d269ee263669
parent62f76cc0f6151b7dde2826cd3f83e3bcf30b9649
log: add lxc_log_strerror_r macro

Let's ensure that we always use the thread-safe strerror_r() function and add
an approriate macro.
Additionally, define SYS*() macros for all log levels. They will use the new
macro and ensure thread-safe retrieval of errno values.

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
[christian.brauner@ubuntu.com: simplify lxc_log_strerror_r macro]
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/log.h
src/lxc/lsm/apparmor.c
src/lxc/lsm/lsm.c
src/lxc/lsm/selinux.c
src/lxc/monitor.c
src/lxc/state.c
src/lxc/sync.c
src/lxc/terminal.c