Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAAYwqPtoB9GN9SoUFyf3iDSn=ZrO=vgmwKf-NdYUz_8dE_SYPA@mail.gmail.com>
Date: Thu, 23 Jul 2026 13:34:02 -0700
From: Jake Adamson <jakeadamson@...gle.com>
To: musl@...ts.openwall.com
Subject: Question: number of arguments of musl's membarrier does not match
 Linux syscall

Hi I'm adding membarrier() to Android's Bionic and I noticed that
there are a different number of arguments in Musl than in Linux’s
system call. Is there a reason for that and is there any nuisance that
I should be thinking about when adding it? And do you plan on adding
the cpu_id argument?

Linux: int cmd, unsigned int flags, int cpu_id
https://man7.org/linux/man-pages/man2/membarrier.2.html


Musl: int cmd, int flags
https://git.musl-libc.org/cgit/musl/tree/src/linux/membarrier.c

Jake Adamson
Android Native Tools and Libraries, Software Engineer

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.