diff options
author | Ammar Faizi <ammarfaizi2@gnuweeb.org> | 2022-03-29 13:17:33 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2022-04-21 03:05:46 +0300 |
commit | 544fa1a2d3e61c954ab531f2c790bc79c1745606 (patch) | |
tree | 9d671e46bf8b28b32a61cc96d61a8d9b2c4ea330 /tools/lib/api/fs/tracing_path.c | |
parent | f4738ff74c74241c2458269bb6afb64000ec1001 (diff) | |
download | linux-544fa1a2d3e61c954ab531f2c790bc79c1745606.tar.xz |
tools/nolibc/sys: Implement `mmap()` and `munmap()`
Implement mmap() and munmap(). Currently, they are only available for
architecures that have my_syscall6 macro. For architectures that don't
have, this function will return -1 with errno set to ENOSYS (Function
not implemented).
This has been tested on x86 and i386.
Notes for i386:
1) The common mmap() syscall implementation uses __NR_mmap2 instead
of __NR_mmap.
2) The offset must be shifted-right by 12-bit.
Acked-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/lib/api/fs/tracing_path.c')
0 files changed, 0 insertions, 0 deletions