2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
5 ANSI C function creat().
8 /*****************************************************************************
17 const char * pathname
,
21 Creates a file with the specified mode and name.
24 pathname - Path and filename of the file you want to open.
25 mode - The access flags.
28 -1 for error or a file descriptor for use with write().
31 If the filesystem doesn't allow to specify different access modes
32 for users, groups and others, then the user modes are used.
34 This is the same as open (pathname, O_CREAT|O_WRONLY|O_TRUNC, mode);
36 This function must not be used in a shared library or
37 in a threaded application.
44 open(), close(), write(), fopen()
48 ******************************************************************************/
50 return open (pathname
, O_CREAT
|O_WRONLY
|O_TRUNC
, mode
);