HACKING.md: Add note about printf(3) fmt strings using "%m"

The printf(3) format string character "%m" is available on
Linux/glibc and FreeBSD, but not on MacOSX. So using "%m"
should be limited to system specific code.
This commit is contained in:
Hans Ulrich Niedermann
2021-11-03 18:08:55 +01:00
parent 9b9d6c68ef
commit 49b4fda207

View File

@@ -356,3 +356,8 @@ for more details.
compiler-specific flags to make files directly, as many of them are
specific to one compiler and will cause the build to fail when using
another.
* printf(3) format strings containing "%m" should only be used in
system specific code for systems which actually support "%m", like
Linux/glibc or FreeBSD. MacOSX for example does NOT support "%m".