]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/fs/readlink/readlinknul.h: READLINKNUL(): Add macro
authorAlejandro Colomar <alx@kernel.org>
Wed, 3 Jul 2024 01:08:59 +0000 (03:08 +0200)
committerSerge Hallyn <serge@hallyn.com>
Sat, 2 Nov 2024 02:25:50 +0000 (21:25 -0500)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/fs/readlink/readlinknul.h

index d813e056d368d4563d7f953da0073f2e6268d57c..bb228dfa386969eb051958ed36808d2d78ecf38f 100644 (file)
 #include <unistd.h>
 
 #include "attr.h"
+#include "sizeof.h"
+
+
+#define READLINKNUL(link, buf)  readlinknul(link, buf, NITEMS(buf))
 
 
 ATTR_STRING(1)