Delete open_read.c
authorPaul Pearce <pearce@eecs.berkeley.edu>
Sun, 31 May 2009 21:50:05 +0000 (17:50 -0400)
committerKevin Klues <klueska@cs.berkeley.edu>
Fri, 5 Jun 2009 01:16:43 +0000 (18:16 -0700)
user/apps/parlib/open_read.c [deleted file]

diff --git a/user/apps/parlib/open_read.c b/user/apps/parlib/open_read.c
deleted file mode 100644 (file)
index 7931719..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <stdio.h>
-#include <unistd.h>
-
-int main(int argc, char** argv)
-{
-       printf("Welcome to the ROS newlib test suite!\nEnter at you're own risk....\n");
-       int fd = open("./test/matrix", O_RDWR, 0);
-       char buf[100];
-       int read_amt = read(fd, buf, 100);
-       printf("FD: %d\n", fd);
-       printf("read_amt: %d\n", read_amt);
-       printf("read: %s\n", buf);
-
-       char buf2[] = "NANWAN!\n";
-
-       int fd = open("./test/nanwan", O_RDWR | O_CREAT, 
-                     S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH);
-       int write_amt = write(fd, buf2, sizeof(buf2));
-        printf("write_amt: %d\n", write_amt);        
-       printf("wrote: %s\n", buf2);
-
-
-       return 0;
-}