cgo: add support for C.CString and related functions

This commit is contained in:
Ayke van Laethem
2021-11-11 16:11:08 +01:00
committed by Ron Evans
parent 6bd18af5ef
commit c31aef06ba
14 changed files with 238 additions and 3 deletions
-3
View File
@@ -13,9 +13,6 @@ func libc_write(fd int32, buf unsafe.Pointer, count uint) int
//export usleep
func usleep(usec uint) int
//export malloc
func malloc(size uintptr) unsafe.Pointer
// void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset);
// Note: off_t is defined as int64 because:
// - musl (used on Linux) always defines it as int64