gcc/libgo/go/runtime
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
..
asan
cgo cmd/cgo: add and use runtime/cgo.Incomplete instead of //go:notinheap 2022-09-22 06:28:19 -07:00
debug
internal
metrics
msan
pprof
testdata
trace
abi_test.go
alg.go
asan0.go
atomic_pointer.go
auxv_none.go
callers_test.go
cgo_gccgo.go
cgocall.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
cgocheck.go
chan.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
chan_test.go
chanbarrier_test.go
checkptr.go libgo: update to Go1.17rc2 2021-08-12 20:23:07 -07:00
checkptr_test.go
closure_test.go
compiler.go libgo: update to go1.7rc3 2016-07-22 18:15:38 +00:00
complex_test.go
conv_wasm_test.go
cpuflags_arm64.go
cpuprof.go
cputicks.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
crash_cgo_test.go
crash_gccgo_test.go libgo: update to Go 1.11 2018-09-24 21:46:21 +00:00
crash_test.go
crash_unix_test.go
debug.go
debuglog.go
debuglog_off.go
debuglog_on.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
debuglog_test.go
defer_test.go
defs_windows_arm64.go
env_posix.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
env_test.go
eqtype.go
eqtype_aix_gccgo.go
error.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
example_test.go
export_debuglog_test.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
export_linux_test.go
export_mmap_test.go
export_pipe2_test.go
export_pipe_test.go
export_test.go libgo: update to Go1.18rc1 release 2022-02-18 13:12:08 -08:00
export_unix_test.go
export_windows_test.go
extern.go
fastlog2.go
fastlog2_test.go
fastlog2table.go
ffi.go runtime: synchronize empty struct field handling 2022-09-27 09:28:39 -07:00
float.go
float_test.go
gc_test.go
gcinfo_test.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
hash32.go
hash64.go
hash_test.go
heapdump.go
histogram.go
histogram_test.go
iface.go
iface_test.go
lfstack.go libgo: update to Go 1.11 2018-09-24 21:46:21 +00:00
lfstack_32bit.go
lfstack_64bit.go
lfstack_test.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
libfuzzer.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
lock_futex.go
lock_js.go
lock_sema.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
lockrank.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
lockrank_off.go
lockrank_on.go
lockrank_test.go
malloc.go
malloc_test.go
map.go
map_benchmark_test.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
map_fast32.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
map_fast64.go
map_faststr.go
map_test.go
mbarrier.go
mbitmap.go
mcache.go
mcentral.go
mcheckmark.go
mem_gccgo.go
memmove_linux_amd64_test.go
memmove_test.go libgo: update to Go1.16beta1 release 2020-12-30 15:13:24 -08:00
metrics.go
metrics_test.go
mfinal.go
mfinal_test.go
mfixalloc.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
mgc.go
mgc_gccgo.go
mgcmark.go
mgcpacer.go
mgcpacer_test.go
mgcscavenge.go
mgcscavenge_test.go
mgcsweep.go
mgcwork.go
mheap.go
mkfastlog2table.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
mkpreempt.go
mksizeclasses.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
mpagealloc.go
mpagealloc_32bit.go
mpagealloc_64bit.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
mpagealloc_test.go
mpagecache.go
mpagecache_test.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
mpallocbits.go
mpallocbits_test.go
mprof.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
mranges.go
mranges_test.go
msan0.go
msize.go
mspanset.go
mstats.go
mwbbuf.go
nbpipe_pipe.go
nbpipe_pipe2.go
nbpipe_test.go
net_plan9.go compiler, libgo: change mangling scheme 2020-11-20 12:44:35 -08:00
netpoll.go
netpoll_aix.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
netpoll_epoll.go
netpoll_fake.go
netpoll_hurd.go
netpoll_kqueue.go
netpoll_os_test.go
netpoll_solaris.go
netpoll_stub.go
netpoll_windows.go
norace_test.go
numcpu_freebsd_test.go
os3_solaris.go
os_aix.go
os_darwin.go
os_dragonfly.go
os_freebsd.go
os_freebsd_arm64.go
os_gccgo.go
os_hurd.go
os_illumos.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
os_js.go
os_linux.go
os_linux_arm.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
os_linux_arm64.go
os_linux_mips64x.go
os_linux_mipsx.go
os_linux_noauxv.go
os_linux_ppc64x.go
os_linux_s390x.go
os_netbsd.go
os_netbsd_arm64.go
os_only_solaris.go
os_openbsd.go
os_solaris.go
os_windows_arm.go
os_windows_arm64.go
panic.go
panic32.go
panic_test.go libgo: update to go1.15rc1 2020-08-01 11:21:40 -07:00
preempt.go libgo: update to Go1.16beta1 release 2020-12-30 15:13:24 -08:00
preempt_nonwindows.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
print.go
proc.go
proc_runtime_test.go
proc_test.go
profbuf.go
profbuf_test.go
proflabel.go
race0.go
rand_test.go
rdebug.go
relax_stub.go
runtime-lldb_test.go
runtime.go
runtime1.go
runtime2.go
runtime_linux_test.go
runtime_mmap_test.go
runtime_test.go
runtime_unix_test.go
rwmutex.go libgo: update to go1.15rc1 2020-08-01 11:21:40 -07:00
rwmutex_test.go
select.go libgo: update to Go1.17rc2 2021-08-12 20:23:07 -07:00
sema.go
sema_test.go libgo: update to go1.15rc1 2020-08-01 11:21:40 -07:00
semasleep_test.go
signal_gccgo.go runtime: add special handling for signal 34 2022-04-18 15:16:35 -07:00
signal_unix.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
signal_windows_test.go
sigqueue.go
sigqueue_note.go
sizeclasses.go
sizeof_test.go
slice.go
slice_test.go libgo: update to Go1.16beta1 release 2020-12-30 15:13:24 -08:00
stack_test.go
string.go
string_test.go
stubs.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
stubs2.go libgo: restore building on Solaris 2022-02-16 12:20:10 -08:00
stubs3.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
stubs_linux.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
stubs_nonlinux.go
symtab.go
symtab_test.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
sys_wasm.go
time.go
time_fake.go
time_nofake.go
time_test.go
timeasm.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
timestub.go
timestub2.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
tls_stub.go libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
tls_windows_amd64.go
trace.go
traceback_gccgo.go
traceback_test.go
type.go
typekind.go
utf8.go
write_err.go
write_err_android.go