[klibc] creat isn't exported
H. Peter Anvin
hpa at zytor.com
Thu Sep 28 13:55:52 PDT 2006
Luciano Miguel Ferreira Rocha wrote:
>
> creat.c on usr/klibc exists, but it isn't compiled. Activating it in
> Kbuild allows the rtfs w/ creat to link, but it still gives a warning
> about creat not being declared.
>
> At least a #define creat(p, m) open(p, O_..., m) would be nice, for
> compatibility reasons.
>
I don't care much for creat(), I've considered it obsolete for over 20
years. For new code, use open() instead.
It presumably should be in there for compatibility, though, at least as
an inline.
-hpa
More information about the klibc
mailing list