source: rtems/c/src/lib/libc/creat.c @ 1a505aae

4.104.114.84.95
Last change on this file since 1a505aae was 662678d1, checked in by Joel Sherrill <joel.sherrill@…>, on 08/25/00 at 13:13:57

2000-08-25 Joel Sherrill <joel.sherrill@…>

  • libc/isatty.c, libc/imfs_handlers_directory.c, libc/creat.c, libc/imfs_directory.c: Fixed style issues.
  • Property mode set to 100644
File size: 235 bytes
Line 
1/*
2 *  $Id$
3 */
4
5/* creat() "system call" */
6
7/* This is needed by f2c and therefore the SPEC benchmarks.  */
8
9#include <fcntl.h>
10
11int
12creat (const char *path, mode_t mode)
13{
14  return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode);
15}
Note: See TracBrowser for help on using the repository browser.