[PATCH 0/2] add support for x{mem,str}dup()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This series contains support for two helpers: xmemdup() & xstrdup().
These are similar to the same named functions used in other projects
but the memory is allocated from sparse's __alloc_bytes() instead
of from malloc().

---
Luc Van Oostenryck (2):
  utils: add xmemdup() & xstrdup()
  utils: convert alloc + copy to {mem,str}dup_alloc()

 Documentation/api.rst |  1 +
 Makefile              |  1 +
 lib.h                 |  1 +
 pre-process.c         | 10 +++-------
 tokenize.c            |  9 ++-------
 utils.c               | 17 +++++++++++++++++
 utils.h               | 25 +++++++++++++++++++++++++
 7 files changed, 50 insertions(+), 14 deletions(-)
 create mode 100644 utils.c
 create mode 100644 utils.h

-- 
2.17.1

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux