Skip to content

Commit

Permalink
update styles
Browse files Browse the repository at this point in the history
  • Loading branch information
HowieChih committed Sep 25, 2024
1 parent b4eb2c2 commit 702819c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _posts/2024-09-19-聊聊Java中的文件读写.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ Java_java_io_FileOutputStream_open0(JNIEnv *env, jobject this,
fileOpen的实现是分平台的,看下Unix的(https://github.com/openjdk/jdk/blob/master/src/java.base/unix/native/libjava/io_util_md.c)
```c
fileOpen: fd = handleOpen(ps, flags, 0666);
handleOpen: open(path, oflag, mode)
--> fileOpen: fd = handleOpen(ps, flags, 0666);
--> handleOpen: open(path, oflag, mode)
```

先到这里,C open()函数(fcntl.h的引用在io_util.h里)会根据working directory来处理传入进来的path
Expand Down

0 comments on commit 702819c

Please sign in to comment.