Displaying 1 result from an estimated 1 matches for "2a06a68".
Did you mean:
290668
2009 Mar 05
1
[PATCH 4/5] COM32: add trivial stat() function
...ial stat() function; uses open(), fstat() then close()
or opendir(), closedir().
Signed-off-by: Gene Cumm <gene.cumm at gmail.com>
---
Not the most elegant thing in the world but it's been working for me.
diff --git a/com32/include/sys/stat.h b/com32/include/sys/stat.h
index ffc4105..2a06a68 100644
--- a/com32/include/sys/stat.h
+++ b/com32/include/sys/stat.h
@@ -49,4 +49,6 @@ struct stat {
/* Only fstat() supported */
int fstat(int, struct stat *);
+int stat(const char *, struct stat *);
+
#endif /* _SYS_STAT_H */
diff --git a/com32/lib/Makefile b/com32/lib/Makefile
index 0cc4061....