Move strerror_r to compat directory
authorJP Ikaheimonen <jp_ikaheimonen@mentor.com>
Mon, 8 Jul 2013 13:02:02 +0000 (09:02 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 8 Jul 2013 13:02:02 +0000 (09:02 -0400)
commit9a7f65a34e9358633109338f12bb52303c358d35
treec324d76b4591f6fc3ebcf477f070d2b3d1456a4e
parente9a6238dc439ce48195c8ddaef454fd1a3e94ad3
Move strerror_r to compat directory

The usage of strerror_r is platform dependent.
Add new function compat_strerror_r to
include/babeltrace/compat/string.h,
and hide the platform-dependent usage there.
Use the aforementioned header file instead of standard string.h where
necessary.

[ Updates by Mathieu Desnoyers: fix coding style, fix possible buffer
  overflow by using strncpy rather than strcpy. ]

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/Makefile.am
include/babeltrace/babeltrace-internal.h
include/babeltrace/compat/string.h [new file with mode: 0644]
This page took 0.024126 seconds and 4 git commands to generate.