test: stat.c (NEW) - test stat(2)

glen glen at pld-linux.org
Sat Mar 3 13:03:20 CET 2007


Author: glen                         Date: Sat Mar  3 12:03:20 2007 GMT
Module: test                          Tag: HEAD
---- Log message:
- test stat(2)

---- Files affected:
test:
   stat.c (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: test/stat.c
diff -u /dev/null test/stat.c:1.1
--- /dev/null	Sat Mar  3 13:03:20 2007
+++ test/stat.c	Sat Mar  3 13:03:15 2007
@@ -0,0 +1,10 @@
+#include <sys/stat.h>
+#include <unistd.h>
+
+int main() {
+const char *filename = ".";
+struct stat stat_buf;
+
+__xstat(3, filename, &stat_buf); perror("xstat");
+stat(filename, &stat_buf);perror("stat");
+}
================================================================


More information about the pld-cvs-commit mailing list