aboutsummaryrefslogtreecommitdiff
path: root/libgloss/riscv/sys_open.c
blob: eb1a99ba2b010f6ff16834f497370702fc063bb1 (plain)
1
2
3
4
5
6
7
8
9
#include <machine/syscall.h>
#include "internal_syscall.h"

/* Open a file.  */
int
_open(const char *name, int flags, int mode)
{
  return syscall_errno (SYS_open, 3, name, flags, mode, 0, 0, 0);
}