The major SONAME bump to '1' gives us the opportunity to hide private
symbols that should never have been visible.
While we're at it, namespace the symbols that were previously part of
the ABI.
Change-Id: I75c4a65969982f2097365441f92de0d3082c8172
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
### Global private headers ###
### ###
### Global private headers ###
### ###
-# note: usterr-signal-safe.h, core.h and share.h need namespace cleanup.
+# note: usterr-signal-safe.h need namespace cleanup.
noinst_HEADERS = \
usterr-signal-safe.h \
noinst_HEADERS = \
usterr-signal-safe.h \
-/* Should be hidden but would break the ABI */
-ssize_t patient_write(int fd, const void *buf, size_t count);
-ssize_t patient_writev(int fd, struct iovec *iov, int iovcnt);
-/* Should be hidden but would break the ABI */
-ssize_t patient_send(int fd, const void *buf, size_t count, int flags);
+ssize_t ust_patient_write(int fd, const void *buf, size_t count);
+LTTNG_HIDDEN
+ssize_t ust_patient_writev(int fd, struct iovec *iov, int iovcnt);
+LTTNG_HIDDEN
+ssize_t ust_patient_send(int fd, const void *buf, size_t count, int flags);
#endif /* _LTTNG_SHARE_H */
#endif /* _LTTNG_SHARE_H */
____saved_errno = errno; /* signal-safety */ \
ust_safe_snprintf(____buf, sizeof(____buf), fmt, ## args); \
____buf[sizeof(____buf) - 1] = 0; \
____saved_errno = errno; /* signal-safety */ \
ust_safe_snprintf(____buf, sizeof(____buf), fmt, ## args); \
____buf[sizeof(____buf) - 1] = 0; \
- patient_write(STDERR_FILENO, ____buf, strlen(____buf)); \
+ ust_patient_write(STDERR_FILENO, ____buf, strlen(____buf)); \
errno = ____saved_errno; /* signal-safety */ \
fflush(stderr); \
} \
errno = ____saved_errno; /* signal-safety */ \
fflush(stderr); \
} \
liblttng_ust_dl_la_LIBADD = \
$(top_builddir)/liblttng-ust/liblttng-ust.la \
liblttng_ust_dl_la_LIBADD = \
$(top_builddir)/liblttng-ust/liblttng-ust.la \
+ $(top_builddir)/snprintf/libustsnprintf.la \
$(DL_LIBS)
liblttng_ust_dl_la_CFLAGS = -DUST_COMPONENT=liblttng-ust-dl $(AM_CFLAGS)
$(DL_LIBS)
liblttng_ust_dl_la_CFLAGS = -DUST_COMPONENT=liblttng-ust-dl $(AM_CFLAGS)
ust_notif.capture_buf_size = content_len;
/* Send all the buffers. */
ust_notif.capture_buf_size = content_len;
/* Send all the buffers. */
- ret = patient_writev(notif->notification_fd, iov, iovec_count);
+ ret = ust_patient_writev(notif->notification_fd, iov, iovec_count);
if (ret == -1) {
if (errno == EAGAIN) {
record_error(event_notifier);
if (ret == -1) {
if (errno == EAGAIN) {
record_error(event_notifier);
* This write is patient because it restarts if it was incomplete.
*/
* This write is patient because it restarts if it was incomplete.
*/
-ssize_t patient_write(int fd, const void *buf, size_t count)
+ssize_t ust_patient_write(int fd, const void *buf, size_t count)
{
const char *bufc = (const char *) buf;
int result;
{
const char *bufc = (const char *) buf;
int result;
* The `struct iovec *iov` is not `const` because we modify it to support
* partial writes.
*/
* The `struct iovec *iov` is not `const` because we modify it to support
* partial writes.
*/
-ssize_t patient_writev(int fd, struct iovec *iov, int iovcnt)
+ssize_t ust_patient_writev(int fd, struct iovec *iov, int iovcnt)
{
ssize_t written, total_written = 0;
int curr_element_idx = 0;
{
ssize_t written, total_written = 0;
int curr_element_idx = 0;
-ssize_t patient_send(int fd, const void *buf, size_t count, int flags)
+ssize_t ust_patient_send(int fd, const void *buf, size_t count, int flags)
{
const char *bufc = (const char *) buf;
int result;
{
const char *bufc = (const char *) buf;
int result;