[klibc] [PATCH 2/2] Add a relatively minimal mkstemp(3) implementation.
maximilian attems
max at stro.at
Sun Jan 30 13:24:12 PST 2011
On Sun, Jan 30, 2011 at 08:55:01PM +0000, Thorsten Glaser wrote:
> maximilian attems dixit:
>
> >But the question is why do you need mkstemp?
>
> I need either mkstemp() or (insecure) tempnam, because mksh needs the
> ability to create temporary files (mostly for here documents).
>
> If the concern is size, I can probably come up with a pseudo-random
> flavour, considering klibc isn’t usually used outside of early user-
> space currently. (I plan to let Debian /bin/mksh-static use klibc
> instead of dietlibc, though. Thus, even putting an mkstemp() in the
> mksh source package would only shift the size, especially considering
> my goal to replace dash with it in the long term, succeeded in Android
> already…)
I see, will wait on the opinon of hpa, considering aboves usecase.
But indeed I'd favor a smallish one reading stuff from /dev/urandom.
>
> PS: I don’t get the klibc list directly, did the two patches arrive
> in the correct format?
yes, thank you very much. All easily applyable with git am.
--
maks
P.S. haven't had the time to look at the signal bug, will do next days,
seems like a bigger project anyway.
More information about the klibc
mailing list