Files
PX4-Autopilot/platforms/qurt/unresolved_symbols.c
Eric Katzfey 71b074b234 Qurt termios decoy (#22954)
* Added decoy termios support to Qurt so that ghst parser in RC library can be used. No termios is actually needed but has to be there for the parser to work
2024-04-01 18:33:37 -04:00

53 lines
1.1 KiB
C

#include <time.h>
#include <px4_log.h>
#include <qurt_alloc.h>
#include <termios.h>
__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;
}