Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 180 for syscall1 (0.09 sec)

  1. src/net/net_fake.go

    	if raddr != nil && ctrlCtxFn != nil {
    		return nil, os.NewSyscallError("socket", syscall.ENOTSUP)
    	}
    	switch sotype {
    	case syscall.SOCK_STREAM, syscall.SOCK_SEQPACKET, syscall.SOCK_DGRAM:
    	default:
    		return nil, os.NewSyscallError("socket", syscall.ENOTSUP)
    	}
    
    	fd := &netFD{
    		family: family,
    		sotype: sotype,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 19:24:21 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  2. src/os/file.go

    	O_RDONLY int = syscall.O_RDONLY // open the file read-only.
    	O_WRONLY int = syscall.O_WRONLY // open the file write-only.
    	O_RDWR   int = syscall.O_RDWR   // open the file read-write.
    	// The remaining values may be or'ed in to control behavior.
    	O_APPEND int = syscall.O_APPEND // append data to the file when writing.
    	O_CREATE int = syscall.O_CREAT  // create a new file if none exists.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:37 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  3. src/os/file_plan9.go

    const DevNull = "/dev/null"
    
    // syscallMode returns the syscall-specific mode bits from Go's portable mode bits.
    func syscallMode(i FileMode) (o uint32) {
    	o |= uint32(i.Perm())
    	if i&ModeAppend != 0 {
    		o |= syscall.DMAPPEND
    	}
    	if i&ModeExclusive != 0 {
    		o |= syscall.DMEXCL
    	}
    	if i&ModeTemporary != 0 {
    		o |= syscall.DMTMP
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:35:30 UTC 2024
    - 16K bytes
    - Viewed (0)
  4. src/os/signal/signal_test.go

    	c2 := make(chan os.Signal, 1)
    	Notify(c2, syscall.SIGHUP)
    	defer Stop(c2)
    
    	// Send this process a SIGWINCH and wait for notification on c1.
    	syscall.Kill(syscall.Getpid(), syscall.SIGWINCH)
    	waitSig(t, c1, syscall.SIGWINCH)
    
    	// Send this process a SIGHUP and wait for notification on c2.
    	syscall.Kill(syscall.Getpid(), syscall.SIGHUP)
    	waitSig(t, c2, syscall.SIGHUP)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 15:34:56 UTC 2023
    - 27.2K bytes
    - Viewed (0)
  5. src/os/user/lookup_windows.go

    package user
    
    import (
    	"fmt"
    	"internal/syscall/windows"
    	"internal/syscall/windows/registry"
    	"syscall"
    	"unsafe"
    )
    
    func isDomainJoined() (bool, error) {
    	var domain *uint16
    	var status uint32
    	err := syscall.NetGetJoinInformation(nil, &domain, &status)
    	if err != nil {
    		return false, err
    	}
    	syscall.NetApiBufferFree((*byte)(unsafe.Pointer(domain)))
    	return status == syscall.NetSetupDomainName, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 16:42:41 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  6. src/runtime/sys_linux_mips64x.s

    	// nanosleep(&ts, 0)
    	ADDV	$8, R29, R4
    	MOVW	$0, R5
    	MOVV	$SYS_nanosleep, R2
    	SYSCALL
    	RET
    
    TEXT runtimeĀ·gettid(SB),NOSPLIT,$0-4
    	MOVV	$SYS_gettid, R2
    	SYSCALL
    	MOVW	R2, ret+0(FP)
    	RET
    
    TEXT runtimeĀ·raise(SB),NOSPLIT|NOFRAME,$0
    	MOVV	$SYS_getpid, R2
    	SYSCALL
    	MOVW	R2, R16
    	MOVV	$SYS_gettid, R2
    	SYSCALL
    	MOVW	R2, R5	// arg 2 tid
    	MOVW	R16, R4	// arg 1 pid
    	MOVW	sig+0(FP), R6	// arg 3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 20:57:24 UTC 2022
    - 12K bytes
    - Viewed (0)
  7. src/os/os_unix_test.go

    		t.Skipf("syscall.Pipe is not available on %s.", runtime.GOOS)
    	}
    
    	p := make([]int, 2)
    	if err := syscall.Pipe(p); err != nil {
    		t.Fatalf("pipe: %v", err)
    	}
    	defer syscall.Close(p[1])
    
    	// Set the read-side to non-blocking.
    	if !blocking {
    		if err := syscall.SetNonblock(p[0], true); err != nil {
    			syscall.Close(p[0])
    			t.Fatalf("SetNonblock: %v", err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:32:43 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  8. src/internal/trace/summary.go

    				if g.lastRunnableTime != 0 {
    					g.SchedWaitTime += ev.Time().Sub(g.lastRunnableTime)
    					g.lastRunnableTime = 0
    				}
    			case GoSyscall:
    				// Record syscall execution time and syscall block time as we transition out of syscall.
    				if g.lastSyscallTime != 0 {
    					if g.lastSyscallBlockTime != 0 {
    						g.SyscallBlockTime += ev.Time().Sub(g.lastSyscallBlockTime)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go

    // go run mksysnum.go /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk/usr/include/sys/syscall.h
    // Code generated by the command above; see README.md. DO NOT EDIT.
    
    //go:build arm64 && darwin
    
    package unix
    
    // Deprecated: Use libSystem wrappers instead of direct syscalls.
    const (
    	SYS_SYSCALL                        = 0
    	SYS_EXIT                           = 1
    	SYS_FORK                           = 2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  10. src/net/unixsock.go

    // This implements the [syscall.Conn] interface.
    func (c *UnixConn) SyscallConn() (syscall.RawConn, error) {
    	if !c.ok() {
    		return nil, syscall.EINVAL
    	}
    	return newRawConn(c.fd), nil
    }
    
    // CloseRead shuts down the reading side of the Unix domain connection.
    // Most callers should just use Close.
    func (c *UnixConn) CloseRead() error {
    	if !c.ok() {
    		return syscall.EINVAL
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top