mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
- Made general improvements to the QURT platform message logging so that module name is printed both in mini-dm and on apps side terminal
55 lines
1.2 KiB
C
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;
|
|
}
|