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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [newlib-1.18.0/] [newlib/] [libc/] [machine/] [spu/] [creat.c] - Blame information for rev 829

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 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.