summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/creat.c
blob: e487ea16ec81ec9dbdfa16ad0cf70ff3b3be3fe6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 *  $Id$
 */

/* creat() "system call" */

/* This is needed by f2c and therefore the SPEC benchmarks.  */

#include <fcntl.h>

int
creat (const char *path, mode_t mode)
{
  return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode);
}