Files
RedBear-OS/LICENSE
T
vasilito d87746b279 libredox: bump to 0.1.18 + backport redox_fcntl_v0 + add Phase J acpi module
Three changes in one commit, all interrelated:

1. Bump version 0.1.17 -> 0.1.18 to match upstream. Reason:
   recipes/core/redoxfs/source requires libredox = "0.1.18",
   and the kernel's [patch.crates-io] override forces this local
   fork to be used in the kernel compilation. If the local fork
   stays at 0.1.17, the linker fails with undefined references
   to symbols added in 0.1.18 (redox_fcntl_v0 in particular).

2. Backport the 0.1.18 additions to src/lib.rs:
   - fn redox_fcntl_v0 extern declaration
   - pub fn fcntl() on Fd and as a free function
   - O_CLOEXEC and F_DUPFD_CLOEXEC constants
   All backports are purely additive; the existing Phase J
   path override (path = "../syscall") is preserved.

3. Re-apply the actual Phase J work to libredox that was
   missing from commit d01da35 ("Phase J fork"):
   - pub mod acpi re-exporting AcPiVerb from redox_syscall
   The commit message of d01da35 implied it added AcPiVerb
   re-exports but in fact only added the path override and
   version bump. This re-export is what gives acpid / kstop /
   redbear-power / redbear-acmd access to the symbolic
   EnterS2Idle / ExitS2Idle / SetS3WakingVector / EnterS3
   names instead of hardcoded integer discriminants.

After this commit, redoxfs links cleanly against the local
libredox 0.1.18 and the kernel's per-cpu run queues / futex
sharding work remains intact.
2026-07-02 07:55:04 +03:00

22 lines
1.0 KiB
Plaintext

MIT License
Copyright (c) 2023 4lDO2
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.