summaryrefslogtreecommitdiff
path: root/open.h
diff options
context:
space:
mode:
authorFelix von Leitner <felix-libowfat@fefe.de>2004-02-04 23:02:35 +0000
committerFelix von Leitner <felix-libowfat@fefe.de>2004-02-04 23:02:35 +0000
commitcc8b30ba1da5e45a2200fab291b930710fdae77f (patch)
tree657c4c4bf61711e19ccfa9e0fbe73764aa57584c /open.h
parent31e62af1229f900a326c6fdc8b86c0eddc872787 (diff)
downloadlibowfat-cc8b30ba1da5e45a2200fab291b930710fdae77f.tar.gz
libowfat-cc8b30ba1da5e45a2200fab291b930710fdae77f.zip
add a few man pages
Diffstat (limited to 'open.h')
-rw-r--r--open.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/open.h b/open.h
index 50ca102..cf4cf28 100644
--- a/open.h
+++ b/open.h
@@ -2,26 +2,30 @@
#define OPEN_H
/* open filename for reading and return the file handle or -1 on error */
-int open_read(const char *filename);
+int open_read(const char* filename);
/* create filename for exclusive write only use (mode 0600) and return
* the file handle or -1 on error */
-int open_excl(const char *filename);
+int open_excl(const char* filename);
/* open filename for appending write only use (mode 0600)
* and return the file handle or -1 on error.
* All write operation will append after the last byte, regardless of
* seeking or other processes also appending to the file. The file will
* be created if it does not exist. */
-int open_append(const char *filename);
+int open_append(const char* filename);
/* open filename for writing (mode 0644). Create the file if it does
* not exist, truncate it to zero length otherwise. Return the file
* handle or -1 on error. */
-int open_trunc(const char *filename);
+int open_trunc(const char* filename);
/* open filename for writing. Create the file if it does not exist.
* Return the file handle or -1 on error. */
-int open_write(const char *filename);
+int open_write(const char* filename);
+
+/* open filename for reading and writing. Create file if not there.
+ * Return file handle or -1 on error. */
+int open_rw(const char* filename);
#endif