Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 44 for syscall (0.17 sec)

  1. misc/go_android_exec/main.go

    	lockPath := filepath.Join(os.TempDir(), "go_android_exec-adb-lock")
    	lock, err := os.OpenFile(lockPath, os.O_CREATE|os.O_RDWR, 0666)
    	if err != nil {
    		return 0, err
    	}
    	defer lock.Close()
    	if err := syscall.Flock(int(lock.Fd()), syscall.LOCK_EX); err != nil {
    		return 0, err
    	}
    
    	// In case we're booting a device or emulator alongside all.bash, wait for
    	// it to be ready. adb wait-for-device is not enough, we have to
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/cgo_thread_lock.go

    // license that can be found in the LICENSE file.
    
    //go:build linux
    
    package cgotest
    
    /*
    #include <unistd.h>
    #include <stdbool.h>
    #include <sys/syscall.h>
    void Gosched(void);
    static bool Ctid(void) {
    	long tid1 = syscall(SYS_gettid);
    	Gosched();
    	return tid1 == syscall(SYS_gettid);
    }
    */
    import "C"
    
    import (
    	"runtime"
    	"testing"
    	"time"
    )
    
    //export Gosched
    func Gosched() {
    	runtime.Gosched()
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu May 18 16:55:07 GMT 2023
    - 939 bytes
    - Viewed (0)
  3. src/cmd/cgo/godefs.go

    	// For example, the socket data structures refer
    	// to in_addr and in_addr6 structs but we want to be
    	// able to treat them as byte arrays, so the godefs
    	// inputs in package syscall say
    	//
    	//	// +godefs map struct_in_addr [4]byte
    	//	// +godefs map struct_in_addr6 [16]byte
    	//
    	for _, g := range f.Comments {
    		for _, c := range g.List {
    			i := strings.Index(c.Text, "+godefs map")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 08 14:33:35 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  4. doc/asm.html

    in a Go source file in the same package. The name of the assembly
    function must not contain the package name component (for example,
    function <code>Syscall</code> in package <code>syscall</code> should
    use the name <codeSyscall</code> instead of the equivalent name
    <code>syscall·Syscall</code> in its <code>TEXT</code> directive).
    For more complex situations, explicit annotation is needed.
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  5. api/go1.21.txt

    pkg syscall (freebsd-386-cgo), type SysProcAttr struct, Jail int #46259
    pkg syscall (freebsd-386), type SysProcAttr struct, Jail int #46259
    pkg syscall (freebsd-amd64-cgo), type SysProcAttr struct, Jail int #46259
    pkg syscall (freebsd-amd64), type SysProcAttr struct, Jail int #46259
    pkg syscall (freebsd-arm64-cgo), type SysProcAttr struct, Jail int #46259
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Aug 07 09:39:17 GMT 2023
    - 25.6K bytes
    - Viewed (0)
  6. api/go1.7.txt

    pkg strings, method (*Reader) Reset(string)
    pkg syscall (linux-386), type SysProcAttr struct, Unshareflags uintptr
    pkg syscall (linux-386-cgo), type SysProcAttr struct, Unshareflags uintptr
    pkg syscall (linux-amd64), type SysProcAttr struct, Unshareflags uintptr
    pkg syscall (linux-amd64-cgo), type SysProcAttr struct, Unshareflags uintptr
    pkg syscall (linux-arm), type SysProcAttr struct, Unshareflags uintptr
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Jun 28 15:08:11 GMT 2016
    - 13.6K bytes
    - Viewed (0)
  7. src/archive/tar/stat_unix.go

    	"runtime"
    	"strconv"
    	"sync"
    	"syscall"
    )
    
    func init() {
    	sysStat = statUnix
    }
    
    // userMap and groupMap caches UID and GID lookups for performance reasons.
    // The downside is that renaming uname or gname by the OS never takes effect.
    var userMap, groupMap sync.Map // map[int]string
    
    func statUnix(fi fs.FileInfo, h *Header, doNameLookups bool) error {
    	sys, ok := fi.Sys().(*syscall.Stat_t)
    	if !ok {
    		return nil
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/testdata/mips.s

    	//	{
    	//		outcode(int($1), &nullgen, 0, &$3);
    	//	}
    	NOP	F2
    
    	//	LNOP imm
    	//	{
    	//		outcode(int($1), &$2, 0, &nullgen);
    	//	}
    	NOP	$4
    
    	//
    	// special
    	//
    	SYSCALL
    	BREAK
    	SYNC
    
    	//
    	// conditional move on zero/nonzero gp value
    	//
    	CMOVN	R1, R2, R3
    	CMOVZ	R1, R2, R3
    
    	//
    	// conditional move on fp false/true
    	//
    	CMOVF	R1, R2
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 08 12:17:12 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  9. misc/ios/go_ios_exec.go

    	lockName := filepath.Join(os.TempDir(), "go_ios_exec-"+deviceID+".lock")
    	lock, err = os.OpenFile(lockName, os.O_CREATE|os.O_RDONLY, 0666)
    	if err != nil {
    		return 1, err
    	}
    	if err := syscall.Flock(int(lock.Fd()), syscall.LOCK_EX); err != nil {
    		return 1, err
    	}
    
    	if goarch := os.Getenv("GOARCH"); goarch == "arm64" {
    		err = runOnDevice(appdir)
    	} else {
    		err = runOnSimulator(appdir)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/testdata/amd64enc.s

    	SUBSS (R11), X11                        // f3450f5c1b
    	SUBSS X2, X11                           // f3440f5cda
    	SUBSS X11, X11                          // f3450f5cdb
    	SWAPGS                                  // 0f01f8
    	SYSCALL                                 // 0f05
    	SYSENTER                                // 0f34
    	SYSENTER64                              // 480f34
    	SYSEXIT                                 // 0f35
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 08 21:38:44 GMT 2021
    - 581.9K bytes
    - Viewed (0)
Back to top