[klibc] [PATCH 2/2] Add a relatively minimal mkstemp(3) implementation.

Thorsten Glaser tg at mirbsd.de
Sun Jan 30 12:55:01 PST 2011


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…)

bye,
//mirabilos

PS: I don’t get the klibc list directly, did the two patches arrive
    in the correct format?
-- 
22:20⎜<asarch> The crazy that persists in his craziness becomes a master
22:21⎜<asarch> And the distance between the craziness and geniality is
only measured by the success                       22:21⎜<mksh> it’s a
very thin line anyway… with some, you don’t know which side they’re on



More information about the klibc mailing list