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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [posix/] [creat.c] - Blame information for rev 1773

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1010 ivang
/* creat() "system call" */
2
 
3
/* This is needed by f2c and therefore the SPEC benchmarks.  */
4
 
5
#include <fcntl.h>
6
 
7
int
8
creat (const char *path, mode_t mode)
9
{
10
  return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode);
11
}

powered by: WebSVN 2.1.0

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