Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 511 for libc (0.04 sec)

  1. src/internal/syscall/unix/eaccess_openbsd.go

    //go:linkname syscall_syscall6 syscall.syscall6
    func syscall_syscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
    
    func libc_faccessat_trampoline()
    
    //go:cgo_import_dynamic libc_faccessat faccessat "libc.so"
    
    func faccessat(dirfd int, path string, mode uint32, flags int) error {
    	p, err := syscall.BytePtrFromString(path)
    	if err != nil {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:36:52 UTC 2024
    - 946 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testerrors/testdata/malloc.go

    // Test that C.malloc does not return nil.
    
    package main
    
    // #include <stdlib.h>
    import "C"
    
    import (
    	"fmt"
    	"runtime"
    )
    
    func main() {
    	var size C.size_t
    	size--
    
    	// The Dragonfly libc succeeds when asked to allocate
    	// 0xffffffffffffffff bytes, so pass a different value that
    	// causes it to fail.
    	if runtime.GOOS == "dragonfly" {
    		size = C.size_t(0x7fffffff << (32 * (^uintptr(0) >> 63)))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 766 bytes
    - Viewed (0)
  3. src/syscall/mkall.sh

    	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
    	;;
    openbsd_386)
    	GOOSARCH_in="syscall_openbsd_libc.go syscall_openbsd_$GOARCH.go"
    	mkerrors="$mkerrors -m32"
    	mksyscall="./mksyscall.pl -l32 -openbsd -libc"
    	mksysctl="./mksysctl_openbsd.pl"
    	zsysctl="zsysctl_openbsd.go"
    	mksysnum="curl -s 'http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_openbsd.pl"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 18:22:23 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  4. src/runtime/sys_openbsd3.go

    package runtime
    
    import (
    	"internal/abi"
    	"unsafe"
    )
    
    // The X versions of syscall expect the libc call to return a 64-bit result.
    // Otherwise (the non-X version) expects a 32-bit result.
    // This distinction is required because an error is indicated by returning -1,
    // and we need to know whether to check 32 or 64 bits of the result.
    // (Some libc functions that return 32 bits put junk in the upper 32 bits of AX.)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. src/runtime/cgo/dragonfly.go

    //go:build dragonfly
    
    package cgo
    
    import _ "unsafe" // for go:linkname
    
    // Supply environ and __progname, because we don't
    // link against the standard DragonFly crt0.o and the
    // libc dynamic library needs them.
    
    //go:linkname _environ environ
    //go:linkname _progname __progname
    
    var _environ uintptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 485 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testsanitizers/testdata/tsan12.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    // This program hung when run under the C/C++ ThreadSanitizer. TSAN installs a
    // libc interceptor that writes signal handlers to a global variable within the
    // TSAN runtime instead of making a sigaction system call. A bug in
    // syscall.runtime_AfterForkInChild corrupted TSAN's signal forwarding table
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 929 bytes
    - Viewed (0)
  7. src/syscall/syscall_illumos.go

    //go:build illumos
    
    package syscall
    
    import "unsafe"
    
    // F_DUP2FD_CLOEXEC has different values on Solaris and Illumos.
    const F_DUP2FD_CLOEXEC = 0x24
    
    //go:cgo_import_dynamic libc_flock flock "libc.so"
    
    //go:linkname procFlock libc_flock
    
    var procFlock libcFunc
    
    func Flock(fd int, how int) error {
    	_, _, errno := sysvicall6(uintptr(unsafe.Pointer(&procFlock)), 2, uintptr(fd), uintptr(how), 0, 0, 0, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 15 21:07:18 UTC 2022
    - 613 bytes
    - Viewed (0)
  8. src/vendor/golang.org/x/sys/cpu/syscall_aix_ppc64_gc.go

    // (See golang.org/issue/32102)
    
    //go:build aix && ppc64 && gc
    
    package cpu
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    //go:cgo_import_dynamic libc_getsystemcfg getsystemcfg "libc.a/shr_64.o"
    
    //go:linkname libc_getsystemcfg libc_getsystemcfg
    
    type syscallFunc uintptr
    
    var libc_getsystemcfg syscallFunc
    
    type errno = syscall.Errno
    
    // Implemented in runtime/syscall_aix.go.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 988 bytes
    - Viewed (0)
  9. src/internal/syscall/unix/getrandom_solaris.go

    // license that can be found in the LICENSE file.
    
    package unix
    
    import (
    	"sync/atomic"
    	"syscall"
    	"unsafe"
    )
    
    //go:cgo_import_dynamic libc_getrandom getrandom "libc.so"
    
    //go:linkname procGetrandom libc_getrandom
    
    var procGetrandom uintptr
    
    var getrandomUnsupported atomic.Bool
    
    // GetRandomFlag is a flag supported by the getrandom system call.
    type GetRandomFlag uintptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:54:02 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. src/syscall/syscall_openbsd_libc.go

    	// packages make use of syscall.Syscall with SYS_IOCTL since it is
    	// not well supported by golang.org/x/sys/unix. Reroute this system
    	// call number to the respective libc stub so that it continues to
    	// work for the time being. See #63900 for further details.
    	if trap == SYS_IOCTL {
    		return syscallX(abi.FuncPCABI0(libc_ioctl_trampoline), a1, a2, a3)
    	}
    	return 0, 0, ENOSYS
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top