michallenc opened a new pull request, #10602: URL: https://github.com/apache/nuttx/pull/10602
## Summary This commit adds support for custom stream via `fopencookie` function. The function allows the programmer the create his own custom stream for IO operations and hook his custom functions to it. This is a non POSIX interface defined in Standard C library and implemented according to it. The only difference is in usage of `off_t` instead of `off64_t`. Programmer can use 64 bits offset if `CONFIG_FS_LARGEFILE` is enabled. In that case `off_t` is defined as `int64_t` (`int32_t` otherwise). The interface will be useful for future fmemopen implementation. ## Impact New interface. ## Testing Tested with [example application on man page](https://man7.org/linux/man-pages/man3/fopencookie.3.html) on SAMv7 MCU. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org