Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 201 for strerror (0.21 sec)

  1. src/runtime/cgo/gcc_linux_amd64.c

    // Copyright 2009 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 <pthread.h>
    #include <errno.h>
    #include <string.h> // strerror
    #include <signal.h>
    #include <stdlib.h>
    #include "libcgo.h"
    #include "libcgo_unix.h"
    
    static void* threadentry(void*);
    static void (*setg_gcc)(void*);
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:06:46 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testcarchive/testdata/main4.c

    	if (i != 0) {
    		fprintf(stderr, "pthread_create: %s\n", strerror(i));
    		exit(EXIT_FAILURE);
    	}
    
    	i = pthread_join(tid, NULL);
    	if (i != 0) {
    		fprintf(stderr, "pthread_join: %s\n", strerror(i));
    		exit(EXIT_FAILURE);
    	}
    
    	i = pthread_create(&tid, NULL, thread2, NULL);
    	if (i != 0) {
    		fprintf(stderr, "pthread_create: %s\n", strerror(i));
    		exit(EXIT_FAILURE);
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. src/runtime/cgo/gcc_freebsd_amd64.c

    	// Deal with memory sanitizer/clang interaction.
    	// See gcc_linux_amd64.c for details.
    	setg_gcc = setg;
    	pbounds = (uintptr*)malloc(2 * sizeof(uintptr));
    	if (pbounds == NULL) {
    		fatalf("malloc failed: %s", strerror(errno));
    	}
    	_cgo_set_stacklo(g, pbounds);
    	free(pbounds);
    }
    
    void
    _cgo_sys_thread_start(ThreadStart *ts)
    {
    	pthread_attr_t attr;
    	sigset_t ign, oset;
    	pthread_t p;
    	size_t size;
    	int err;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:06:46 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. src/runtime/cgo/gcc_darwin_amd64.c

    // Copyright 2009 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 <string.h> /* for strerror */
    #include <pthread.h>
    #include <signal.h>
    #include "libcgo.h"
    #include "libcgo_unix.h"
    
    static void* threadentry(void*);
    static void (*setg_gcc)(void*);
    
    void
    x_cgo_init(G *g, void (*setg)(void*), void **tlsg, void **tlsbase)
    {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 12 03:56:28 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testcarchive/testdata/main2.c

    		die("sigemptyset");
    	}
    	if (sigaddset(&mask, SIGSEGV) < 0) {
    		die("sigaddset");
    	}
    	i = sigprocmask(SIG_UNBLOCK, &mask, NULL);
    	if (i != 0) {
    		fprintf(stderr, "sigprocmask: %s\n", strerror(i));
    		exit(EXIT_FAILURE);
    	}
    
    	// Don't try this at home.
    	longjmp(jmp, signo);
    
    	// We should never get here.
    	abort();
    }
    
    // Set up the signal handlers in a high priority constructor,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  6. src/runtime/cgo/gcc_linux_arm64.c

    	ts->g->stackhi = size;
    	err = _cgo_try_pthread_create(&p, &attr, threadentry, ts);
    
    	pthread_sigmask(SIG_SETMASK, &oset, nil);
    
    	if (err != 0) {
    		fatalf("pthread_create failed: %s", strerror(err));
    	}
    }
    
    extern void crosscall1(void (*fn)(void), void (*setg_gcc)(void*), void *g);
    static void*
    threadentry(void *v)
    {
    	ThreadStart ts;
    
    	ts = *(ThreadStart*)v;
    	free(v);
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:06:46 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  7. src/runtime/cgo/gcc_freebsd.c

    	ts->g->stackhi = size;
    	err = _cgo_try_pthread_create(&p, &attr, threadentry, ts);
    
    	pthread_sigmask(SIG_SETMASK, &oset, nil);
    
    	if (err != 0) {
    		fatalf("pthread_create failed: %s", strerror(err));
    	}
    }
    
    extern void crosscall1(void (*fn)(void), void (*setg_gcc)(void*), void *g);
    static void*
    threadentry(void *v)
    {
    	ThreadStart ts;
    
    	ts = *(ThreadStart*)v;
    	free(v);
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 03:40:00 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. src/runtime/cgo/gcc_libinit.c

    #pragma GCC diagnostic ignored "-Wunknown-warning-option"
    #pragma GCC diagnostic ignored "-Watomic-alignment"
    
    #include <pthread.h>
    #include <errno.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h> // strerror
    #include <time.h>
    #include "libcgo.h"
    #include "libcgo_unix.h"
    
    static pthread_cond_t runtime_init_cond = PTHREAD_COND_INITIALIZER;
    static pthread_mutex_t runtime_init_mu = PTHREAD_MUTEX_INITIALIZER;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 01:07:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. src/runtime/cgo/gcc_darwin_arm64.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include <limits.h>
    #include <pthread.h>
    #include <signal.h>
    #include <string.h> /* for strerror */
    #include <sys/param.h>
    #include <unistd.h>
    #include <stdlib.h>
    
    #include "libcgo.h"
    #include "libcgo_unix.h"
    
    #include <TargetConditionals.h>
    
    #if TARGET_OS_IPHONE
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 03:13:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testplugin/testdata/plugin2/plugin2.go

    // #include
    // void cfunc() {} // uses cgo_topofstack
    
    import (
    	"reflect"
    	"strings"
    
    	"testplugin/common"
    )
    
    func init() {
    	_ = strings.NewReplacer() // trigger stack unwind, Issue #18190.
    	C.strerror(C.EIO)         // uses cgo_topofstack
    	common.X = 2
    }
    
    type sameNameReusedInPlugins struct {
    	X string
    }
    
    type sameNameHolder struct {
    	F *sameNameReusedInPlugins
    }
    
    func UnexportedNameReuse() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 796 bytes
    - Viewed (0)
Back to top