2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
5 POSIX.1-2008 function creat().
8 /*****************************************************************************
16 const char * pathname
,
20 Creates a file with the specified mode and name.
23 pathname - Path and filename of the file you want to open.
24 mode - The access flags.
27 -1 for error or a file descriptor for use with write().
30 If the filesystem doesn't allow to specify different access modes
31 for users, groups and others, then the user modes are used.
33 This is the same as open (pathname, O_CREAT|O_WRONLY|O_TRUNC, mode);
35 This function must not be used in a shared library or
36 in a threaded application.
43 open(), close(), write(), fopen()
47 ******************************************************************************/
49 return open (pathname
, O_CREAT
|O_WRONLY
|O_TRUNC
, mode
);