summaryrefslogtreecommitdiff
path: root/newlib/addon/newlib/libc/sys/hurd/openr.c
blob: ca1803874b6c88693dfbeec0aceecd1005ad079f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Reentrant versions of open system call. */

#include <reent.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>

int
open (const char *file, int flags, ...)
{
  errno = EOPNOTSUPP;
  return -1;
}

int
_DEFUN (_open_r, (ptr, file, flags, mode),
     struct _reent *ptr _AND
     _CONST char *file _AND
     int flags _AND
     int mode)
{
  return open (file, flags, mode);
}