Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 89 for fd (0.02 sec)

  1. src/internal/poll/fd_unix.go

    	// so this must be executed before CloseFunc.
    	fd.pd.close()
    
    	err := fd.SysFile.destroy(fd.Sysfd)
    
    	fd.Sysfd = -1
    	runtime_Semrelease(&fd.csema)
    	return err
    }
    
    // Close closes the FD. The underlying file descriptor is closed by the
    // destroy method when there are no remaining references.
    func (fd *FD) Close() error {
    	if !fd.fdmu.increfAndClose() {
    		return errClosing(fd.isFile)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 04:09:44 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. src/syscall/fs_wasip1.go

    			pathLen,
    			oflags|OFLAG_DIRECTORY,
    			rights&dirRights,
    			fileRights,
    			fdflags,
    			unsafe.Pointer(&fd),
    		)
    	}
    	return int(fd), errnoErr(errno)
    }
    
    func Close(fd int) error {
    	errno := fd_close(int32(fd))
    	return errnoErr(errno)
    }
    
    func CloseOnExec(fd int) {
    	// nothing to do - no exec
    }
    
    func Mkdir(path string, perm uint32) error {
    	if path == "" {
    		return EINVAL
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  3. src/net/tcpsock.go

    	}
    	return nil
    }
    
    // CloseWrite shuts down the writing side of the TCP connection.
    // Most callers should just use Close.
    func (c *TCPConn) CloseWrite() error {
    	if !c.ok() {
    		return syscall.EINVAL
    	}
    	if err := c.fd.closeWrite(); err != nil {
    		return &OpError{Op: "close", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  4. src/syscall/syscall_darwin.go

    //sys	Chroot(path string) (err error)
    //sys	Close(fd int) (err error)
    //sys	closedir(dir uintptr) (err error)
    //sys	Dup(fd int) (nfd int, err error)
    //sys	Dup2(from int, to int) (err error)
    //sys	Exchangedata(path1 string, path2 string, options int) (err error)
    //sys	Fchdir(fd int) (err error)
    //sys	Fchflags(fd int, flags int) (err error)
    //sys	Fchmod(fd int, mode uint32) (err error)
    //sys	Fchown(fd int, uid int, gid int) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. src/syscall/syscall_aix.go

    //sys	socket(domain int, typ int, proto int) (fd int, err error)
    //sysnb	socketpair(domain int, typ int, proto int, fd *[2]int32) (err error)
    //sysnb	getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
    //sys	getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
    //sys	recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. src/syscall/zsyscall_openbsd_386.go

    func fcntlPtr(fd int, cmd int, arg unsafe.Pointer) (val int, err error) {
    	r0, _, e1 := syscall(abi.FuncPCABI0(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
    	val = int(r0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func ioctl(fd int, req int, arg int) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  7. src/runtime/os_plan9.go

    	n := copy(buf[:], procdir)
    	n += copy(buf[n:], itoa(tmp[:], pid))
    	copy(buf[n:], notefile)
    	fd := open(&buf[0], _OWRITE, 0)
    	if fd < 0 {
    		return -1
    	}
    	len := findnull(&msg[0])
    	if write1(uintptr(fd), unsafe.Pointer(&msg[0]), int32(len)) != int32(len) {
    		closefd(fd)
    		return -1
    	}
    	closefd(fd)
    	return 0
    }
    
    //go:nosplit
    func exit(e int32) {
    	var status []byte
    	if e == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. src/syscall/zsyscall_openbsd_arm.go

    func fcntlPtr(fd int, cmd int, arg unsafe.Pointer) (val int, err error) {
    	r0, _, e1 := syscall(abi.FuncPCABI0(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
    	val = int(r0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func ioctl(fd int, req int, arg int) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  9. src/syscall/exec_linux.go

    			}
    		}
    	}
    
    	// Pass 1: look for fd[i] < i and move those up above len(fd)
    	// so that pass 2 won't stomp on an fd it needs later.
    	if pipe < nextfd {
    		_, _, err1 = RawSyscall(SYS_DUP3, uintptr(pipe), uintptr(nextfd), O_CLOEXEC)
    		if err1 != 0 {
    			goto childerror
    		}
    		pipe = nextfd
    		nextfd++
    	}
    	for i = 0; i < len(fd); i++ {
    		if fd[i] >= 0 && fd[i] < i {
    			if nextfd == pipe { // don't stomp on pipe
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util_test.cc

          /*node_def=*/
          {{{"out"}, "Identity", {"in"}, {{"T", DataType::DT_RESOURCE}}}});
    }
    
    TEST(IsSupportedByNonReplicatedBridge, NonReplicatedGraph) {
      const FunctionDef& fd = PassThroughResource();
      FunctionDefLibrary flib;
      *flib.add_function() = fd;
      FunctionLibraryDefinition flib_def(OpRegistry::Global(), flib);
      Graph graph(flib_def);
      graph.SetConstructionContext(ConstructionContext::kEagerRuntime);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 19:51:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top