1
0
mirror of https://github.com/golang/go synced 2024-11-17 07:54:41 -07:00
go/misc/cgo/test
James Bardin 5a34472d74 cmd/cgo: add C.CBytes
Add a C.CBytes function to copy a Go byte slice into C memory. This
returns an unsafe.Pointer, since that is what needs to be passed to
C.free, and the data is often opaque bytes anyway.

Fixes #14838

Change-Id: Ic7bc29637eb6f1f5ee409b3898c702a59833a85a
Reviewed-on: https://go-review.googlesource.com/20762
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-03-16 23:22:10 +00:00
..
gcc68255 cmd/go: always use --whole-archive for gccgo packages 2015-11-10 20:22:13 +00:00
issue8828
issue9026
issue9400 cmd/internal/obj, runtime: add NOFRAME flag to suppress stack frame set up on ppc64x 2015-10-18 22:13:30 +00:00
issue9510a cmd/link, cmd/go, cmd/dist: use copy of libgcc.a for internal linking 2015-11-14 18:56:17 +00:00
issue9510b cmd/link, cmd/go, cmd/dist: use copy of libgcc.a for internal linking 2015-11-14 18:56:17 +00:00
align.go
api.go
backdoor.go
basic.go
buildid_linux.go misc/cgo/test: fix go vet warnings 2015-10-13 17:53:20 +00:00
callback_c_gc.c runtime: delete cgo_allocate 2015-04-17 01:30:47 +00:00
callback_c_gccgo.c runtime: delete cgo_allocate 2015-04-17 01:30:47 +00:00
callback_c.c misc/cgo/test: rewrite windows version of mysleep 2016-03-02 23:33:32 +00:00
callback.go cmd/cgo: make the char * pointer in GoString const 2015-11-29 16:55:40 +00:00
cflags.go all: link to https instead of http 2015-07-11 14:36:33 +00:00
cgo_linux_test.go runtime: don't always unblock all signals 2015-05-22 20:24:08 +00:00
cgo_test.go cmd/cgo: add C.CBytes 2016-03-16 23:22:10 +00:00
cgo_unix_test.go runtime: adjust gsignal stack to current signal stack 2015-12-24 17:00:04 +00:00
cthread_unix.c misc/cgo: add various solaris build lines 2015-05-06 11:38:08 +00:00
cthread_windows.c
cthread.go
duplicate_symbol.go
env.go misc/cgo/test: fix go vet warnings 2015-10-13 17:53:20 +00:00
exports.go
fpvar.go
gcc68255.go cmd/go: always use --whole-archive for gccgo packages 2015-11-10 20:22:13 +00:00
helpers.go
issue1222.go
issue1328.go
issue1560.go
issue1635.go cmd/cgo: ignore vars with no name or type if they have a AttrSpecification 2015-11-23 04:04:07 +00:00
issue2462.go
issue3250.go
issue3250w.go
issue3261.go
issue3729.go
issue3729w.go
issue3741.go
issue3775.go
issue3945.go all: link to https instead of http 2015-07-11 14:36:33 +00:00
issue4029.c cmd/cgo: put the real C function in the dynamic symbol table 2015-11-20 00:19:07 +00:00
issue4029.go cmd/cgo: put the real C function in the dynamic symbol table 2015-11-20 00:19:07 +00:00
issue4029w.go
issue4054a.go
issue4054b.go
issue4273.c
issue4273b.c
issue4339.c
issue4339.go
issue4339.h
issue4417.go
issue4857.go
issue5227.go
issue5242.go
issue5337.go
issue5337w.go
issue5548_c.c
issue5548.go
issue5603.go
issue5740.go
issue5740a.c
issue5740b.c
issue5986.go
issue6128.go
issue6390.go
issue6472.go
issue6506.go
issue6612.go
issue6833_c.c
issue6833.go
issue6997_linux.c
issue6997_linux.go all: use one 'l' when cancelling everywhere except Solaris 2015-09-11 18:31:51 +00:00
issue7234_test.go all: link to https instead of http 2015-07-11 14:36:33 +00:00
issue7560.go
issue7665.go misc/cgo/test: fix go vet warnings 2015-10-13 17:53:20 +00:00
issue7786.go
issue7978.go runtime: make NumGoroutine and Stack agree not to include system goroutines 2016-01-13 01:46:01 +00:00
issue8092.go
issue8148.go
issue8331.h
issue8331a.go
issue8331b.go
issue8428.go cmd/cgo: discard trailing zero-sized fields in a non-empty C struct 2015-07-30 15:55:25 +00:00
issue8441.go
issue8517_windows.c
issue8517_windows.go
issue8517.go
issue8694.go cmd/cgo: fix C.complexfloat and C.complexdouble 2015-11-25 23:06:59 +00:00
issue8811.c
issue8811.go
issue8828.go
issue8945.go cmd/cgo: fix a problem with 'go build -compiler gccgo' 2015-06-29 15:15:59 +00:00
issue9026.go
issue9400_linux.go
issue9510.go cmd/link, cmd/go, cmd/dist: use copy of libgcc.a for internal linking 2015-11-14 18:56:17 +00:00
issue9557.go
issue10303.go misc/cgo/test: disable Test10303 for gccgo 2015-11-11 01:02:35 +00:00
issue11925.go cmd/cgo: discard trailing zero-sized fields in a non-empty C struct 2015-07-30 15:55:25 +00:00
issue12030.go runtime/cgo: explicitly link msvcrt on windows 2015-09-12 08:34:52 +00:00
issue13402.go cmd/cgo: fix C.complexfloat and C.complexdouble 2015-11-25 23:06:59 +00:00
issue13930.go cmd/cgo: support multiple-value special form in VarDecl 2016-02-18 20:12:20 +00:00
issue14838.go cmd/cgo: add C.CBytes 2016-03-16 23:22:10 +00:00
setgid_linux.go runtime: unblock special glibc signals on each thread 2015-09-14 21:59:54 +00:00
sigaltstack.go misc/cgo/test: disable sigaltstack test on darwin/386 2016-01-27 22:27:05 +00:00
sigprocmask_linux.c misc/cgo/test: fix build for CC=clang 2015-05-22 22:54:24 +00:00
sigprocmask_linux.go runtime: don't always unblock all signals 2015-05-22 20:24:08 +00:00