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.
9 lines
154 B
C
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);
|