Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include "lib.h"
2
#include <sys/stat.h>
3
#include <fcntl.h>
4
 
5
int
6
creat(const char *name, mode_t mode)
7
{
8
	int n;
9
 
10
	n = open(name, O_WRONLY | O_CREAT | O_TRUNC, mode);
11
	/* no need to _syserrno; open did it already */
12
	return n;
13
}