summaryrefslogtreecommitdiff
path: root/doc/vfs.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/vfs.txt')
-rw-r--r--doc/vfs.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/vfs.txt b/doc/vfs.txt
index 5a6a0b2..680df73 100644
--- a/doc/vfs.txt
+++ b/doc/vfs.txt
@@ -32,13 +32,17 @@ struct file_info {
File open modes flags :
- FM_READ open for reading
- FM_WRITE open for writing
-- FM_APPEND append data
- FM_TRUNC truncate existing file
- FM_CREATE create file if it doesn't exist
- FM_DELETE delete the file - incompatible with everything else
note : if mode contains neither FM_READ nor FM_WRITE, then the file will be created/truncated according to the flags given,
but will not be actually oppenned, so the return value of open will be 0.
+Important remark :
+The kernel does NOT keep track of what your current position in the file is. And it's a bit hard, too,
+because terminals behave differently than files, and so do directories, etc. So that's why there is no
+FM_APPEND : when you open a file, you can do whatever you want.
+
Link modes :
- LM_SYMLINK
- LM_HARDLINK (don't count on that really being implemented)