- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for mach_task_self (0.35 sec)
-
src/cmd/link/testdata/dynimportvar/main.go
// Test that we can access dynamically imported variables. // We ues mach_task_self_ from darwin's system library. // Check that loading the variable from C and Go gets the // same result. //go:build darwin package main /* #include <mach/mach_init.h> unsigned int Mach_task_self(void) { return mach_task_self(); } */ import "C" import "cmd/link/testdata/dynimportvar/asm"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 19:39:32 UTC 2023 - 678 bytes - Viewed (0) -
src/runtime/cgo/gcc_signal_ios_arm64.c
// to mach_exception_handler_port_set. int ret; mach_port_t port = MACH_PORT_NULL; ret = mach_port_allocate(mach_task_self(), MACH_PORT_RIGHT_RECEIVE, &port); if (ret) { fprintf(stderr, "runtime/cgo: mach_port_allocate failed: %d\n", ret); abort(); } ret = mach_port_insert_right( mach_task_self(), port, port, MACH_MSG_TYPE_MAKE_SEND); if (ret) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 21:04:22 UTC 2024 - 6K bytes - Viewed (0) -
src/cmd/link/testdata/dynimportvar/asm/a.go
// assembly code and cgo code in the same package. //go:build darwin package asm //go:cgo_import_dynamic libc_mach_task_self_ mach_task_self_ "/usr/lib/libSystem.B.dylib" // load mach_task_self_ from assembly code
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 19:39:32 UTC 2023 - 463 bytes - Viewed (0) -
src/cmd/link/testdata/dynimportvar/asm/a_amd64.s
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin TEXT ·Mach_task_self(SB),0,$0-4 MOVQ $libc_mach_task_self_(SB), AX MOVQ (AX), AX MOVL AX, ret+0(FP)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 19:39:32 UTC 2023 - 288 bytes - Viewed (0) -
src/cmd/link/testdata/dynimportvar/asm/a_arm64.s
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin TEXT ·Mach_task_self(SB),0,$0-4 MOVD $libc_mach_task_self_(SB), R0 MOVD (R0), R0 MOVW R0, ret+0(FP)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 19:39:32 UTC 2023 - 288 bytes - Viewed (0) -
src/runtime/race/race_darwin_amd64.go
//go:cgo_import_dynamic ioctl ioctl "" //go:cgo_import_dynamic isatty isatty "" //go:cgo_import_dynamic lstat$INODE64 lstat$INODE64 "" //go:cgo_import_dynamic mach_absolute_time mach_absolute_time "" //go:cgo_import_dynamic mach_task_self_ mach_task_self_ "" //go:cgo_import_dynamic mach_timebase_info mach_timebase_info "" //go:cgo_import_dynamic mach_vm_region_recurse mach_vm_region_recurse "" //go:cgo_import_dynamic madvise madvise ""
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 19:29:22 UTC 2023 - 5.6K bytes - Viewed (0) -
src/runtime/race/race_darwin_arm64.go
//go:cgo_import_dynamic ioctl ioctl "" //go:cgo_import_dynamic isatty isatty "" //go:cgo_import_dynamic lstat lstat "" //go:cgo_import_dynamic mach_absolute_time mach_absolute_time "" //go:cgo_import_dynamic mach_task_self_ mach_task_self_ "" //go:cgo_import_dynamic mach_timebase_info mach_timebase_info "" //go:cgo_import_dynamic mach_vm_region_recurse mach_vm_region_recurse "" //go:cgo_import_dynamic madvise madvise ""
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 19:29:22 UTC 2023 - 5.6K bytes - Viewed (0) -
src/runtime/sys_darwin.go
//go:cgo_import_dynamic libc_usleep usleep "/usr/lib/libSystem.B.dylib" //go:cgo_import_dynamic libc_proc_regionfilename proc_regionfilename "/usr/lib/libSystem.B.dylib" //go:cgo_import_dynamic libc_mach_task_self_ mach_task_self_ "/usr/lib/libSystem.B.dylib"" //go:cgo_import_dynamic libc_mach_vm_region mach_vm_region "/usr/lib/libSystem.B.dylib"" //go:cgo_import_dynamic libc_mach_timebase_info mach_timebase_info "/usr/lib/libSystem.B.dylib"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 23.9K bytes - Viewed (0)