Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 146 for libc_ (0.05 sec)

  1. src/runtime/sys_openbsd_riscv64.s

    	MOV	X10, (4*8)(X9)		// r1
    	MOV	X11, (5*8)(X9)		// r2
    
    	// Standard libc functions return -1 on error
    	// and set errno.
    	MOV	$-1, X5
    	MOVW	X10, X11
    	BNE	X5, X11, ok
    
    	// Get error code from libc.
    	CALL	libc_errno(SB)
    	MOVW	(X10), X10
    	MOV	X10, (6*8)(X9)		// err
    
    ok:
    	RET
    
    // syscallX calls a function in libc on behalf of the syscall package.
    // syscallX takes a pointer to a struct like:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 02:55:17 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  2. src/runtime/os_illumos.go

    import (
    	"unsafe"
    )
    
    //go:cgo_import_dynamic libc_getrctl getrctl "libc.so"
    //go:cgo_import_dynamic libc_rctlblk_get_local_action rctlblk_get_local_action "libc.so"
    //go:cgo_import_dynamic libc_rctlblk_get_local_flags rctlblk_get_local_flags "libc.so"
    //go:cgo_import_dynamic libc_rctlblk_get_value rctlblk_get_value "libc.so"
    //go:cgo_import_dynamic libc_rctlblk_size rctlblk_size "libc.so"
    
    //go:linkname libc_getrctl libc_getrctl
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 28 18:06:12 UTC 2019
    - 3.9K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/testdata/issue39256/x.go

    package main
    
    import (
    	_ "unsafe"
    )
    
    //go:cgo_import_dynamic libc_getpid getpid "libc.so"
    //go:cgo_import_dynamic libc_kill kill "libc.so"
    //go:cgo_import_dynamic libc_close close "libc.so"
    //go:cgo_import_dynamic libc_open open "libc.so"
    
    //go:cgo_import_dynamic _ _ "libc.so"
    
    func trampoline()
    
    func main() {
    	trampoline()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 16 18:39:54 UTC 2020
    - 489 bytes
    - Viewed (0)
  4. src/syscall/zsyscall_aix_ppc64.go

    //go:cgo_import_dynamic libc_getgroups getgroups "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_setgroups setgroups "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_getdirent getdirent "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_wait4 wait4 "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_fsync_range fsync_range "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_bind bind "libc.a/shr_64.o"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  5. src/runtime/cgo/gcc_util.c

    char x_cgo_yield_strncpy_src = 0;
    char x_cgo_yield_strncpy_dst = 0;
    size_t x_cgo_yield_strncpy_n = 0;
    
    /*
    Stub for allowing libc interceptors to execute.
    
    _cgo_yield is set to NULL if we do not expect libc interceptors to exist.
    */
    static void
    x_cgo_yield()
    {
    	/*
    	The libc function(s) we call here must form a no-op and include at least one
    	call that triggers TSAN to process pending asynchronous signals.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 18:49:38 UTC 2017
    - 1.8K bytes
    - Viewed (0)
  6. src/runtime/sys_openbsd_ppc64.s

    	CALL	(CTR)
    
    	MOVD	R3, (4*8)(R14)		// r1
    	MOVD	R4, (5*8)(R14)		// r2
    
    	// Standard libc functions return -1 on error
    	// and set errno.
    	CMPW	R3, $-1
    	BNE	ok
    
    	// Get error code from libc.
    	CALL	libc_errno(SB)
    	MOVW	(R3), R3
    	MOVD	R3, (6*8)(R14)		// err
    
    ok:
    	RET
    
    // syscallX calls a function in libc on behalf of the syscall package.
    // syscallX takes a pointer to a struct like:
    // struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 02:48:11 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  7. src/internal/syscall/unix/at_aix.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package unix
    
    //go:cgo_import_dynamic libc_fstatat fstatat "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_openat openat "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_unlinkat unlinkat "libc.a/shr_64.o"
    
    const (
    	AT_REMOVEDIR        = 0x1
    	AT_SYMLINK_NOFOLLOW = 0x1
    	UTIME_OMIT          = -0x3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 11 18:19:17 UTC 2023
    - 456 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testsanitizers/testdata/tsan10.go

    package main
    
    // This program hung when run under the C/C++ ThreadSanitizer.
    // TSAN defers asynchronous signals until the signaled thread calls into libc.
    // Since the Go runtime makes direct futex syscalls, Go runtime threads 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
    - 798 bytes
    - Viewed (0)
  9. src/os/user/user.go

    One is written in pure Go and parses /etc/passwd and /etc/group. The other
    is cgo-based and relies on the standard C library (libc) routines such as
    getpwuid_r, getgrnam_r, and getgrouplist.
    
    When cgo is available, and the required routines are implemented in libc
    for a particular platform, cgo-based (libc-backed) code is used.
    This can be overridden by using osusergo build tag, which enforces
    the pure Go implementation.
    */
    package user
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go

    //go:build illumos && amd64
    
    package unix
    
    import (
    	"unsafe"
    )
    
    //go:cgo_import_dynamic libc_readv readv "libc.so"
    //go:cgo_import_dynamic libc_preadv preadv "libc.so"
    //go:cgo_import_dynamic libc_writev writev "libc.so"
    //go:cgo_import_dynamic libc_pwritev pwritev "libc.so"
    //go:cgo_import_dynamic libc_accept4 accept4 "libsocket.so"
    
    //go:linkname procreadv libc_readv
    //go:linkname procpreadv libc_preadv
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top