summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-19 11:45:49 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-19 11:45:49 +0200
commit499ca6c243b05da176a2d4bd9a2317f0b28afc7f (patch)
treef55ff788632b017ab8de83b71ad02b0998e1dda5 /doc
parent7b466345af0d3a7dc5622617ce443a90c64e34a4 (diff)
downloadTCE-499ca6c243b05da176a2d4bd9a2317f0b28afc7f.tar.gz
TCE-499ca6c243b05da176a2d4bd9a2317f0b28afc7f.zip
Introducing FWIK, the userland C++ framework. Far from complete.
Diffstat (limited to 'doc')
-rw-r--r--doc/fwik.txt9
-rw-r--r--doc/vfs.txt6
2 files changed, 14 insertions, 1 deletions
diff --git a/doc/fwik.txt b/doc/fwik.txt
new file mode 100644
index 0000000..d038b2a
--- /dev/null
+++ b/doc/fwik.txt
@@ -0,0 +1,9 @@
+FWIK
+
+FWIK (is not an acronym) is a C++ library for userland applications, built
+especially to run on the T/CE kernel.
+
+It includes :
+- I/O (files, directories, terminals)
+- Strings, vectors, sets, maps
+- ...
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)