gcc/libgo/go
Ian Lance Taylor efecb298d8 runtime: use a C function to call mmap
The final argument to mmap, of type off_t, varies.
In CL 445375 we changed it to always use the C off_t type,
but that broke 32-bit big-endian Linux systems.  On those systems,
using the C off_t type requires calling the mmap64 function.
In C this is automatically handled by the <sys/mman.h> file.
In Go, we would have to change the magic //extern comment to
call mmap64 when appropriate.  Rather than try to get that right,
we instead go through a C function that uses C implicit type
conversions to pick the right type.

Fixes PR go/110297

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/504415
2023-06-20 09:55:58 -07:00
..
archive libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
bufio libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
builtin libgo: update to Go1.18rc1 release 2022-02-18 13:12:08 -08:00
bytes libgo: update to Go1.18rc1 release 2022-02-18 13:12:08 -08:00
cmd cmd/cgo: add and use runtime/cgo.Incomplete instead of //go:notinheap 2022-09-22 06:28:19 -07:00
compress libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
container libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
context libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
crypto libgo: update to Go1.18rc1 release 2022-02-18 13:12:08 -08:00
database/sql libgo: update to Go1.18rc1 release 2022-02-18 13:12:08 -08:00
debug libgo: update to Go1.18rc1 release 2022-02-18 13:12:08 -08:00
embed libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
encoding libgo: update to final Go 1.18 release 2022-03-16 13:52:32 -07:00
errors libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
expvar libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
flag libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
fmt libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
go libgo: update to final Go 1.18 release 2022-03-16 13:52:32 -07:00
golang.org/x libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
hash libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
html libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
image libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
index/suffixarray libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
internal libgo/testsuite: add benchmarks and examples to list 2023-06-16 12:29:04 -07:00
io libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
log libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
math libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
mime mime: remove test ordering dependency 2023-04-07 14:07:10 -07:00
net libgo: update to final Go 1.18 release 2022-03-16 13:52:32 -07:00
os libgo: fix AIX build for the Go1.18 update 2022-03-04 10:19:50 -08:00
path libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
plugin libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
reflect libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
regexp libgo: update to Go1.18rc1 release 2022-02-18 13:12:08 -08:00
runtime runtime: use a C function to call mmap 2023-06-20 09:55:58 -07:00
sort libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
strconv libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
strings libgo: update to final Go 1.18 release 2022-03-16 13:52:32 -07:00
sync libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
syscall syscall: add prlimit 2023-05-11 09:17:48 -07:00
testdata
testing libgo: update to Go1.18rc1 release 2022-02-18 13:12:08 -08:00
text libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
time libgo: update to Go1.18rc1 release 2022-02-18 13:12:08 -08:00
unicode libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
vendor libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
go.mod libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00