Qurt lightweight parameter implementation (#20735)

This commit is contained in:
Zachary Lowell
2022-12-09 11:55:49 -06:00
committed by GitHub
parent f3884d5835
commit 643eed51cb
8 changed files with 13 additions and 9 deletions
@@ -100,6 +100,12 @@ typedef struct {
#define POLLIN (0x01)
#endif
#if defined(__PX4_QURT)
// Qurt has no fsync implementation so need to declare one here
// and then define a fake one in the Qurt platform code.
void fsync(int fd);
#endif
__EXPORT int px4_open(const char *path, int flags, ...);
__EXPORT int px4_close(int fd);
__EXPORT ssize_t px4_read(int fd, void *buffer, size_t buflen);
@@ -114,7 +120,6 @@ __END_DECLS
#error "No TARGET OS Provided"
#endif
// The stack size is intended for 32-bit architectures; therefore
// we often run out of stack space when pointers are larger than 4 bytes.
// Double the stack size on posix when we're on a 64-bit architecture.