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

Subversion Repositories openrisc

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

Go to most recent revision | 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.