aboutsummaryrefslogtreecommitdiffstats
path: root/ports/unix/guts/creat.c
blob: 7aaf735b7e4895fbdcf77b805ab5e11573e655b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* 
 * Copyright (c) 2008-2010 Wind River Systems; see
 * guts/COPYRIGHT for information.
 *
 * SPDX-License-Identifier: LGPL-2.1-only
 *
 * static int
 * wrap_creat(const char *path, mode_t mode) {
 *	int rc = -1;
 */

	rc = wrap_open(path, O_CREAT|O_WRONLY|O_TRUNC, mode);

/*	return rc;
 * }
 */