- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for fd (0.01 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/RequestBodyTest.kt
@Test fun testFileDescriptor() { assertOnFileDescriptor { fd -> val requestBody = fd.toRequestBody() assertThat(requestBody.contentLength()).isEqualTo(-1L) assertThat(requestBody.isOneShot()).isEqualTo(true) } } @Test fun testFileDescriptorRead() { assertOnFileDescriptor(content = "Hello") { fd -> val requestBody = fd.toRequestBody() val buffer = Buffer()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.6K bytes - Viewed (1) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
InOrder inOrder = inOrder(handle, fd, tree); inOrder.verify(handle, times(1)).ensureOpen(); inOrder.verify(fd, times(1)).getTree(); inOrder.verify(tree, times(1)).send(any(Smb2IoctlRequest.class), eq(RequestParam.NO_RETRY)); verify(fd, times(1)).close(); verify(tree, times(1)).close(); } @ParameterizedTest
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
cmd/os_unix.go
} return nil } // openFileWithFD return 'fd' based file descriptor func openFileWithFD(name string, flag int, perm os.FileMode) (fd int, err error) { switch flag & writeMode { case writeMode: defer updateOSMetrics(osMetricOpenFileWFd, name)(err) default: defer updateOSMetrics(osMetricOpenFileRFd, name)(err) } var e error fd, e = syscall.Open(name, flag|syscall.O_CLOEXEC, uint32(perm)) if e != nil {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Tue Feb 18 16:25:55 UTC 2025 - 9.3K bytes - Viewed (0) -
lib/wasm/wasm_exec.js
return; } const n = this.writeSync(fd, buf); callback(null, n); }, chmod(path, mode, callback) { callback(enosys()); }, chown(path, uid, gid, callback) { callback(enosys()); }, close(fd, callback) { callback(enosys()); }, fchmod(fd, mode, callback) { callback(enosys()); }, fchown(fd, uid, gid, callback) { callback(enosys()); }, fstat(fd, callback) { callback(enosys()); },
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Sun Dec 08 15:34:47 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/asm/internal/lex/lex.go
} } // NewLexer returns a lexer for the named file and the given link context. func NewLexer(name string) TokenReader { input := NewInput(name) fd, err := os.Open(name) if err != nil { log.Fatalf("%s\n", err) } input.Push(NewTokenizer(name, fd, fd)) return input } // The other files in this directory each contain an implementation of TokenReader.
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Aug 29 18:31:05 UTC 2023 - 4.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeInputStream.java
*/ @Override public int available() throws IOException { try (SmbFileHandleImpl fd = this.handle.ensureOpen(); SmbTreeHandleImpl th = fd.getTree()) { if (th.isSMB2()) { final Smb2IoctlRequest req = new Smb2IoctlRequest(th.getConfig(), Smb2IoctlRequest.FSCTL_PIPE_PEEK, fd.getFileId()); req.setMaxOutputResponse(16);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.8K bytes - Viewed (0) -
src/main/java/jcifs/SmbPipeHandle.java
/** * Tests whether this file descriptor is open and valid. * * @return whether the FD is open and valid */ boolean isOpen(); /** * Tests whether this file descriptor was previously open but has become invalid. * * @return whether the FD was previously open but became invalid */ boolean isStale(); /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileInputStream.java
throw new IOException("Bad file descriptor"); } // ensure file is open try (SmbFileHandleImpl fd = ensureOpen(); SmbTreeHandleImpl th = fd.getTree()) { if (log.isTraceEnabled()) { log.trace("read: fid=" + fd + ",off=" + off + ",len=" + len); } final int type = this.file.getType(); int r, n;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.6K bytes - Viewed (0) -
src/cmd/asm/internal/lex/input.go
} in.expectNewline("#include") // Push tokenizer for file onto stack. fd, err := os.Open(name) if err != nil { for _, dir := range in.includes { fd, err = os.Open(filepath.Join(dir, name)) if err == nil { break } } if err != nil { in.Error("#include:", err) } } in.Push(NewTokenizer(name, fd, fd)) } // #line processing. func (in *Input) line() {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Sep 06 13:17:27 UTC 2024 - 12.5K bytes - Viewed (0) -
cmd/metacache-set.go
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 30.7K bytes - Viewed (0)