X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=CODING_STYLE;h=557401348789e0322ea45a1d699d56430da329eb;hp=1d1d97049257332671706b1810169feabc1000c4;hb=02233928a502e46fc125118dba7234ba3e48dc15;hpb=699eee62d1b1ad8af1ca944a1b500b6c3096de0d diff --git a/CODING_STYLE b/CODING_STYLE index 1d1d97049..557401348 100644 --- a/CODING_STYLE +++ b/CODING_STYLE @@ -202,3 +202,9 @@ b) socket() and socketpair() must get SOCK_CLOEXEC passed c) recvmsg() must get MSG_CMSG_CLOEXEC set d) F_DUPFD_CLOEXEC should be used instead of F_DUPFD, and so on + +- We never use the XDG version of basename(). glibc defines it in + libgen.h. The only reason to include that file is because dirname() + is needed. Everytime you need that please immediately undefine + basename(), and add a comment about it, so that no code ever ends up + using the XDG version!