Commit Graph

51 Commits

Author SHA1 Message Date
sourceturner 3879cb641d Use unsafe blocks in ioctl implementation 2026-01-18 21:13:34 +01:00
bjorn3 a710decf1b Add drm MODE_GET_PROPERTY, MODE_SET_PROPERTY and MODE_GET_PROP_BLOB 2025-12-21 20:38:53 +01:00
bjorn3 b69c6a2e11 Add drm MODE_ADD_FB and MODE_RM_FB 2025-12-20 22:10:39 +01:00
Jeremy Soller c489dee545 Add TIOCGSID definition for Redox 2025-12-19 13:38:20 -07:00
bjorn3 22f5f23642 Support dumb buffer drm ioctls 2025-12-17 22:56:11 +01:00
bjorn3 2199c0fa10 Remove unused method from drm::Dev 2025-12-17 22:14:32 +01:00
bjorn3 61dc527156 Move drm ioctl (de)serialization into a new redox-ioctl crate
This will make it easier to share this code with gpu drivers in the base
repo.
2025-12-16 20:38:05 +01:00
bjorn3 c4ffcedbd0 Port remaining drm ioctls to the new infrastructure 2025-12-15 23:34:44 +01:00
bjorn3 cf90f89b42 Introduce infrastructure for serializing ioctls
And use it for a couple of drm interfaces
2025-12-15 22:26:52 +01:00
bjorn3 93f9401cf0 Use drm-sys for DRM types and consts 2025-12-14 22:32:43 +01:00
bjorn3 d70e2dc610 drm: Use new VERSION, GET_CAP and SET_CLIENT_CAP driver commands 2025-12-14 20:47:41 +01:00
bjorn3 395c686f8d Rustfmt 2025-12-14 20:46:36 +01:00
bjorn3 6bce162b92 Fix read-only and write-only ioctls
Read-only ioctls write data to userspace, while write-only ioctls read
data from userspace. This matches the read and write syscalls.
2025-12-14 20:45:26 +01:00
Jeremy Soller 105b24a21f Implement DRM ioctls for Redox 2025-12-14 08:39:00 -07:00
Jeremy Soller 0844e6fc90 WIP: use upper fd table 2025-11-15 07:55:37 -07:00
Jeremy Soller 82084440ad Support nightly-2025-10-03 2025-10-03 21:51:10 -06:00
Jeremy Soller ac3eb38c0d Include bits/sys/ioctl.h in sys/ioctl.h 2025-05-13 08:13:49 -06:00
4lDO2 eee603efa8 Remove the "-1 errno" e() function. 2024-09-27 15:35:04 +02:00
4lDO2 313b32c815 Switch almost all of Pal to Rusty error handling. 2024-09-27 10:19:44 +02:00
4lDO2 c0e7af5289 Backwards-compatibly rewrite getdents to use special syscall. 2024-09-11 23:32:19 +02:00
bpisch a9db7af754 Add stub for SIOCATMARK command of ioctl. 2024-03-09 08:56:37 +01:00
Peter Limkilde Svendsen a7137512fa Use standard casing and mangling for internal errno 2024-03-01 00:25:42 +00:00
Peter Limkilde Svendsen 9093f6bc47 Use Cell representation for errno 2024-02-29 14:07:40 +00:00
4lDO2 5630b6e0df Make relibc (except libm) pure Rust 2024-01-11 13:08:06 +00:00
Jeremy Soller 49ee2f0593 Stub some terminal ioctls on Redox 2024-01-08 20:35:17 -07:00
Jeremy Soller 70dc59210d Add TIOCSCTTY, currenty unimplemented 2024-01-03 10:10:07 -07:00
Darley Barreto a237165bf8 Adding tcsetwinsize 2023-06-02 23:23:19 +00:00
4lDO2 cdd0f67b23 Rustfmt. 2023-05-17 15:28:10 +02:00
Jeremy Soller 7251fc7c47 Fix type error after fcntl redefinition 2023-05-17 07:24:19 -06:00
David Carlier bae8bb68df lockf implementation proposal 2023-05-16 23:40:40 +01:00
David Carlier 40b1cec31e stdlib: unlockpt implementation proposal 2023-04-18 21:24:53 +01:00
Jeremy Soller fc8e55abd8 Add FIONREAD on Redox 2022-10-17 10:39:31 -06:00
Noah 49e3e44bf1 Handle TCSETSW and TCSETSF in ioctl 2021-03-12 12:50:17 -06:00
jD91mZM2 aeab6a986d Fix a few GDB compilation issues 2019-08-12 09:30:05 +02:00
jD91mZM2 b8c50c7c64 Format 2019-08-04 19:05:45 +02:00
jD91mZM2 c7d499d4f2 Upgrade to the 2018 edition
I didn't think it'd be this useful first, but thank god for `cargo fix --edition`!
2019-08-04 19:05:45 +02:00
Mateusz Mikuła 63a1319e50 Cbindgen update 2019-07-10 10:08:39 +00:00
Jeremy Soller 7bde036031 Remove va_list submodule, format 2019-04-21 15:45:55 -06:00
Jeremy Soller d2502056a8 Cleanup termios and ioctls and add tcflush 2019-01-27 19:19:50 -07:00
Jeremy Soller eaa031c21c Fix ioctl on redox 2019-01-18 15:39:49 -07:00
Jeremy Soller a88933386b Implement termios functions using ioctl 2019-01-17 20:46:12 -07:00
Jeremy Soller 1a0d363caa Redox support for some minimal ioctl's 2019-01-15 20:50:17 -07:00
Jeremy Soller 52fd4d7e83 Clippy fixes 2018-12-02 08:04:53 -07:00
Jeremy Soller 950b4526c7 - Disable output of empty header files
- Remove incorrect header styles
- Use export.replace where header style was previously needed
- Check compilation of tests using system gcc
2018-11-26 21:35:02 -07:00
Jeremy Soller 9b0c74b935 Fix ioctl being defined on redox, add cxa_atexit for gcc 2018-11-18 10:35:33 -07:00
Jeremy Soller ebffc977b2 Reduce warnings 2018-11-10 07:52:45 -07:00
jD91mZM2 6fe3e05ea0 Delete duplicate types
Now that we use cbindgen differently :D
2018-09-02 08:17:15 +02:00
Jeremy Soller bab4e2896a Format 2018-08-27 06:35:30 -06:00
Jeremy Soller 7ab700315d Fix warnings and add c_str 2018-08-26 15:15:29 -06:00
Jeremy Soller 277b9abcd5 Fix build, mostly 2018-08-26 08:56:02 -06:00