nuttx/include/nuttx/fs
Michal Lenc 0a107ca6d9 libc: add support for custom streams with fopencookie()
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).

Field fs_fd is removed from file_struct and fs_cookie is used instead
as a shared variable for file descriptor or user defined cookie.

The interface will be useful for future fmemopen implementation.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-10-18 21:13:01 +08:00
..
automount.h
fat.h
fs.h libc: add support for custom streams with fopencookie() 2023-10-18 21:13:01 +08:00
hostfs.h hostfs:support SEEK_CUR 2023-08-19 01:48:48 +08:00
ioctl.h Add a stepper generic upperhalf driver 2023-10-14 12:28:41 -04:00
loop.h
loopmtd.h Add MTD loop driver (use filemtd) 2023-02-19 19:46:48 +08:00
nfs.h
nxffs.h
partition.h
procfs.h procfs:add armv7-m cpuinfo 2023-05-27 03:29:41 +08:00
smart.h fs/smart: fix visual studio Compiler Error C2016 2023-02-09 20:11:55 +08:00
userfs.h