Skip to content

Commit 0d093e4

Browse files
Merge pull request #64 from zhangzhuang15/dev
Dev
2 parents af2715b + a95f1f3 commit 0d093e4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docs/blog/system-program-with-c.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,7 +2124,7 @@ int enableRawMode(int fd) {
21242124
return 0;
21252125
}
21262126
```
2127-
Read [Kilo, a Simple Text Editor](/blog/terminal-kio), get more details.
2127+
Read [Kilo, a Simple Text Editor](/blog/terminal-kilo), get more details.
21282128
21292129
Terminal IO refers that you read message from terminal emulator and write message to terminal emulator. You can set a structure, called `termios`, change action of terminal emulator. Read [Terminal IO](/blog/terminal-io), get more details.
21302130
@@ -2450,6 +2450,7 @@ int main() {
24502450

24512451

24522452

2453-
2453+
### direct syscall
2454+
Normally, os provides libc for wrapping systemcall. If you want to make systemcall, you should invoke functions defined in libc. But if you want to make systemcall directly, not through libc, you can use assembly code. To make it simple, os provides c function like `syscall` , `__syscall` for wrapping assembly code. Unfortunately, not every os exposes this c function. In new version of macOS, `syscall` is deprecated and dropped([Github | related issue](https://github.com/google/glog/issues/185)), so you cannot search by `man syscall` getting more details. In linux, it's ok. Libc is not equal to c standard library, it contains c standard library and other parts.
24542455

24552456

docs/links/great-articles.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ aside: true
99
## rcore 操作系统教程
1010
[阅读原文](https://rcore-os.cn/rCore-Tutorial-Book-v3/chapter0/index.html)
1111

12+
## zephyrproject
13+
[阅读原文](https://docs.zephyrproject.org/latest/introduction/index.html)
14+
15+
zephyrproject 是一个用c开发的嵌入式操作系统,里边介绍了很多操作系统的知识。作为一个操作系统,它原生支持用 c/c++/rust 开发系统上面的软件。
16+
1217
## How Browser Rendering Works
1318
[阅读原文](https://blog.logrocket.com/how-browser-rendering-works-behind-scenes/)
1419

0 commit comments

Comments
 (0)