source:
bootcd/isolinux/syslinux-6.03/com32/lib/creat.c
@
dd1be7c
Last change on this file since dd1be7c was e16e8f2, checked in by , 3 years ago | |
---|---|
|
|
File size: 196 bytes |
Rev | Line | |
---|---|---|
[e16e8f2] | 1 | /* |
2 | * creat.c | |
3 | */ | |
4 | ||
5 | #include <sys/types.h> | |
6 | #include <sys/stat.h> | |
7 | #include <fcntl.h> | |
8 | ||
9 | int creat(const char *pathname, mode_t mode) | |
10 | { | |
11 | return open(pathname, O_CREAT | O_WRONLY | O_TRUNC, mode); | |
12 | } |
Note: See TracBrowser
for help on using the repository browser.