Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 86 for fd (0.03 sec)

  1. src/runtime/os_windows.go

    //
    //go:nosplit
    func write1(fd uintptr, buf unsafe.Pointer, n int32) int32 {
    	const (
    		_STD_OUTPUT_HANDLE = ^uintptr(10) // -11
    		_STD_ERROR_HANDLE  = ^uintptr(11) // -12
    	)
    	var handle uintptr
    	switch fd {
    	case 1:
    		handle = stdcall1(_GetStdHandle, _STD_OUTPUT_HANDLE)
    	case 2:
    		handle = stdcall1(_GetStdHandle, _STD_ERROR_HANDLE)
    	default:
    		// assume fd is real windows handle.
    		handle = fd
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  2. src/syscall/mksyscall.pl

    while(<>) {
    	chomp;
    	s/\s+/ /g;
    	s/^\s+//;
    	s/\s+$//;
    	my $nonblock = /^\/\/sysnb /;
    	next if !/^\/\/sys / && !$nonblock;
    
    	# Line must be of the form
    	#	func Open(path string, mode int, perm int) (fd int, errno error)
    	# Split into name, in params, out params.
    	if(!/^\/\/sys(nb)? (\w+)\(([^()]*)\)\s*(?:\(([^()]+)\))?\s*(?:=\s*((?i)_?SYS_[A-Z0-9_]+))?$/) {
    		print STDERR "$ARGV:$.: malformed //sys declaration\n";
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:15:02 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. internal/ioutil/ioutil.go

    				if err != nil {
    					return written, err
    				}
    				nw = int64(n)
    			}
    
    			// Disable O_DIRECT on fd's on unaligned buffer
    			// perform an amortized Fdatasync(fd) on the fd at
    			// the end, this is performed by the caller before
    			// closing 'w'.
    			if err = disk.DisableDirectIO(file); err != nil {
    				return written, err
    			}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/telemetry/start.go

    	// but in line with the uploader, log to a file in debug
    	// only if that directory was created by the user.
    	fd, err := os.Stat(telemetry.Default.DebugDir())
    	if err != nil {
    		if !os.IsNotExist(err) {
    			log.Fatalf("failed to stat debug directory: %v", err)
    		}
    	} else if fd.IsDir() {
    		// local/debug exists and is a directory. Set stderr to a log file path
    		// in local/debug.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. src/crypto/tls/testdata/Client-TLSv12-ClientCert-ECDSA-ECDSA

    00000280  cd f4 05 84 db 8b 0b 22  e3 50 1b e7 6d 02 42 01  |.......".P..m.B.|
    00000290  fd 1e bc 64 8b 01 3f a0  f8 8b 41 be 4d 97 07 6c  |...d..?...A.M..l|
    000002a0  3b 09 74 d6 00 76 b3 a0  c0 d0 92 d0 78 24 d7 b2  |;.t..v......x$..|
    000002b0  1f c0 86 90 59 3a fb a8  e1 f6 80 23 db f7 90 93  |....Y:.....#....|
    000002c0  95 fd 37 14 8c 34 f3 07  10 f8 dd e3 66 28 1c b2  |..7..4......f(..|
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. src/unsafe/unsafe.go

    // back from uintptr to pointer.
    //
    // If a pointer argument must be converted to uintptr for use as an argument,
    // that conversion must appear in the call expression itself:
    //
    //	syscall.Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(n))
    //
    // The compiler handles a Pointer converted to a uintptr in the argument list of
    // a call to a function implemented in assembly by arranging that the referenced
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:45:20 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. src/os/os_windows_test.go

    	if err != nil {
    		return err
    	}
    
    	linkp := syscall.StringToUTF16(link)
    	fd, err := syscall.CreateFile(&linkp[0], syscall.GENERIC_WRITE, 0, nil, syscall.OPEN_EXISTING,
    		syscall.FILE_FLAG_OPEN_REPARSE_POINT|syscall.FILE_FLAG_BACKUP_SEMANTICS, 0)
    	if err != nil {
    		return err
    	}
    	defer syscall.CloseHandle(fd)
    
    	buflen := uint32(rdb.header.ReparseDataLength) + uint32(unsafe.Sizeof(rdb.header))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  8. src/internal/trace/trace_test.go

    			want = append(want, gcEv)
    		}
    		if runtime.GOOS != "windows" && runtime.GOOS != "plan9" {
    			want = append(want, []evDesc{
    				{trace.EventStateTransition, "Goroutine Running->Waiting", []frame{
    					{"internal/poll.(*FD).Accept", 0},
    					{"net.(*netFD).accept", 0},
    					{"net.(*TCPListener).accept", 0},
    					{"net.(*TCPListener).Accept", 0},
    					{"main.main.func10", 0},
    				}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go

    	_         [8]uint8
    }
    
    type Ustat_t struct {
    	Tfree  int32
    	Tinode uint32
    	Fname  [6]uint8
    	Fpack  [6]uint8
    }
    
    type EpollEvent struct {
    	Events uint32
    	_      int32
    	Fd     int32
    	Pad    int32
    }
    
    const (
    	OPEN_TREE_CLOEXEC = 0x80000
    )
    
    const (
    	POLLRDHUP = 0x2000
    )
    
    type Sigset_t struct {
    	Val [32]uint32
    }
    
    const _C__NSIG = 0x41
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go

    }
    
    type Ustat_t struct {
    	Tfree  int32
    	Tinode uint64
    	Fname  [6]uint8
    	Fpack  [6]uint8
    	_      [4]byte
    }
    
    type EpollEvent struct {
    	Events uint32
    	_      int32
    	Fd     int32
    	Pad    int32
    }
    
    const (
    	OPEN_TREE_CLOEXEC = 0x80000
    )
    
    const (
    	POLLRDHUP = 0x2000
    )
    
    type Sigset_t struct {
    	Val [16]uint64
    }
    
    const _C__NSIG = 0x41
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top