Skip to content

Commit 2f64856

Browse files
48cfAndy-Python-Programmer
authored andcommitted
userland: add a "window server", clean up the userland directory structure
1 parent 3dd634b commit 2f64856

File tree

26 files changed

+169
-36
lines changed

26 files changed

+169
-36
lines changed

userland/Cargo.lock

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

userland/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace]
2-
members = ["aero_shell", "aero_ipc", "init", "system_server", "utest"]
2+
members = ["apps/*", "servers/*"]
33

44
[profile.release]
55
debug = true
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
[package]
2-
name = "aero_shell"
3-
version = "0.1.0"
4-
authors = ["Anhad Singh <[email protected]>"]
5-
edition = "2021"
6-
7-
[dependencies]
8-
aero_syscall = { path = "../../src/aero_syscall" }
9-
aero_ipc = { path = "../aero_ipc" }
10-
std = { path = "../aero_std" }
1+
[package]
2+
name = "aero_shell"
3+
version = "0.1.0"
4+
authors = ["Anhad Singh <[email protected]>"]
5+
edition = "2021"
6+
7+
[dependencies]
8+
std = { path = "../../libs/aero_std" }
9+
aero_syscall = { path = "../../../src/aero_syscall" }
10+
aero_ipc = { path = "../../libs/aero_ipc" }

userland/init/Cargo.toml renamed to userland/apps/init/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ authors = ["czapek1337 <[email protected]>"]
55
edition = "2021"
66

77
[dependencies]
8-
aero_syscall = { path = "../../src/aero_syscall" }
9-
std = { path = "../aero_std" }
8+
std = { path = "../../libs/aero_std" }
9+
aero_syscall = { path = "../../../src/aero_syscall" }

userland/init/src/main.rs renamed to userland/apps/init/src/main.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,6 @@ fn main() -> Result<(), AeroSyscallError> {
3535
sys_open("/dev/tty", OpenFlags::O_WRONLY)?;
3636
sys_open("/dev/tty", OpenFlags::O_WRONLY)?;
3737

38-
// TODO: make this test case succeed!
39-
let _1 = Box::new(0);
40-
let pid = sys_fork()?;
41-
42-
if pid == 0 {
43-
let _2 = Box::new(0);
44-
println!("from child: {}", _2);
45-
return Ok(());
46-
} else {
47-
let _2 = Box::new(0);
48-
println!("from parent: {}", _2);
49-
}
50-
5138
fork_and_exec("/bin/system_server", &[], &[])?;
5239
fork_and_exec("/bin/aero_shell", &[], &[])?;
5340

File renamed without changes.
File renamed without changes.

userland/utest/Cargo.toml renamed to userland/apps/utest/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2021"
55
authors = ["Anhad Singh <[email protected]>"]
66

77
[dependencies]
8-
std = { path = "../aero_std" }
9-
aero_syscall = { path = "../../src/aero_syscall" }
10-
aero_ipc = { path = "../aero_ipc" }
8+
std = { path = "../../libs/aero_std" }
9+
aero_syscall = { path = "../../../src/aero_syscall" }
10+
aero_ipc = { path = "../../libs/aero_ipc" }
1111
utest-proc = { path = "../utest-proc" }
File renamed without changes.

0 commit comments

Comments
 (0)