mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
musl provides XSI compliant strerror_r(), and it is slightly different from the one by glibc. Let's introduce a tiny wrapper to convert XSI strerror_r() to GNU one. The wrapper also patches musl's spurious catchall error message.
8 lines
183 B
C
8 lines
183 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
#pragma once
|
|
|
|
#include_next <string.h>
|
|
|
|
char* strerror_r_gnu(int errnum, char *buf, size_t buflen);
|
|
#define strerror_r strerror_r_gnu
|