Skip to contentSkip to conversation

libelf cannot rely on the strlcpy() BSD-ism.

Xen-changelog John Levon 2 participants 2 messages Jan 29, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

John Levon

author
#1 lore raw

Review

Quoted 2 lines · Keir Fraser
(quoted diff) +2 -0
+/* SysV unices have no strlcpy/strlcat. */
+static inline size_t elf_strlcpy(char *dest, const char *src, size_t size)

Is this really true for any extant dom0 implementation? We have it at least...

cheers,
john

#2 lore raw
Quoted 5 lines · John Levon

Review

Quoted 2 lines
(quoted diff) +2 -0
+/* SysV unices have no strlcpy/strlcat. */
+static inline size_t elf_strlcpy(char *dest, const char *src, size_t size)

Is this really true for any extant dom0 implementation? We have it at least...

It's true for Linux. Certainly my debian build box.

-- Keir