home *** CD-ROM | disk | FTP | other *** search
- /*
- (C) 1995-96 AROS - The Amiga Replacement OS
- $Id: creat.c,v 1.1 1997/01/15 17:48:49 digulla Exp $
-
- Desc: ANSI C function creat()
- Lang: english
- */
-
- /*****************************************************************************
-
- NAME */
- #include <unistd.h>
- #include <fcntl.h>
-
- int creat (
-
- /* SYNOPSIS */
- const char * pathname,
- int mode)
-
- /* FUNCTION
- Creates a file with the specified mode and name.
-
- INPUTS
- pathname - Path and filename of the file you want to open.
- mode - The access flags.
-
- RESULT
- -1 for error or a file descriptor for use with write().
-
- NOTES
- If the filesystem doesn't allow to specify different access modes
- for users, groups and others, then the user modes are used.
-
- This is the same as open (pathname, O_CREAT|O_WRONLY|O_TRUNC, mode);
-
- EXAMPLE
-
- BUGS
-
- SEE ALSO
- open(), close(), write(), fopen()
-
- INTERNALS
-
- HISTORY
- 15.01.97 digulla created
-
- ******************************************************************************/
- {
- return open (pathname, O_CREAT|O_WRONLY|O_TRUNC, mode);
- } /* creat */
-
-