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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libc/] [creat.c] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/* 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.