fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / libgloss / libnosys / open.c
blob2c8a6ceb99b4747edcadb651e23f475aab97fc84
1 /*
2 * Stub version of open.
3 */
5 #include "config.h"
6 #include <_ansi.h>
7 #include <_syslist.h>
8 #include <errno.h>
9 #undef errno
10 extern int errno;
11 #include "warning.h"
13 int
14 _DEFUN (_open, (file, flags, mode),
15 char *file _AND
16 int flags _AND
17 int mode)
19 errno = ENOSYS;
20 return -1;
23 stub_warning(_open)