source: rtems/c/src/lib/libc/creat.c @ 364d75b

4.104.114.84.95
Last change on this file since 364d75b was 9c49db4, checked in by Joel Sherrill <joel.sherrill@…>, on 01/08/01 at 18:26:44

2001-01-08 Ralf Corsepius <corsepiu@…>

  • configure.in: Add libc/config.h
  • libc/Makefile.am: Add INCLUDES += -I. to pickup config.h
  • libc/.cvsignore: Add config.h and stamp-h
  • libc/*.c: Add config.h support.
  • Property mode set to 100644
File size: 281 bytes
Line 
1/*
2 *  $Id$
3 */
4
5/* creat() "system call" */
6
7#if HAVE_CONFIG_H
8#include "config.h"
9#endif
10
11/* This is needed by f2c and therefore the SPEC benchmarks.  */
12
13#include <fcntl.h>
14
15int
16creat (const char *path, mode_t mode)
17{
18  return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode);
19}
Note: See TracBrowser for help on using the repository browser.