commit | fd04aacee17b348da206c13a550dc1029669805f | [log] [tgz] |
---|---|---|
author | rsc <devnull@localhost> | Sun Nov 23 18:12:54 2003 +0000 |
committer | rsc <devnull@localhost> | Sun Nov 23 18:12:54 2003 +0000 |
tree | 9bdd35a25ff6e3d6e9a0171b06240a76723f922c | |
parent | 74f990ad84deb1591ddb91be4fc8152ec0c46222 [diff] [blame] |
Various additions and fixes.
diff --git a/src/lib9/create.c b/src/lib9/create.c new file mode 100644 index 0000000..abef0c3 --- /dev/null +++ b/src/lib9/create.c
@@ -0,0 +1,8 @@ +#include <u.h> +#include <libc.h> + +int +create(char *path, int mode, ulong perm) +{ + return open(path, mode|O_CREAT|O_TRUNC, perm); +}