update attributes

This commit is contained in:
leitner
2024-11-22 19:24:07 +00:00
parent a78155400f
commit 626c55b122
2 changed files with 7 additions and 7 deletions

12
open.h
View File

@@ -9,12 +9,12 @@ extern "C" {
#include <libowfat/compiler.h>
/* open filename for reading and return the file handle or -1 on error */
att_read(1)
__strin(1)
int open_read(const char* filename);
/* create filename for exclusive write only use (mode 0600) and return
* the file handle or -1 on error */
att_read(1)
__strin(1)
int open_excl(const char* filename);
/* open filename for appending write only use (mode 0600)
@@ -22,23 +22,23 @@ int open_excl(const char* filename);
* 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. */
att_read(1)
__strin(1)
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. */
att_read(1)
__strin(1)
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. */
att_read(1)
__strin(1)
int open_write(const char* filename);
/* open filename for reading and writing. Create file if not there.
* Return file handle or -1 on error. */
att_read(1)
__strin(1)
int open_rw(const char* filename);
#ifdef __cplusplus

View File

@@ -9,7 +9,7 @@
extern "C" {
#endif
att_read(1)
__strin(1)
int openreadclose(const char *filename,stralloc *buf,size_t initiallength);
#ifdef __cplusplus