- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 537 for libc (0.1 sec)
-
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) -
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) -
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) -
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) -
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) -
src/runtime/sys_libc.go
// first call on an M, until that libcCall instance // returns. Reentrance only matters for signals, as // libc never calls back into Go. The tricky case is // where we call libcX from an M and record g/pc/sp. // Before that call returns, a signal arrives on the // same M and the signal handling code calls another // libc function. We don't want that second libcCall // from within the handler to be recorded, and we
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:54:15 UTC 2022 - 1.8K bytes - Viewed (0) -
src/runtime/sys_openbsd_arm64.s
CALL R11 MOVD R0, (4*8)(R19) // r1 MOVD R1, (5*8)(R19) // r2 // Standard libc functions return -1 on error // and set errno. CMPW $-1, R0 BNE ok // Get error code from libc. CALL libc_errno(SB) MOVW (R0), R0 MOVD R0, (6*8)(R19) // 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 Jun 06 18:49:01 UTC 2023 - 15.1K bytes - Viewed (0) -
src/runtime/sys_openbsd_arm.s
MOVW R1, (5*4)(R8) // r2 // Standard libc functions return -1 on error and set errno. CMP $-1, R0 BNE ok // Get error code from libc. BL libc_errno(SB) MOVW (R0), R1 MOVW R1, (6*4)(R8) // err ok: MOVW $0, R0 // no error (it's ignored anyway) MOVW R9, R13 RET // syscallX calls a function in libc on behalf of the syscall package.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 06 18:49:01 UTC 2023 - 18.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/mkall.sh
openbsd_386) mkasm="go run mkasm.go" mkerrors="$mkerrors -m32" mksyscall="go run mksyscall.go -l32 -openbsd -libc" mksysctl="go run mksysctl_openbsd.go" mktypes="GOARCH=$GOARCH go tool cgo -godefs" ;; openbsd_amd64) mkasm="go run mkasm.go" mkerrors="$mkerrors -m64" mksyscall="go run mksyscall.go -openbsd -libc" mksysctl="go run mksysctl_openbsd.go" mktypes="GOARCH=$GOARCH go tool cgo -godefs" ;; openbsd_arm)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 13 21:37:23 UTC 2023 - 8.1K bytes - Viewed (0) -
src/syscall/exec_solaris_test.go
// license that can be found in the LICENSE file. //go:build solaris package syscall import "unsafe" //go:cgo_import_dynamic libc_Getpgid getpgid "libc.so" //go:cgo_import_dynamic libc_Getpgrp getpgrp "libc.so" //go:linkname libc_Getpgid libc_Getpgid //go:linkname libc_Getpgrp libc_Getpgrp var ( libc_Getpgid, libc_Getpgrp libcFunc )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 04:41:27 UTC 2024 - 1.1K bytes - Viewed (0)