OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [sysnecv850/] [open.c] - Diff between revs 148 and 158

Only display areas with differences | Details | Blame | View Log

Rev 148 Rev 158
#include <_ansi.h>
#include <_ansi.h>
#include <sys/types.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include "sys/syscall.h"
#include "sys/syscall.h"
 
 
int errno;
int errno;
 
 
int __trap0 (int function, int p1, int p2, int p3);
int __trap0 (int function, int p1, int p2, int p3);
 
 
#define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3))
#define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3))
 
 
int
int
_open (const char *path,
_open (const char *path,
        int flags)
        int flags)
{
{
  return TRAP0 (SYS_open, path, flags, 0);
  return TRAP0 (SYS_open, path, flags, 0);
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.