Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 244 for syscall6 (0.13 sec)

  1. src/os/file_windows.go

    	if e1 != e {
    		a, e2 := syscall.GetFileAttributes(p)
    		if e2 != nil {
    			e = e2
    		} else {
    			if a&syscall.FILE_ATTRIBUTE_DIRECTORY != 0 {
    				e = e1
    			} else if a&syscall.FILE_ATTRIBUTE_READONLY != 0 {
    				if e1 = syscall.SetFileAttributes(p, a&^syscall.FILE_ATTRIBUTE_READONLY); e1 == nil {
    					if e = syscall.DeleteFile(p); e == nil {
    						return nil
    					}
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:38 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. 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)
  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/runtime/sys_linux_s390x.s

    	// nanosleep(&ts, 0)
    	ADD	$8, R15, R2
    	MOVW	$0, R3
    	MOVW	$SYS_nanosleep, R1
    	SYSCALL
    	RET
    
    TEXT runtime·gettid(SB),NOSPLIT,$0-4
    	MOVW	$SYS_gettid, R1
    	SYSCALL
    	MOVW	R2, ret+0(FP)
    	RET
    
    TEXT runtime·raise(SB),NOSPLIT|NOFRAME,$0
    	MOVW	$SYS_getpid, R1
    	SYSCALL
    	MOVW	R2, R10
    	MOVW	$SYS_gettid, R1
    	SYSCALL
    	MOVW	R2, R3	// arg 2 tid
    	MOVW	R10, R2	// arg 1 pid
    	MOVW	sig+0(FP), R4	// arg 2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 18:53:44 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  8. src/runtime/sys_linux_amd64.s

    	MOVL	AX, ret+0(FP)
    	RET
    
    TEXT runtime·raise(SB),NOSPLIT,$0
    	MOVL	$SYS_getpid, AX
    	SYSCALL
    	MOVL	AX, R12
    	MOVL	$SYS_gettid, AX
    	SYSCALL
    	MOVL	AX, SI	// arg 2 tid
    	MOVL	R12, DI	// arg 1 pid
    	MOVL	sig+0(FP), DX	// arg 3
    	MOVL	$SYS_tgkill, AX
    	SYSCALL
    	RET
    
    TEXT runtime·raiseproc(SB),NOSPLIT,$0
    	MOVL	$SYS_getpid, AX
    	SYSCALL
    	MOVL	AX, DI	// arg 1 pid
    	MOVL	sig+0(FP), SI	// arg 2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 18:53:44 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top