nuttx/include/sys
hujun5 8fe8417ffb libc/fdcheck: add fdcheck module
In embedded development environments, due to the lack of address isolation between processes,
fd may be passed between processes and lead to misuse,

We have designed an fd cross-process automatic detection tool,
fdcheck_protect returns the fd containing the pid information,
indicating that the ownership of the current fd belongs to the pid and is not allowed to be used by other processes.
fdcheck_restore will obtain the true fd and check if the ownership of the fd is legal

For ease of understanding, let's give an example where
the following information is represented in 32-bit binary format

fd        00000000 00000000 00000000 10001010
pid       00000000 00000000 00000011 01010101
ret       00000000 00000011 01010101 10001010

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-06-10 02:19:58 +08:00
..
boardctl.h boardctl: add BOARDIOC_SOFTRESETCAUSE_RESTORE_FACTORY_INQUIRY 2023-05-10 13:40:19 +08:00
custom_file.h
endian.h include/sys: fix definition of __BYTE_ORDER 2023-05-19 02:40:38 +08:00
epoll.h sys/epool.h: add EPOLLET (edge-triggered) flag to fix compile break 2023-01-27 15:30:55 -03:00
eventfd.h
file.h include: Fix nxstyle errors 2023-05-04 02:07:01 +08:00
ioctl.h
ipc.h
mman.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
mount.h
msg.h
param.h include: Add nitems() definition to sys/param.h 2023-02-09 20:05:44 +08:00
poll.h vfs/poll: Remove the unused ptr field from pollfd 2023-03-06 13:19:42 +02:00
prctl.h
queue.h sys/queue.h: remove CONFIG_ALLOW_MIT_COMPONENTS 2023-01-30 11:26:04 +08:00
random.h
resource.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
select.h libc/fdcheck: add fdcheck module 2023-06-10 02:19:58 +08:00
sendfile.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
shm.h
signalfd.h fs/signalfd: using file descriptor to accept signal 2022-12-28 23:05:58 +08:00
socket.h drivers/modem/alt1250: Update alt1250 driver 2023-06-08 07:48:17 +02:00
sockio.h
stat.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
statfs.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
statvfs.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
syscall_lookup.h assert: Distinguish between assert and exception 2023-05-03 14:49:32 +08:00
syscall.h
sysinfo.h sys/sysinfo: align sysinfo define with linux 2023-02-09 20:11:55 +08:00
sysmacros.h
time.h sched: add support for adjtime() interface 2023-04-25 14:37:50 -03:00
timerfd.h
times.h
tree.h libc: Move tree.h from include/nuttx to include/sys 2023-01-03 10:34:57 +02:00
types.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
uio.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
un.h
utsname.h utsname: Expand the buffer for version information slightly 2023-02-14 22:35:43 +08:00
vfs.h
videoio.h drivers/video: enhance v4l2 compatibility 2022-12-03 02:48:01 +08:00
wait.h