git-svn-id: svn://svn.valgrind.org/valgrind/trunk@315
pth_threadpool.c pth_specific.c pth_mutexspeed.c malloc3.c \
pth_once.c weirdioctl.c pth_signal1.c pth_signal2.c \
discard.c pth_semaphore1.c new_override.cpp pth_yield.c \
- sigaltstack.c
+ sigaltstack.c erringfds.c
--- /dev/null
+
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <unistd.h>
+
+int main ( void )
+{
+ int fd, n;
+ char buf[10];
+ fd = open("foo/bar/xyzzy", O_RDONLY); /* fails */
+ printf("fd = %d\n", fd);
+ n = read ( fd, buf, 10 );
+ printf ("n = %d\n", n);
+ return 0;
+}