- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 20 for O_TRUNC (0.05 sec)
-
src/test/java/jcifs/SmbConstantsTest.java
assertEquals(0x04, SmbConstants.O_APPEND); assertEquals(0x0010, SmbConstants.O_CREAT); assertEquals(0x0020, SmbConstants.O_EXCL); assertEquals(0x0040, SmbConstants.O_TRUNC); } @Test @DisplayName("Should define copy/move flags constants") void testCopyMoveFlags() { assertEquals(0x0001, SmbConstants.FLAGS_TARGET_MUST_BE_FILE);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileTest.java
var outputStream = smbFile.getOutputStream(); // Assert assertNotNull(outputStream); verify(smbFile).openUnshared(SmbConstants.O_CREAT | SmbConstants.O_WRONLY | SmbConstants.O_TRUNC, // 82 SmbConstants.O_WRONLY, // 2 SmbConstants.DEFAULT_SHARING, // 7, not FILE_SHARE_READ (1) SmbConstants.ATTR_NORMAL, // 128 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java
this.access = openFlags >>> 16 & 0xFFFF; if (file.type != SmbFile.TYPE_NAMED_PIPE) { file.open(openFlags, access, SmbFile.ATTR_NORMAL, 0); this.openFlags &= ~(SmbFile.O_CREAT | SmbFile.O_TRUNC); } else { file.connect0(); } readSize = Math.min(file.tree.session.transport.rcv_buf_size - 70, file.tree.session.transport.server.maxBufferSize - 70); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 9.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFile.java
private static void setCreateDisposition(final Smb2CreateRequest req, final int flags) { if ((flags & SmbConstants.O_TRUNC) == O_TRUNC && (flags & SmbConstants.O_CREAT) == O_CREAT) { req.setCreateDisposition(Smb2CreateRequest.FILE_OVERWRITE_IF); } else if ((flags & SmbConstants.O_TRUNC) == O_TRUNC) { req.setCreateDisposition(Smb2CreateRequest.FILE_OVERWRITE);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0) -
src/main/java/jcifs/SmbConstants.java
*/ int O_CREAT = 0x0010; /** * Fail if the file exists. */ int O_EXCL = 0x0020; /** * Truncate file if it exists. */ int O_TRUNC = 0x0040;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 12.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileInputStream.java
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/main/java/jcifs/smb1/smb1/SmbFile.java
// create if the file does not exist static final int O_CREAT = 0x0010; // fail if the file exists static final int O_EXCL = 0x0020; // truncate if the file exists static final int O_TRUNC = 0x0040; // share access /** * When specified as the {@code shareAccess} constructor parameter, * other SMB clients (including other threads making calls into jCIFS)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 112.2K bytes - Viewed (0) -
cmd/xl-storage.go
// Create or truncate an existing file before writing func (s *xlStorage) writeAllInternal(ctx context.Context, filePath string, b []byte, sync bool, skipParent string) (err error) { flags := os.O_CREATE | os.O_WRONLY | os.O_TRUNC var w *os.File if sync { // Perform DirectIO along with fdatasync for larger xl.meta, mostly when // xl.meta has "inlined data" we prefer writing O_DIRECT and then doing
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Jun 13 11:33:47 UTC 2025 - 91.7K bytes - Viewed (0) -
cmd/test-utils_test.go
if file.FileInfo().IsDir() { return os.MkdirAll(extractedFilePath, file.Mode()) } outputFile, err := os.OpenFile(extractedFilePath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, file.Mode()) if err != nil { return err } defer outputFile.Close() _, err = io.Copy(outputFile, zippedFile) return err }() if err != nil { return err }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 77K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.14.md
* Pre-existing log files are now opened with O_APPEND, instead of O_TRUNC. This helps prevent losing logs when components crash-loop, and also enables external log rotation utilities to truncate log files in-place without components extending log files to their pre-truncation sizes on subsequent writes. ([#74837](https...
Registered: Fri Sep 05 09:05:11 UTC 2025 - Last Modified: Mon Jun 14 22:06:39 UTC 2021 - 271.5K bytes - Viewed (0)