Files
semi-libc/src/fcntl/creat.c
T
Rich Felker 63a4c9adf2 remove spurious inclusion of libc.h for LFS64 ABI aliases
the LFS64 macro was not self-documenting and barely saved any
characters. simply use weak_alias directly so that it's clear what's
being done, and doesn't depend on a header to provide a strange macro.
2018-09-12 14:34:38 -04:00

9 lines
154 B
C

#include <fcntl.h>
int creat(const char *filename, mode_t mode)
{
return open(filename, O_CREAT|O_WRONLY|O_TRUNC, mode);
}
weak_alias(creat, creat64);