search for: dietlibc

Displaying 20 results from an estimated 42 matches for "dietlibc".

2003 Aug 05
1
compile with dietlibc
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I'm used to test the software which I use with dietlibc, just to see if it could run without the bloat of glibc. While compiling dovecot 0.99.10 I got these errors: In file included from lib.h:20, from alarm-hup.c:26: compat.h:30: conflicting types for `uint_fast32_t' /opt/diet/include/stdint.h:25: previous declaration of `uint_f...
2014 Jul 09
0
[klibc:master] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
...=commit;h=7763dd33e5b8eed4b9e3c583c02c10176fd550d3 Author: Thorsten Glaser <tg at mirbsd.org> AuthorDate: Wed, 11 Jun 2014 10:02:14 +0200 Committer: H. Peter Anvin <hpa at zytor.com> CommitDate: Wed, 9 Jul 2014 08:21:02 -0700 [klibc] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does While all ?real? ttys may support TIOCGPGRP, /dev/console doesn?t; using TCGETS here allows Linux booted with init=/bin/mksh-static to have working interactive command line (PS1, editing, etc). [ hpa: TCGETS matches glibc, so go with it ] Reported-by: Dominik George <d.george at tarent.d...
2014 Jun 11
2
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
While all ?real? ttys may support TIOCGPGRP, /dev/console doesn?t; using TCGETS here allows Linux booted with init=/bin/mksh-static to have working interactive command line (PS1, editing, etc). Reported-by: Dominik George <d.george at tarent.de> Signed-off-by: Thorsten Glaser <t.glaser at tarent.de> --- usr/klibc/isatty.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
2014 Jun 11
0
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
On 06/11/2014 01:02 AM, Thorsten Glaser wrote: > While all ?real? ttys may support TIOCGPGRP, /dev/console doesn?t; > using TCGETS here allows Linux booted with init=/bin/mksh-static > to have working interactive command line (PS1, editing, etc). > > Reported-by: Dominik George <d.george at tarent.de> > Signed-off-by: Thorsten Glaser <t.glaser at tarent.de> > ---
2014 Jun 11
2
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
I guess what I wanted to say is that it might be desirable to have the klibc shell do some dancing (perhaps controlled by some flags, but on by default?) If getpid() == 1 then fork a child, continue in the child, have the parent wait for the child to terminate, then exit child should setsid() close(2) close(1) close(0) open("/dev/ttyS0", O_RDONLY) open("/dev/ttyS0",
2014 Jun 12
0
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
Maciej ?enczykowski dixit: >I guess what I wanted to say is that it might be desirable to have the >klibc shell do some dancing (perhaps controlled by some flags, but on There is no klibc shell. >child should > >setsid() >close(2) >close(1) >close(0) >open("/dev/ttyS0", O_RDONLY) >open("/dev/ttyS0", O_WRONLY|O_NOCTTY)
2014 Jun 11
0
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
Does ctrl+c work? My experience with (non klibc) init=/bin/bash is that getting ctrl+c to work requires some jumping through hoops, because running as pid 1 doesn't really work. If I recall correctly you have to call setsid, and open a tty as a controlling tty, you can't call setsid as pid 1. The hack that I got to work (for reference, I'm using this for raw kernel testing
2014 Jun 11
3
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
H. Peter Anvin dixit: >But is that really a tty, then? I also understand that virtio console Hm. Both eglibc and dietlibc return true for isatty on it. >doesn't support termios, which makes this an ugly bifurcation. All of Let me test that? quick? hah not really (CONFIG_VIRTIO_CONSOLE=m)? ok luckily Ubuntu?s linux-image-3.15.0-5-generic is installable on Debian stable and has CONFIG_VIRTIO_CONSOLE=y? but no...
2016 Feb 17
2
[PATCH supermin 0/2] Allow an alternate libc to be used for init.
Allow an alternate libc, such as dietlibc, to be used for the init binary in the supermin appliance. Rich.
2017 Apr 03
2
[PATCH supermin] init: Don't perform ioctl (TIOCSCTTY).
Don't know why it works, but it works ... Rich.
2007 Sep 07
1
Development forever
...l, please consider subscribing this ML to Gmane interface. It would be great! Especially, if you will provide full-text archives for importing. (All that web archives suck, you know. Small and big archives are most easily handled with news server/reader.) Secondly. Did you started klibc as `for of dietlibc'? http://permalink.gmane.org/gmane.linux.lib.dietlibc/1160 Why i'm asking, not for trolling or that kind stuff. I just want to know your opinion about inclusion some comprehencive tools in addition to dash and kinit. For example how klibc relate to posix utils by Jeff Garzik? I'd lik...
2012 Apr 20
2
klibc 2.0~rc3-1 ./. mksh 40.9.20120414-2
...error out as one of its internal data structures got corrupted, or a wrong pointer passed to aresize/afree http://buildd.debian-ports.org/status/fetch.php?pkg=mksh&arch=alpha&ver=40.9.20120414-2&stamp=1334504721 (4) alpha: random SIGSEGVs that happen with neither eglibc nor dietlibc so almost certainly (considering mksh also runs with other OSes on DEC Alpha systems, even with the Compaq C compiler) are problems in klibc If someone wants to have a stab at these: there are Debian porterboxen around for at least powerpc and armhf; alpha might one get access to; for m68...
2005 Jan 25
3
How to delay before mounting root filesystem
Got to minimize (barely) my filesystem and kernel and fit it into my usb key (256mb) My kernel was compiles with scsi and usb support built-in. My problem now is i can't mount my root filesystem when i tried to boot. kernel somehow takes time before being able to recognize my usb as a valid scsi device thus displaying VFS: Cannot open root device 08:01 this is my lilo.conf boot=/dev/sda
2016 Feb 17
1
Re: [PATCH supermin v2 4/4] init: Debug which libc is in use.
...it a/init/init.c b/init/init.c > index 25d6bc6..38392c4 100644 > --- a/init/init.c > +++ b/init/init.c > @@ -94,6 +94,15 @@ main () > print_uptime (); > fprintf (stderr, "supermin: ext2 mini initrd starting up: " > PACKAGE_VERSION > +#if defined(__dietlibc__) > + " dietlibc" > +#elif defined(__GLIBC__) > + " glibc" This needs to be put as last, as libc implementations that copied the glibc headers (such as uclibc) define __GLIBC__... > +#elif defined(__NEWLIB_H__) > + " newlib&qu...
2017 Apr 03
0
[PATCH supermin] init: Don't perform ioctl (TIOCSCTTY).
...ing this breaks bash in virt-rescue with the error: bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell Also ^C etc does not work. Removing this ioctl call fixes this. I noticed the problem because supermin's init compiled with dietlibc worked, since the dietlibc header files don't define TIOCSCTTY and hence the ioctl was not called. --- init/init.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/init/init.c b/init/init.c index e6fd0e6..aa6c25f 100644 --- a/init/init.c +++ b/init/init.c @@ -240,10 +240,6 @@ main ()...
2023 Jan 03
1
mips64el stat/time/…? problem
...return (1); #endif return (0); } The build+test was on mipsel-osuosl-03.debian.org with uname -a: > Linux mipsel-osuosl-03 5.10.0-20-loongson-3 #1 SMP PREEMPT Debian 5.10.158-2 (2022-12-13) mips64 GNU/Linux On the same machine and during the same build, the test passed with glibc, musl and dietlibc. Does this suffice to begin debugging? Thanks, //mirabilos -- ?It is inappropriate to require that a time represented as seconds since the Epoch precisely represent the number of seconds between the referenced time and the Epoch.? -- IEEE Std 1003.1b-1993 (POSIX) Section B.2.2.2
2008 Sep 17
1
[PATCH] linux/inotify.h: do not include <linux/fcntl.h> in userspace
...y.h> should not be exported. > > > > Even if userspace applications shouldn't use it directly this doesn't > > sound right: > > > > We shouldn't force all libc implementations to copy the contents into a > > private header. > > glibc and dietlibc provide <sys/inotify.h>. newlib and uclibc don't. klibc > provides <sys/inotify.h> but it depends on <linux/inotify.h> Oh.. Sorry. uclibc provides <sys/inotify.h>. So unexporting <linux/inotify.h> breaks only klibc. -- Regards, Kirill A. Shutemov + Belarus...
2016 Feb 17
8
[PATCH supermin 0/2] Allow an alternate libc to be used for init.
v1 -> v2: - If we split out the init program into a separate init/ directory, that makes it much easier to build against an alternate libc. I tried to build against uClibc, but uClibc requires an entire build chain, which looked like it was going to be a massive ballache. Rich.
2012 Jan 29
5
[PATCH 0/2 v3] mkstemp() and m68k support
...t 100% sure how to feed them to sendmail and ensure they end up with the right recipients) and are independent from each other (but for an mksh on m68k, you obviously need both). Cc the Linux/m68k arch list for the m68k patch, to review. (When this works I?m probably going to build mksh-static on dietlibc-less Debian architectures against klibc, pending testing on those platforms of course; the eglibc one is huge.) bye, //mirabilos -- Support mksh as /bin/sh and RoQA dash NOW! ? src:bash (242 (261) bugs: 0 RC, 169 (183) I&N, 73 (78) M&W, 0 F&P) ? src:dash (73 (84) bugs: 3 RC, 27 (30) I...
2016 Feb 17
0
[PATCH supermin v2 4/4] init: Debug which libc is in use.
...file changed, 9 insertions(+) diff --git a/init/init.c b/init/init.c index 25d6bc6..38392c4 100644 --- a/init/init.c +++ b/init/init.c @@ -94,6 +94,15 @@ main () print_uptime (); fprintf (stderr, "supermin: ext2 mini initrd starting up: " PACKAGE_VERSION +#if defined(__dietlibc__) + " dietlibc" +#elif defined(__GLIBC__) + " glibc" +#elif defined(__NEWLIB_H__) + " newlib" +#elif defined(__UCLIBC__) + " uClibc" +#endif "\n"); read_cmdline (); -- 2.5.0