summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-10-02 15:23:22 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-10-02 15:23:22 +0200
commit2baeaf38f3d9ace1fb06fdd2f84294c311bf33bf (patch)
treea3dfb815c5d15e232c4a3bd7f020cf484e4a8fb0 /include
parent82875bfd5209c6dc2877001050069de36a18704f (diff)
downloadbarebox-2baeaf38f3d9ace1fb06fdd2f84294c311bf33bf.tar.gz
barebox-2baeaf38f3d9ace1fb06fdd2f84294c311bf33bf.tar.xz
fs: replace broken dev_protect with protect_file function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h
index 552c4e94bb..4c03978a03 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -132,6 +132,7 @@ int umount(const char *pathname);
/* not-so-standard functions */
int erase(int fd, size_t count, unsigned long offset);
int protect(int fd, size_t count, unsigned long offset, int prot);
+int protect_file(const char *file, int prot);
void *memmap(int fd, int flags);
#define PROT_READ 1