Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for _C_malloc (1.37 sec)

  1. src/net/cgo_unix_syscall.go

    	_C_struct___res_state = unix.ResState
    	_C_struct_addrinfo    = unix.Addrinfo
    	_C_struct_sockaddr    = syscall.RawSockaddr
    )
    
    func _C_free(p unsafe.Pointer) { runtime.KeepAlive(p) }
    
    func _C_malloc(n uintptr) unsafe.Pointer {
    	if n <= 0 {
    		n = 1
    	}
    	return unsafe.Pointer(&make([]byte, n)[0])
    }
    
    func _C_ai_addr(ai *_C_struct_addrinfo) **_C_struct_sockaddr { return &ai.Addr }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 23:50:56 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. src/net/cgo_unix_cgo.go

    	_C_uchar           = C.uchar
    	_C_int             = C.int
    	_C_uint            = C.uint
    	_C_socklen_t       = C.socklen_t
    	_C_struct_addrinfo = C.struct_addrinfo
    	_C_struct_sockaddr = C.struct_sockaddr
    )
    
    func _C_malloc(n uintptr) unsafe.Pointer { return C.malloc(C.size_t(n)) }
    func _C_free(p unsafe.Pointer)           { C.free(p) }
    
    func _C_ai_addr(ai *_C_struct_addrinfo) **_C_struct_sockaddr { return &ai.ai_addr }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 17:49:28 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. src/net/cgo_unix.go

    }
    
    func cgoResSearch(hostname string, rtype, class int) ([]dnsmessage.Resource, error) {
    	resStateSize := unsafe.Sizeof(_C_struct___res_state{})
    	var state *_C_struct___res_state
    	if resStateSize > 0 {
    		mem := _C_malloc(resStateSize)
    		defer _C_free(mem)
    		memSlice := unsafe.Slice((*byte)(mem), resStateSize)
    		clear(memSlice)
    		state = (*_C_struct___res_state)(unsafe.Pointer(&memSlice[0]))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/MyMem.h

      /** c-allocate with memory tracking. */
      #define CU_CALLOC(x, y)         CU_calloc((x), (y), __LINE__, __FILE__)
      /** m-allocate with memory tracking. */
      #define CU_MALLOC(x)            CU_malloc((x), __LINE__, __FILE__)
      /** Free with memory tracking. */
      #define CU_FREE(x)              CU_free((x), __LINE__, __FILE__)
      /** Reallocate with memory tracking. */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/CaseSensitiveVfsRelativePathTest.groovy

                ["Bad", "c", "AB"],
                ["Bad", "cA", "AB"],
                ["cpuid.h", "cross-stdarg.h", "emmintrin.h", "f16cintrin.h", "float.h", "iso646.h", "ISO_Fortran_binding.h", "lwpintrin.h", "lzcntintrin.h", "mm3dnow.h", "mm_malloc.h", "mmintrin.h", "movdirintrin.h", "mwaitxintrin.h", "nmmintrin.h", "omp.h", "openacc.h", "pconfigintrin.h", "stddef.h", "stdfix.h", "stdint-gcc.h", "stdint.h", "stdnoreturn.h", "tbmintrin.h", "tgmath.h", "tmmintrin.h", "unwind.h"],
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  6. src/cmd/cgo/ast.go

    	if goname == "errno" {
    		error_(sel.Pos(), "cannot refer to errno directly; see documentation")
    		return
    	}
    	if goname == "_CMalloc" {
    		error_(sel.Pos(), "cannot refer to C._CMalloc; use C.malloc")
    		return
    	}
    	if goname == "malloc" {
    		goname = "_CMalloc"
    	}
    	name := f.Name[goname]
    	if name == nil {
    		name = &Name{
    			Go: goname,
    		}
    		f.Name[goname] = name
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/google/pprof/profile/legacy_profile.go

    	`free`,
    	`memalign`,
    	`do_memalign`,
    	`(__)?posix_memalign`,
    	`pvalloc`,
    	`valloc`,
    	`realloc`,
    
    	// TC malloc.
    	`tcmalloc::.*`,
    	`tc_calloc`,
    	`tc_cfree`,
    	`tc_malloc`,
    	`tc_free`,
    	`tc_memalign`,
    	`tc_posix_memalign`,
    	`tc_pvalloc`,
    	`tc_valloc`,
    	`tc_realloc`,
    	`tc_new`,
    	`tc_delete`,
    	`tc_newarray`,
    	`tc_deletearray`,
    	`tc_new_nothrow`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 32.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/call.go

    			pkg := pname.imported
    
    			var exp Object
    			funcMode := value
    			if pkg.cgo {
    				// cgo special cases C.malloc: it's
    				// rewritten to _CMalloc and does not
    				// support two-result calls.
    				if sel == "malloc" {
    					sel = "_CMalloc"
    				} else {
    					funcMode = cgofunc
    				}
    				for _, prefix := range cgoPrefixes {
    					// cgo objects are part of the current package (in file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  9. src/go/types/call.go

    			pkg := pname.imported
    
    			var exp Object
    			funcMode := value
    			if pkg.cgo {
    				// cgo special cases C.malloc: it's
    				// rewritten to _CMalloc and does not
    				// support two-result calls.
    				if sel == "malloc" {
    					sel = "_CMalloc"
    				} else {
    					funcMode = cgofunc
    				}
    				for _, prefix := range cgoPrefixes {
    					// cgo objects are part of the current package (in file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  10. src/cmd/cgo/out.go

    }
    
    // fixGo converts the internal Name.Go field into the name we should show
    // to users in error messages. There's only one for now: on input we rewrite
    // C.malloc into C._CMalloc, so change it back here.
    func fixGo(name string) string {
    	if name == "_CMalloc" {
    		return "malloc"
    	}
    	return name
    }
    
    var isBuiltin = map[string]bool{
    	"_Cfunc_CString":   true,
    	"_Cfunc_CBytes":    true,
    	"_Cfunc_GoString":  true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
Back to top