From 626c55b12255752c6c2f575f85decff43a03ae51 Mon Sep 17 00:00:00 2001 From: leitner Date: Fri, 22 Nov 2024 19:24:07 +0000 Subject: [PATCH] update attributes --- open.h | 12 ++++++------ openreadclose.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/open.h b/open.h index 76f7aaa..f3a9280 100644 --- a/open.h +++ b/open.h @@ -9,12 +9,12 @@ extern "C" { #include /* 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 diff --git a/openreadclose.h b/openreadclose.h index 9aa8321..3a38184 100644 --- a/openreadclose.h +++ b/openreadclose.h @@ -9,7 +9,7 @@ extern "C" { #endif -att_read(1) +__strin(1) int openreadclose(const char *filename,stralloc *buf,size_t initiallength); #ifdef __cplusplus