public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Cc: libc-alpha@sourceware.org
Subject: Re: [PATCH v4 3/3] csu: Implement and use _dl_early_allocate during static startup
Date: Mon, 09 May 2022 19:08:32 +0200	[thread overview]
Message-ID: <87sfpi8whb.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <b8bd67ad-4a3f-bc91-287d-080cf1a617c0@linaro.org> (Adhemerval Zanella's message of "Mon, 9 May 2022 13:52:54 -0300")

* Adhemerval Zanella:

> The idea is to allow __mmap64 use the mmap64_call and have the syscall
> logic in one place.  Something like:
>
> void *
> __mmap64 (void *addr, size_t len, int prot, int flags, int fd, off64_t offset)
> {
>   MMAP_CHECK_PAGE_UNIT ();
>
>   if (offset & MMAP_OFF_MASK)
>     return (void *) INLINE_SYSCALL_ERROR_RETURN_VALUE (EINVAL);
>
>   MMAP_PREPARE (addr, len, prot, flags, fd, offset);
>   return mmap64_call (addr, len, prot, flags, fd, offset);
> }

With this, a definition of mmap64_call still needs a working definition
of MMAP2_PAGE_UNIT for mmap2 targets, I think.

Thanks,
Florian


  reply	other threads:[~2022-05-09 17:08 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-05 15:06 [PATCH v4 1/3] ia64: Always define IA64_USE_NEW_STUB as a flag macro Florian Weimer
2022-05-05 15:07 ` [PATCH v4 2/3] Linux: Implement a useful version of _startup_fatal Florian Weimer
2022-05-05 15:28   ` Andreas Schwab
2022-05-05 15:43     ` Florian Weimer
2022-05-05 17:29   ` Adhemerval Zanella
2022-05-05 15:08 ` [PATCH v4 3/3] csu: Implement and use _dl_early_allocate during static startup Florian Weimer
2022-05-05 17:48   ` Adhemerval Zanella
2022-05-05 18:03     ` Florian Weimer
2022-05-05 18:25       ` Adhemerval Zanella
2022-05-06 10:00         ` Florian Weimer
2022-05-06 13:04           ` Adhemerval Zanella
2022-05-06 13:19   ` Adhemerval Zanella
2022-05-09 16:10     ` Florian Weimer
2022-05-09 16:52       ` Adhemerval Zanella
2022-05-09 17:08         ` Florian Weimer [this message]
2022-05-09 17:37           ` Adhemerval Zanella
2022-05-05 17:28 ` [PATCH v4 1/3] ia64: Always define IA64_USE_NEW_STUB as a flag macro Adhemerval Zanella

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sfpi8whb.fsf@oldenburg.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=adhemerval.zanella@linaro.org \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).