PX4-Autopilot/platforms/qurt/unresolved_symbols.c
Eric Katzfey 5a05444bad
QuRT logging improvements (#24462)
- Made general improvements to the QURT platform message logging so that module name is printed both in mini-dm and on apps side terminal
2025-03-10 18:59:52 -04:00

55 lines
1.2 KiB
C

#include <time.h>
#include <px4_log.h>
#include <qurt_alloc.h>
#include <termios.h>
#define MODULE_NAME "unresolved_symbols"
__attribute__((visibility("default"))) void free(void *ptr)
{
qurt_free(ptr);
ptr = 0;
}
__attribute__((visibility("default"))) void *malloc(size_t size)
{
return qurt_malloc(size);
}
__attribute__((visibility("default"))) void *calloc(size_t nmemb, size_t size)
{
PX4_ERR("Undefined calloc called");
return (void *) 0;
}
__attribute__((visibility("default"))) void *realloc(void *ptr, size_t size)
{
PX4_ERR("Undefined realloc called");
return (void *) 0;
}
__attribute__((visibility("default"))) int nanosleep(const struct timespec *req, struct timespec *rem)
{
PX4_ERR("Undefined nanosleep called");
return -1;
}
__attribute__((visibility("default"))) int tcgetattr(int fd, struct termios *termiosp)
{
PX4_ERR("Undefined tcgetattr called");
return -1;
}
__attribute__((visibility("default"))) int cfsetspeed(struct termios *termiosp, speed_t speed)
{
PX4_ERR("Undefined cfsetspeed called");
return -1;
}
__attribute__((visibility("default"))) int tcsetattr(int fd, int options, const struct termios *termiosp)
{
PX4_ERR("Undefined tcsetattr called");
return -1;
}