*/
#include <babeltrace/compat/time-internal.h>
+#include <babeltrace/compat/utc-internal.h>
#include <babeltrace/graph/notification-iterator.h>
#include <babeltrace/graph/private-notification-iterator.h>
#include <babeltrace/graph/notification.h>
tm.tm_sec = bound->lazy_values.ss;
tm.tm_min = bound->lazy_values.mm;
tm.tm_hour = bound->lazy_values.hh;
- timeval = timegm(&tm);
+ timeval = bt_timegm(&tm);
if (timeval < 0) {
- printf_error("Failure in timegm(), incorrectly formatted %s timestamp",
+ printf_error("Failure in bt_timegm(), incorrectly formatted %s timestamp",
name);
goto error;
}
* SOFTWARE.
*/
+#include <babeltrace/compat/utc-internal.h>
#include <babeltrace/plugin/plugin-dev.h>
#include <babeltrace/graph/component.h>
#include <babeltrace/graph/private-component.h>
time_t result;
if (gmt) {
- result = timegm(&tm);
+ result = bt_timegm(&tm);
if (result < 0) {
return -1;
}
time_t result;
if (gmt) {
- result = timegm(&tm);
+ result = bt_timegm(&tm);
if (result < 0) {
return -1;
}
};
if (gmt) {
- value = timegm(&tm);
+ value = bt_timegm(&tm);
if (value < 0) {
return -1;
}
time_t result;
if (gmt) {
- result = timegm(&tm);
+ result = bt_timegm(&tm);
if (result < 0) {
return -1;
}