summaryrefslogtreecommitdiffstats
path: root/tools/checkwps/file.h
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2009-10-20 17:07:06 +0000
committerFrank Gevaerts <frank@gevaerts.be>2009-10-20 17:07:06 +0000
commitdae2b97240892f213851735ced8add760d640a4d (patch)
tree150d1ab4d00974bf3aebcc966b86e3334ddf13d8 /tools/checkwps/file.h
parent128b84c5821242c446ded2864e25a12671d47110 (diff)
downloadrockbox-dae2b97240892f213851735ced8add760d640a4d.tar.gz
rockbox-dae2b97240892f213851735ced8add760d640a4d.tar.bz2
rockbox-dae2b97240892f213851735ced8add760d640a4d.zip
compile checkwps with -Wall, to avoid accidentally breaking it again when a function prototype changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23291 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/checkwps/file.h')
-rw-r--r--tools/checkwps/file.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/checkwps/file.h b/tools/checkwps/file.h
index 4256c1ee37..a14d7f5b91 100644
--- a/tools/checkwps/file.h
+++ b/tools/checkwps/file.h
@@ -5,3 +5,12 @@
/* Wrapper - required for O_RDONLY */
#include <fcntl.h>
+
+extern ssize_t read(int fd, void *buf, size_t count);
+extern ssize_t write(int fd, const void *buf, size_t count);
+extern off_t lseek(int fildes, off_t offset, int whence);
+extern int close(int fd);
+
+/* strlcpy doesn't belong here (it's in string.h in the rockbox sources),
+ * but this avoids complicated magic to override the system string.h */
+size_t strlcpy(char *dst, const char *src, size_t siz);