Files
RedBear-OS/include/sys/vfs.h
T
vasilito 599627a926 relibc: ip_mreqn, sched_getcpu, variadic ioctl, sys/vfs.h, sched size_t
Follow-ups so PipeWire's remaining modules compile against real relibc:
- struct ip_mreqn (netinet/in.h): index-based multicast join request, used
  with IP_ADD_MEMBERSHIP + the SIOCGIFINDEX ifr_ifindex.
- sched_getcpu(): honest ENOSYS/-1 (Redox exposes no per-thread current-CPU
  query) rather than a fabricated CPU number.
- ioctl() declared variadic (int, unsigned long, ...) as in POSIX/glibc, so
  ioctl(fd, req, long) no longer trips -Werror=int-conversion; cbindgen's
  fixed void* prototype is excluded in favor of this ABI-compatible one.
- sys/vfs.h: glibc-style thin wrapper re-exporting sys/statfs.h.
- sched.h: pull in stddef.h + usize_is_size_t so the sched_getaffinity
  size_t parameter resolves.

cargo check clean for x86_64-unknown-redox.
2026-08-01 13:03:55 +03:00

11 lines
393 B
C

#ifndef _RELIBC_SYS_VFS_H
#define _RELIBC_SYS_VFS_H
/* <sys/vfs.h> is the historical Linux/BSD name for the filesystem-statistics
* interface; glibc ships it as a thin wrapper that simply re-exports
* <sys/statfs.h> (struct statfs + statfs()/fstatfs()). Mirror that so code that
* includes <sys/vfs.h> gets the same declarations. */
#include <sys/statfs.h>
#endif /* _RELIBC_SYS_VFS_H */