David Carlier
7f36abc33c
sys_resource: get/setpriority implementations.
2023-04-15 07:16:25 +01:00
Ron Williams
b0fe3ab095
fix typo in linux setrlimit
2023-04-14 15:21:15 -07:00
David Carlier
f5ee873961
sys_resource: setrlimit implementation proposal.
2023-04-13 20:59:52 +01:00
David Carlier
4d244dee96
pte: pte_osThreadWaitForEnd checking return of Sys::waitpid
...
close #165
2023-03-30 08:24:01 +01:00
Jeremy Soller
0bd476d28a
Update to new Rust toolchain
2023-02-11 13:45:07 -07:00
Jeremy Soller
073f1e3e05
Fix incorrect pthread PID
2023-01-12 08:12:40 -07:00
Jeremy Soller
6516695519
Format
2022-12-16 17:39:30 -07:00
Jeremy Soller
59b2e32953
Fix compilation on 32-bit systems
2022-12-02 08:00:36 -07:00
Jeremy Soller
041d1604b5
Make off_t and time_t long long
2022-12-02 07:42:26 -07:00
Jeremy Soller
9e0c53f222
Make long 32-bits on 32-bit systems
2022-12-01 18:33:00 -07:00
Jeremy Soller
df75b8d037
Semaphore improvements
2022-12-01 10:48:53 -07:00
Jeremy Soller
16abc91341
cargo fmt and cargo fix
2022-11-11 13:27:18 -07:00
Jeremy Soller
b30c33adc3
Add getsid stub
2022-10-17 11:37:58 -06:00
Jeremy Soller
53c8f0facd
Simplify semaphore for debugging
2022-09-01 10:56:18 -06:00
Jeremy Soller
6a9f8b204b
Remove PTE prints
2022-08-30 08:49:55 -06:00
Jeremy Soller
0250ea022f
pte clone for aarch64
2022-08-26 20:16:58 -06:00
Jeremy Soller
38576a37ab
Fix mistake in aarch64 fork ret
2022-08-24 18:40:06 -06:00
Jeremy Soller
adbdf1d73d
Fixes for redox-exec on aarch64
2022-08-24 15:45:36 -06:00
Jeremy Soller
2cd461fa21
Use relibc chdir for fchdir
2022-08-24 08:50:50 -06:00
Jeremy Soller
915359d11d
Disable use of EnvRegisters on aarch64
2022-08-24 07:49:29 -06:00
4lDO2
1987ae7c77
Check for ENOENT/ENOTDIR in chdir().
2022-08-23 10:49:29 +02:00
Jeremy Soller
eac4a349d8
Set default FPU control word to 0x37F
2022-08-22 08:10:42 -06:00
Jeremy Soller
1243330146
Implement pte_clone_ret for x86
2022-08-20 22:20:42 -06:00
Jeremy Soller
619245024a
Use 32-bit program headers too
2022-08-20 20:10:15 -06:00
Jeremy Soller
791460d5d1
Use 32-bit elf headers on 32-bit redox
2022-08-20 19:48:47 -06:00
Jeremy Soller
5526528364
Partial aarch64 implementation of relibc internal functions
2022-08-20 14:19:29 -06:00
Jeremy Soller
60a4b59194
Fix push/pop of preserved registers on x86
2022-08-18 08:09:11 -06:00
Jeremy Soller
32770ed976
Improvements to x86 assembly in redox-exec
2022-08-18 08:01:14 -06:00
Jeremy Soller
ebb0507f59
Impelement relibc_internal_fork_wrapper for x86 32-bit
2022-08-17 14:21:00 -06:00
4lDO2
c26ce37620
Also fail if cwd could not be written to escalated.
2022-08-13 19:16:48 +02:00
4lDO2
5e74d173ab
Fix ld.so access function on Redox.
2022-08-13 19:16:48 +02:00
4lDO2
36775eeb1b
Implement EXDEV symlink resolution.
2022-08-13 19:16:48 +02:00
4lDO2
54b3f873f8
Move cwd from kernel to relibc.
2022-08-13 19:16:45 +02:00
Jeremy Soller
9e2cbcc407
redox-exec: Add aarch64 stubs
2022-07-29 10:06:54 -06:00
Jeremy Soller
13e58007bc
Add stubs for new asm functions on x86
2022-07-28 08:16:28 -06:00
Jeremy Soller
05e3a5ac8b
redox-exec: Move x86_64 specific things to arch module
2022-07-28 08:08:01 -06:00
4lDO2
16d0f96d64
Move fork implementation to redox-exec
2022-07-28 14:19:31 +02:00
Jeremy Soller
dc865148fc
Get Linux to compile again
2022-07-27 10:10:41 -06:00
4lDO2
f438a4259a
Use redox_syscall 0.3 from crates.io
2022-07-27 17:38:12 +02:00
4lDO2
13cbac293b
Fix write to mmap-min-addr
2022-07-26 21:35:25 +02:00
4lDO2
985b2a59a9
Use better interfaces in exec/clone
2022-07-26 21:35:24 +02:00
4lDO2
d32dd52d3b
Use 2021 edition in redox-exec
2022-07-26 21:34:48 +02:00
4lDO2
b58ad5bf13
In clone, use better asm function names and align.
2022-07-26 21:34:48 +02:00
4lDO2
049a5156d7
Implement PT_INTERP, and thus dynamic linking.
...
With this change, gcc can now successfully compile a tiny program that
printfs an integer returned from a function, from a dynamically linked
library that it compiled as well.
Rustc however, is orders of magnitude more complex, and the next step is
to fix constructors which require access to `environ`, in ld.so
2022-07-26 21:34:48 +02:00
4lDO2
db16393fd7
Manually init FPU context in pte_clone.
2022-07-26 21:34:48 +02:00
4lDO2
24ecd6ee16
Fix waitpid deadlock.
2022-07-26 21:34:48 +02:00
4lDO2
8ac0626be7
Handle sigactions properly in execve and fork.
2022-07-26 21:34:48 +02:00
4lDO2
b930cc98d0
Correctly preserve and set MXCSR and FCW.
2022-07-26 21:34:47 +02:00
4lDO2
bac2509ccd
Fix leaks for setuid/setgid too.
2022-07-26 21:34:47 +02:00
4lDO2
1476cdeb8f
Split fexec_impl into crate, used by escalated.
2022-07-26 21:34:46 +02:00