1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

commands: some more dm wrappers

As man-generator is not liked with libdm as of now - some more wrappers.
This commit is contained in:
Zdenek Kabelac 2017-02-17 13:36:57 +01:00
parent 238a79aac4
commit 00f299b932

View File

@ -48,6 +48,18 @@ do { \
#define dm_malloc malloc
#define dm_free free
#define dm_strdup strdup
#define dm_snprintf snprintf
static int dm_strncpy(char *dest, const char *src, size_t n)
{
if (memccpy(dest, src, 0, n))
return 1;
if (n > 0)
dest[n - 1] = '\0';
return 0;
}
/* needed to include args.h */
#define ARG_COUNTABLE 0x00000001