[Buildroot] [PATCH 4/4] systemd: uclibc now has posix_fallocate()
Thomas De Schampheleire
patrickdepinguin at gmail.com
Mon Dec 9 08:27:48 UTC 2013
Hi,
On Mon, Dec 9, 2013 at 1:07 AM, Shawn Landden <shawn at churchofgit.com> wrote:
> uClibc commit 5643900913f64c00f1c29589145
>
> Signed-off-by: Shawn Landden <shawn at churchofgit.com>
> ---
> package/systemd/systemd-uclibc-fix.patch | 18 ------------------
> 1 file changed, 18 deletions(-)
>
> diff --git a/package/systemd/systemd-uclibc-fix.patch b/package/systemd/systemd-uclibc-fix.patch
> index 9a20845..08a5d3d 100644
> --- a/package/systemd/systemd-uclibc-fix.patch
> +++ b/package/systemd/systemd-uclibc-fix.patch
> @@ -39,21 +39,3 @@ Index: systemd-44/src/macro.h
> #define _printf_attr_(a,b) __attribute__ ((format (printf, a, b)))
> #define _sentinel_ __attribute__ ((sentinel))
> #define _noreturn_ __attribute__((noreturn))
> -Index: systemd-44/src/journal/journal-file.c
> -===================================================================
> ---- systemd-44.orig/src/journal/journal-file.c
> -+++ systemd-44/src/journal/journal-file.c
> -@@ -229,11 +229,13 @@
> - }
> - }
> -
> -+#ifndef __UCLIBC__
> - /* Note that the glibc fallocate() fallback is very
> - inefficient, hence we try to minimize the allocation area
> - as we can. */
> - if (posix_fallocate(f->fd, old_size, new_size - old_size) < 0)
> - return -errno;
> -+#endif
> -
> - if (fstat(f->fd, &f->last_stat) < 0)
> - return -errno;
> --
This clearly requires a toolchain with a sufficiently recent uClibc.
I'm not familiar with our strategy here, so I'm adding ThomasP to this
thread...
Best regards,
Thomas
More information about the buildroot
mailing list