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/] [machine/] [spu/] [creat.c] - Blame information for rev 158

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
/* creat() "system call" */
2
 
3
/* copied from libc/posix/creat.c */
4
 
5
/* This is needed by f2c and therefore the SPEC benchmarks.  */
6
 
7
#include <fcntl.h>
8
 
9
int
10
_DEFUN(creat, (path, mode),
11
       const char *path _AND
12
       mode_t mode)
13
{
14
  return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode);
15
}

powered by: WebSVN 2.1.0

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