From: Zbigniew Jędrzejewski-Szmek Date: Tue, 9 Mar 2021 17:41:21 +0000 (+0100) Subject: docs: more markup X-Git-Tag: v248-rc3~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bcef0f33cc7538a21ba79fd94b0b321874a355b3;p=thirdparty%2Fsystemd.git docs: more markup --- diff --git a/docs/CODING_STYLE.md b/docs/CODING_STYLE.md index c15dc1abf7c..e4b0d91833c 100644 --- a/docs/CODING_STYLE.md +++ b/docs/CODING_STYLE.md @@ -587,11 +587,11 @@ layout: default time you need that please immediately undefine `basename()`, and add a comment about it, so that no code ever ends up using the POSIX version! -- Never use FILENAME_MAX. Use PATH_MAX instead (for checking maximum size of - paths) and NAME_MAX (for checking maximum size of filenames). FILENAME_MAX is - not POSIX, and is a confusingly named alias for PATH_MAX on Linux. Note the - NAME_MAX does not include space for a trailing NUL, but PATH_MAX does. UNIX - FTW! +- Never use `FILENAME_MAX`. Use `PATH_MAX` instead (for checking maximum size + of paths) and `NAME_MAX` (for checking maximum size of filenames). + `FILENAME_MAX` is not POSIX, and is a confusingly named alias for `PATH_MAX` + on Linux. Note the `NAME_MAX` does not include space for a trailing `NUL`, + but `PATH_MAX` does. UNIX FTW! ## Committing to git