linux-syscall-support:master

Last commit made on 2020-08-13
Get this branch:
git clone -b master https://git.launchpad.net/linux-syscall-support

Branch merges

Branch information

Name:
master
Repository:
lp:linux-syscall-support

Recent commits

29f7c7e... by Chris Palmer <email address hidden>

Add support for `getrandom`.

And a simple test.

Bug: linux-syscall-support:31
Change-Id: Ifea152cdea89183f69d881807f3bd60da56a4513
Reviewed-on: https://chromium-review.googlesource.com/c/linux-syscall-support/+/2351965
Reviewed-by: Mike Frysinger <email address hidden>

851f3a5... by Chris Palmer <email address hidden>

Revert "Add support for `getrandom`."

This reverts commit d0f1d69ba32ab86b3ea55c534f2fa8bd3e5f00ba.

Reason for revert: Breaks build in Chromium and elsewhere:

  src/third_party/lss/linux_syscall_support.h:3682:7: error: use of undeclared identifier '__NR_ssize_t'

Change-Id: I227350d8fa9405e7b65bbeee48ae72754b5dfad0
Reviewed-on: https://chromium-review.googlesource.com/c/linux-syscall-support/+/2212610
Reviewed-by: Mike Frysinger <email address hidden>

d0f1d69... by Chris Palmer <email address hidden>

Add support for `getrandom`.

And a simple test.

Bug: linux-syscall-support:31
Change-Id: I994549c5d1eae028cad41496387d763eb00adddf
Reviewed-on: https://chromium-review.googlesource.com/c/linux-syscall-support/+/2209720
Reviewed-by: Mike Frysinger <email address hidden>

be2d5a8... by Joshua Peraza <email address hidden>

Don't clobber esp

Including esp in the clobbers list is deprecated and
can silently trigger code generation errors (observed
with Android ndk r20 clang).

Fortunately, all the asm templates properly restore
esp, so there's no need to include it in clobbers.

Also add some tests for sys_rt_sigaction.

Bug: https://gcc.gnu.org/PR52813
Bug: crashpad:265
Change-Id: I8317202c115c28ce49a0cb05949babc43b90a274
Reviewed-on: https://chromium-review.googlesource.com/c/linux-syscall-support/+/2151097
Reviewed-by: Mike Frysinger <email address hidden>

fd00dbb... by Michael Forney

Avoid conflict with getdents64 defined by libc

When dirent.h is included before linux_syscall_support.h (for example
in google-breakpad), getdents64 might be defined as a macro to
getdents. To prevent this unintended macro replacement, save and
undefine getdents64 at the beginning of the header, and restore at
the end.

Change-Id: Ia02cd51fa453a61103270a5ad0025f65b63e2944
Reviewed-on: https://chromium-review.googlesource.com/c/linux-syscall-support/+/2097180
Reviewed-by: Mike Frysinger <email address hidden>

171a36a... by Mike Frysinger <email address hidden>

futex: change to 6 args

This syscall takes up to 6 arguments, so change it from syscall4 to
syscall6 so people can pass those extra args along.

Change-Id: Ia78458a35b43433ddadd2c1eebfbf33d830b4e35
Reviewed-on: https://chromium-review.googlesource.com/c/linux-syscall-support/+/1436125
Reviewed-by: Mark Seaborn <email address hidden>

f70e2f1... by Michael Forney

Avoid conflict with pread64/pwrite64 defined by libc

musl libc defines these to pread and pwrite respectively, since its
off_t is always 64-bit. This causes unintended macro replacement
when defining the pread64/pwrite64 wrappers.

To prevent this, save the macro definitions at the start of the
header and restore them at the end. This is what is already done
to work around the same issue on Android NDK.

Bug: linux-syscall-support:23
Change-Id: I0a91ba83fb172818a80a3584302f2c97966ec2e0
Reviewed-on: https://chromium-review.googlesource.com/c/linux-syscall-support/+/2015819
Reviewed-by: Mike Frysinger <email address hidden>

7bde79c... by Joshua Peraza <email address hidden>

arm, ppc, mips32: fix fallocate and add tests

Previously, offset and length were truncated to 32-bits.

Change-Id: I5456a33921ee05f761945da225db0dabd7c12222
Reviewed-on: https://chromium-review.googlesource.com/c/linux-syscall-support/+/1953468
Reviewed-by: Mike Frysinger <email address hidden>

726d71e... by Joshua Peraza <email address hidden>

Add sigtimedwait and sigprocmask wrappers

The existing sigprocmask wrappers are consolidated into a single
definition using rt_sigprocmask and no longer checks for ENOSYS.
These system calls should exist on Linux 2.2+. Support for older
kernels will require callers to handle ENOSYS themselves.

Bug: crashpad:265
Change-Id: I25bc8c811c2f93aa20ff64fe3bacdcd017ff10c6
Reviewed-on: https://chromium-review.googlesource.com/c/linux-syscall-support/+/1914504
Reviewed-by: Mike Frysinger <email address hidden>

8048ece... by Khem Raj

Do not add stack pointer to clobber list

It was being ignored until now when gcc 9.0 became capable
of flagging these silent ignore via [1].

We weren't actually clobbering the stack pointers here
so it should not cause change in behavior.

[1] https://gcc.gnu.org/PR52813

Signed-off-by: Khem Raj <email address hidden>
Change-Id: I1fd7b08087dce47af194eb8f5490e742bda01781
Reviewed-on: https://chromium-review.googlesource.com/c/1390160
Reviewed-by: Mike Frysinger <email address hidden>