- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 55 for chars (0.05 sec)
-
src/cmd/cgo/internal/test/issue4029.c
// the opaque handle as a Go uintptr rather than a Go pointer to avoid // garbage collector confusion. See issue 23663. uintptr_t dlopen4029(char* name, int flags) { return (uintptr_t)(dlopen(name, flags)); } uintptr_t dlsym4029(uintptr_t handle, char* name) { return (uintptr_t)(dlsym((void*)(handle), name)); } int dlclose4029(uintptr_t handle) { return dlclose((void*)(handle)); }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 04 15:41:19 UTC 2023 - 781 bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/stackswitch.c
static ucontext_t uctx_save, uctx_switch; extern void stackSwitchCallback(void); char *stack2; static void *stackSwitchThread(void *arg) { // Simple test: callback works from the normal system stack. stackSwitchCallback(); // Next, verify that switching stacks doesn't break callbacks. char *stack1 = malloc(STACK_SIZE); if (stack1 == NULL) { perror("malloc"); exit(1); }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 26 15:17:33 UTC 2023 - 3.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typeparams/coretype.go
// "the type chan E if T contains only bidirectional channels, or the type chan<- E or // <-chan E depending on the direction of the directional channels present." for chans := identical; chans < len(terms); chans++ { curr, ok := terms[chans].Type().Underlying().(*types.Chan) if !ok { return nil } if !types.Identical(ch.Elem(), curr.Elem()) { return nil // channel elements are not identical. }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.3K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/msan7.go
// It is big enough to be passed on stack in C ABI (and least // on AMD64). typedef struct { char b; uintptr_t x, y; } T; extern void F(T); // Use weak as a hack to permit defining a function even though we use export. void CF(int x) __attribute__ ((weak)); void CF(int x) { T *t = malloc(sizeof(T)); t->b = (char)x; t->x = x; t->y = x; F(*t); } */ import "C" //export F
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 834 bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main3.c
#include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <sched.h> #include <unistd.h> #include <pthread.h> #include "libgo3.h" static void die(const char* msg) { perror(msg); exit(EXIT_FAILURE); } static volatile sig_atomic_t sigioSeen; static void ioHandler(int signo, siginfo_t* info, void* ctxt) { sigioSeen = 1; }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 3.9K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/libfuzzer2.c
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 240 bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testdata/map2.go
// Copyright 2019 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. // This file is like map.go, but instead of importing chans, it contains // the necessary functionality at the end of the file. // Package orderedmap provides an ordered map, implemented as a binary tree. package orderedmap // Map is an ordered map. type Map[K, V any] struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 01 12:49:49 UTC 2023 - 3.4K bytes - Viewed (0) -
src/internal/types/testdata/check/map1.go
// Copyright 2019 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. // This file is like map.go2, but instead if importing chans, it contains // the necessary functionality at the end of the file. // Package orderedmap provides an ordered map, implemented as a binary tree. package orderedmap // Map is an ordered map. type Map[K, V any] struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 02:58:32 UTC 2022 - 3.4K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue5548_c.c
// Copyright 2013 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. #include "_cgo_export.h" static void clobber_stack() { volatile char a[1024]; int i; for(i = 0; i < sizeof a; i++) a[i] = 0xff; } static int call_go() { GoString s; s.p = "test"; s.n = 4; return issue5548FromC(s, 42); } int issue5548_in_c() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 454 bytes - Viewed (0) -
src/runtime/cgo/gcc_fatalf.c
//go:build aix || (!android && linux) || dragonfly || freebsd || netbsd || openbsd || solaris #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include "libcgo.h" void fatalf(const char* format, ...) { va_list ap; fprintf(stderr, "runtime/cgo: "); va_start(ap, format); vfprintf(stderr, format, ap); va_end(ap); fprintf(stderr, "\n"); abort();
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 14:57:16 UTC 2023 - 526 bytes - Viewed (0)