29f7c7e...
by
Chris Palmer <email address hidden>
on 2020-08-13
Add support for `getrandom`.
And a simple test.
Bug: linux-syscall- support: 31
Change-Id: Ifea152cdea8918 3f69d881807f3bd 60da56a4513
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>
on 2020-05-21
Revert "Add support for `getrandom`."
This reverts commit d0f1d69ba32ab86 b3ea55c534f2fa8 bd3e5f00ba.
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: I227350d8fa9405 e7b65bbeee48ae7 2754b5dfad0
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>
on 2020-05-20
Add support for `getrandom`.
And a simple test.
Bug: linux-syscall- support: 31
Change-Id: I994549c5d1eae0 28cad41496387d7 63eb00adddf
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>
on 2020-04-15
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: I8317202c115c28 ce49a0cb05949ba bc43b90a274
Reviewed-on: https:/ /chromium- review. googlesource. com/c/linux- syscall- support/ +/2151097
Reviewed-by: Mike Frysinger <email address hidden>
fd00dbb...
by
Michael Forney
on 2020-03-10
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: Ia02cd51fa453a6 1103270a5ad0025 f65b63e2944
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>
on 2019-01-27
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: Ia78458a35b4343 3ddadd2c1eebfbf 33d830b4e35
Reviewed-on: https:/ /chromium- review. googlesource. com/c/linux- syscall- support/ +/1436125
Reviewed-by: Mark Seaborn <email address hidden>
f70e2f1...
by
Michael Forney
on 2020-01-23
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: I0a91ba83fb1728 18a80a3584302f2 c97966ec2e0
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>
on 2019-12-05
arm, ppc, mips32: fix fallocate and add tests
Previously, offset and length were truncated to 32-bits.
Change-Id: I5456a33921ee05 f761945da225db0 dabd7c12222
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>
on 2019-11-13
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: I25bc8c811c2f93 aa20ff64fe3bacd cd017ff10c6
Reviewed-on: https:/ /chromium- review. googlesource. com/c/linux- syscall- support/ +/1914504
Reviewed-by: Mike Frysinger <email address hidden>
8048ece...
by
Khem Raj
on 2018-12-23
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: I1fd7b08087dce4 7af194eb8f5490e 742bda01781
Reviewed-on: https:/ /chromium- review. googlesource. com/c/1390160
Reviewed-by: Mike Frysinger <email address hidden>