Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 537 for libc (0.04 sec)

  1. src/runtime/cgo/linux_syscall.c

    #define _GNU_SOURCE
    #endif
    
    #include <grp.h>
    #include <sys/types.h>
    #include <unistd.h>
    #include <errno.h>
    #include "libcgo.h"
    
    /*
     * Assumed POSIX compliant libc system call wrappers. For linux, the
     * glibc/nptl/setxid mechanism ensures that POSIX semantics are
     * honored for all pthreads (by default), and this in turn with cgo
     * ensures that all Go threads launched with cgo are kept in sync for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 24 22:38:02 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. src/runtime/sys_darwin_amd64.s

    	MOVQ	DX, (5*8)(DI) // r2
    
    	// Standard libc functions return -1 on error
    	// and set errno.
    	CMPL	AX, $-1	      // Note: high 32 bits are junk
    	JNE	ok
    
    	// Get error code from libc.
    	CALL	libc_error(SB)
    	MOVLQSX	(AX), AX
    	MOVQ	(SP), DI
    	MOVQ	AX, (6*8)(DI) // err
    
    ok:
    	XORL	AX, AX        // no error (it's ignored anyway)
    	RET
    
    // syscallX calls a function in libc on behalf of the syscall package.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:59 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testsanitizers/testdata/tsan11.go

    package main
    
    // This program hung when run under the C/C++ ThreadSanitizer. TSAN defers
    // asynchronous signals until the signaled thread calls into libc. The runtime's
    // sysmon goroutine idles itself using direct usleep syscalls, so it could
    // run for an arbitrarily long time without triggering the libc interceptors.
    // See https://golang.org/issue/18717.
    
    import (
    	"os"
    	"os/signal"
    	"syscall"
    )
    
    /*
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. src/internal/syscall/unix/ioctl_aix.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package unix
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    //go:cgo_import_dynamic libc_ioctl ioctl "libc.a/shr_64.o"
    //go:linkname libc_ioctl libc_ioctl
    var libc_ioctl uintptr
    
    // Implemented in syscall/syscall_aix.go.
    func syscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 16 16:58:24 UTC 2021
    - 679 bytes
    - Viewed (0)
  5. src/runtime/cgo/callbacks.go

    var x_cgo_set_context_function byte
    var _cgo_set_context_function = &x_cgo_set_context_function
    
    // Calls a libc function to execute background work injected via libc
    // interceptors, such as processing pending signals under the thread
    // sanitizer.
    //
    // Left as a nil pointer if no libc interceptors are expected.
    
    //go:cgo_import_static _cgo_yield
    //go:linkname _cgo_yield _cgo_yield
    var _cgo_yield unsafe.Pointer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  6. src/runtime/rt0_linux_mipsx.s

    	// sequence of string pointers followed by a NULL, and auxv.
    	// There is no TLS base pointer.
    	MOVW	0(R29), R4 // argc
    	ADD	$4, R29, R5 // argv
    	JMP	main(SB)
    
    TEXT main(SB),NOSPLIT|NOFRAME,$0
    	// In external linking, libc jumps to main with argc in R4, argv in R5
    	MOVW	$runtime·rt0_go(SB), R1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 06 10:24:44 UTC 2021
    - 797 bytes
    - Viewed (0)
  7. src/runtime/cgo/gcc_android.c

    	abort();
    }
    
    // Truncated to a different magic value on 32-bit; that's ok.
    #define magic1 (0x23581321345589ULL)
    
    // From https://android.googlesource.com/platform/bionic/+/refs/heads/android10-tests-release/libc/private/bionic_asm_tls.h#69.
    #define TLS_SLOT_APP 2
    
    // inittls allocates a thread-local storage slot for g.
    //
    // It finds the first available slot using pthread_key_create and uses
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 09 23:17:17 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  8. src/runtime/testdata/testprogcgo/stackswitch.c

    #include <assert.h>
    #include <pthread.h>
    #include <stddef.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <ucontext.h>
    
    // musl libc does not provide getcontext, etc. Skip the test there.
    //
    // musl libc doesn't provide any direct detection mechanism. So assume any
    // non-glibc linux is using musl.
    //
    // Note that bionic does not provide getcontext either, but that is skipped via
    // the android build tag.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 15:17:33 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. src/debug/plan9obj/testdata/hello.c

    #include <u.h>
    #include <libc.h>
    
    void
    main(void)
    {
    	print("hello, world\n");
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 80 bytes
    - Viewed (0)
  10. src/runtime/mem_plan9.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime
    
    import "unsafe"
    
    func sbrk(n uintptr) unsafe.Pointer {
    	// Plan 9 sbrk from /sys/src/libc/9sys/sbrk.c
    	bl := bloc
    	n = memRound(n)
    	if bl+n > blocMax {
    		if brk_(unsafe.Pointer(bl+n)) < 0 {
    			return nil
    		}
    		blocMax = bl + n
    	}
    	bloc += n
    	return unsafe.Pointer(bl)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 21 02:45:06 UTC 2023
    - 447 bytes
    - Viewed (0)
Back to top