mirror of
https://github.com/systemd/systemd
synced 2024-07-24 11:44:41 +00:00
docs: more markup
This commit is contained in:
parent
3a1bc3fcc0
commit
bcef0f33cc
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue