nuttx/include/sys
Claude b7001f2d9f include/sys/socket.h: give SOF_TIMESTAMPING_* their Linux values
All SOF_TIMESTAMPING_* flags currently alias 1 << SO_TIMESTAMPING, so
they cannot tell hardware from software or RX from TX.  Give them their
distinct Linux values, and add SOF_TIMESTAMPING_RX_HARDWARE,
SOF_TIMESTAMPING_RX_SOFTWARE and SOF_TIMESTAMPING_SYS_HARDWARE, so that
they can also describe the timestamping capabilities of an interface
(so_timestamping of ETHTOOL_GET_TS_INFO).

This does not change behaviour: setsockopt(SO_TIMESTAMPING) only checks
for a non-zero value and getsockopt() returns 0 or 1, so existing users
and binaries built with the previous values keep working.  The
individual flags are still not honoured.

Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Daniel P. Carvalho <danieloak@gmail.com>
2026-09-28 12:53:24 -03:00
..
boardctl.h
custom_file.h
endian.h
epoll.h
eventfd.h
fcntl.h
file.h
gmon.h
inotify.h
ioctl.h
ipc.h
mman.h
mount.h
msg.h
param.h
pciio.h
poll.h
prctl.h
queue.h
random.h
resource.h
select.h
sem.h
sendfile.h
shm.h
signal.h
signalfd.h
socket.h include/sys/socket.h: give SOF_TIMESTAMPING_* their Linux values 2026-09-28 12:53:24 -03:00
sockio.h
stat.h
statfs.h
statvfs.h
syscall.h
syscall_lookup.h
sysinfo.h
sysmacros.h
time.h
timerfd.h
times.h
timex.h
tree.h
ttydefaults.h
types.h
uio.h
un.h
utsname.h
vfs.h
video_controls.h
videoio.h
wait.h