tag 516294 + patch
tag 516774 + patch
tag 516779 + patch
thanks

Hi again!

First of, I take back the wishlist item for killpg(3) support,
as one can use kill(2) with negative PIDs for that on Linux.
My test application (mksh) has been patched appropriately.
I am thus closing #516773 myself.

Secondly, find attached a debdiff against the current version
in Debian sid which fixes all other issues I reported, as well
as a couple more:

• I wrote a minimalistic mkstemp(3) implementation
• … which needs a self-seeding PRNG, so I also implemented
  one using /proc/sys/kernel/random/uuid (which is almost
  always available), using jrand48 with a different state
  than the other public klibc functions internally, exposing
  the BSD arc4random(3) API (because that’s about the most
  wide-spread self-seeding RNG in existence)
• I solved the problems with the kernel headers, both the
  recursive symlink (is removed post-install now) and the
  bogus getrlimit prototype (while sed -i is not normally
  my friend it’s available in Debian…)
• I added the getrlimit syscall and prototypes
• Lastly, mksh is built with -std=c99 which exposed a broken
  inline function (extern inline is a gcc3-ism, static inline
  is C99) in <stdio.h> that I fixed

klcc does not support -fwhole-program --combine, but I can
live with that. (I also am not totally happy with it, in
comparision to Fefe’s diet wrapper at least, which optimises
more heavily for size and does not add ‘-g’ by default.)

Worse, getrlimit() and setrlimit() seem to have more than one
interface, possibly architecture-dependent, so I did not add
these. I ignored the old getrusage() interface only existing
on ancient Alphas, since it predates klibc by long, though.

Now if someone’d add my debdiff and maybe hack [gs]etrlimit
into klibc, this would be great; mksh passes its regression
test suite fully now and produces wicked small binaries more
than good enough to replace both Busybox’ and klibc-utils’
ash variants in my live-initramfs. (A bit unfair comparision,
klibc-shared saving about 12K from dietlibc-static. But then,
the klibc DSO does already exist in the initramfs.)

bye,
//mirabilos
-- 
23:22⎜«mikap:#grml» mirabilos: und dein bootloader ist geil :)
23:29⎜«mikap:#grml» und ich finds saugeil dass ich ein bsd zum booten mit
     ⎜  grml hab, das muss ich dann gleich mal auf usb-stick installieren
-- Michael Prokop von grml.org über MirGRML und MirOS bsd4grml

Attachment: klibc_1.5.15-2~tg+1.debdiff.gz
Description: Binary data

Reply via email to