Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 138 for strerror (0.25 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/runtime/cgo/gcc_linux_s390x.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 crosscall_s390x(void (*fn)(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: Wed Aug 09 03:13:11 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. src/runtime/cgo/gcc_ppc64x.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 crosscall_ppc64(void (*fn)(void), void *g);
    
    static void*
    threadentry(void *v)
    {
    	ThreadStart ts;
    
    	ts = *(ThreadStart*)v;
    	_cgo_tsan_acquire();
    	free(v);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 03:13:11 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. src/runtime/cgo/gcc_dragonfly_amd64.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:39:26 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top