Justus Winter, le Fri 23 May 2014 09:48:35 +0200, a écrit :
> It is an optimization. This way we can use just 1 atomic operation
> when trivfs_peropen_destroy_hook is not used, and 3 when it is. If we
> do it like you described, we need two in any case.
Then you could rather use something like:
Justus Winter, le Fri 23 May 2014 08:54:25 +0200, a écrit :
> + for (i = 0; i < cache_info_count + 1; i++)
> +{
> + size_t l = strlen (infos[i]);
> + memcpy (p, infos[i], l);
The length could be stored too, to avoid having to run strlen again.
Samuel
Il 23.05.2014 08:54 Justus Winter ha scritto:
Add a node 'slabinfo' to the root directory that contains information
about the slab allocator used in GNU Mach.
The formatting code has been taken from Richard Braun's standalone
client available here:
git://darnassus.sceen.net/rbraun/slabinfo.git
* utils/mount.c (parse_opt): Add -B/--bind/--firmlink/-o bind mount
options. (do_mount): Do not pass bind mount option to settrans, set
firmlink fstype. (main): Likewise.
---
utils/mount.c | 38 +++---
1 file changed, 31 insertions(+), 7 deletions(-)
diff --g
Quoting Pino Toscano (2014-05-24 11:03:48)
> Il 23.05.2014 08:54 Justus Winter ha scritto:
> > Add a node 'slabinfo' to the root directory that contains information
> > about the slab allocator used in GNU Mach.
> >
> > The formatting code has been taken from Richard Braun's standalone
> > client a
Add a node 'slabinfo' to the root directory that contains information
about the slab allocator used in GNU Mach.
The formatting code has been taken from Richard Braun's standalone
client available here:
git://darnassus.sceen.net/rbraun/slabinfo.git
* rootdir.c (rootdir_gc_slabinfo): New function
Justus Winter, le Sat 24 May 2014 12:45:40 +0200, a écrit :
> > What about using FILE + open_memstream to ease the output?
>
> Much nicer, indeed! Thanks for introducing me to this gem :)
The great thing about working in userland ;)
Samuel
This patch removes configure checks that have long been unneeded.
OK to apply?
Ludo’.
>From a8b1c2e3c5cd89f26b6856c63fd3ba625a36ad54 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?=
Date: Sun, 25 May 2014 01:06:50 +0200
Subject: [PATCH] build: Remove checks for 'getgrouplist' a