- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for O_TRUNC (0.06 sec)
-
src/main/java/jcifs/smb1/smb1/SmbComOpenAndX.java
// searchAttributes searchAttributes = ATTR_DIRECTORY | ATTR_HIDDEN | ATTR_SYSTEM; // fileAttributes fileAttributes = 0; // openFunction if ((flags & SmbFile.O_TRUNC) == SmbFile.O_TRUNC) { // truncate the file if ((flags & SmbFile.O_CREAT) == SmbFile.O_CREAT) { // create it if necessary openFunction = OPEN_FN_TRUNC | OPEN_FN_CREATE;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComOpenAndXTest.java
*/ @BeforeEach void setUp() { andx = mock(ServerMessageBlock.class); } /** * Test constructor with O_CREAT and O_TRUNC flags. */ @Test void testConstructor_CreateAndTruncate() { int flags = SmbFile.O_CREAT | SmbFile.O_TRUNC; smbComOpenAndX = new SmbComOpenAndX(fileName, access, flags, andx); assertEquals(fileName, smbComOpenAndX.path);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComOpenAndX.java
// searchAttributes this.searchAttributes = SmbConstants.ATTR_DIRECTORY | SmbConstants.ATTR_HIDDEN | SmbConstants.ATTR_SYSTEM; // openFunction if ((flags & SmbConstants.O_TRUNC) == SmbConstants.O_TRUNC) { // truncate the file if ((flags & SmbConstants.O_CREAT) == SmbConstants.O_CREAT) { // create it if necessary
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndX.java
this.extFileAttributes = extFileAttributes; // shareAccess this.shareAccess = shareAccess; // createDisposition if ((flags & SmbConstants.O_TRUNC) == SmbConstants.O_TRUNC) { // truncate the file if ((flags & SmbConstants.O_CREAT) == SmbConstants.O_CREAT) { // create it if necessary this.createDisposition = FILE_OVERWRITE_IF;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComNTCreateAndXTest.java
static java.util.stream.Stream<Arguments> flagsProvider() { return java.util.stream.Stream.of( Arguments.of(SmbConstants.O_TRUNC | SmbConstants.O_CREAT, SmbComNTCreateAndX.FILE_OVERWRITE_IF), Arguments.of(SmbConstants.O_TRUNC, SmbComNTCreateAndX.FILE_OVERWRITE), Arguments.of(SmbConstants.O_CREAT | SmbConstants.O_EXCL, SmbComNTCreateAndX.FILE_CREATE),
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndX.java
this.extFileAttributes = extFileAttributes; // shareAccess this.shareAccess = shareAccess; // createDisposition if ((flags & SmbFile.O_TRUNC) == SmbFile.O_TRUNC) { // truncate the file if ((flags & SmbFile.O_CREAT) == SmbFile.O_CREAT) { // create it if necessary createDisposition = FILE_OVERWRITE_IF;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 6.5K 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)