- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for O_RDWR (0.11 sec)
-
src/test/java/jcifs/SmbPipeResourceTest.java
} /** * Test if the PIPE_TYPE_RDWR constant has the correct value. */ @Test void testPipeTypeRdwr() { assertEquals(SmbConstants.O_RDWR, SmbPipeResource.PIPE_TYPE_RDWR, "PIPE_TYPE_RDWR should match SmbConstants.O_RDWR"); } /** * Test if the PIPE_TYPE_CALL constant has the correct value. */ @Test void testPipeTypeCall() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2K bytes - Viewed (0) -
src/main/java/jcifs/SmbPipeResource.java
*/ int PIPE_TYPE_WRONLY = SmbConstants.O_WRONLY; /** * The pipe should be opened for both reading and writing. */ int PIPE_TYPE_RDWR = SmbConstants.O_RDWR; /** * Pipe operations should behave like the <code>CallNamedPipe</code> Win32 Named Pipe function. */ int PIPE_TYPE_CALL = 0x0100; /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileTest.java
doNothing().when(mockFileHandle).close(0L); // Act smbFile.createNewFile(); // Assert verify(smbFile).openUnshared(SmbFile.O_RDWR | SmbFile.O_CREAT | SmbFile.O_EXCL, SmbFile.O_RDWR, SmbFile.FILE_NO_SHARE, SmbFile.ATTR_NORMAL, 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/SmbRandomAccessFile.java
this.file = file; if (mode.equals("r")) { this.openFlags = SmbFile.O_CREAT | SmbFile.O_RDONLY; } else if (mode.equals("rw")) { this.openFlags = SmbFile.O_CREAT | SmbFile.O_RDWR | SmbFile.O_APPEND; write_andx_resp = new SmbComWriteAndXResponse(); options = WRITE_OPTIONS; access = SmbConstants.FILE_READ_DATA | SmbConstants.FILE_WRITE_DATA; } else {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/SmbConstantsTest.java
void testOpenFlagsConstants() { assertEquals(0x01, SmbConstants.O_RDONLY); assertEquals(0x02, SmbConstants.O_WRONLY); assertEquals(0x03, SmbConstants.O_RDWR); assertEquals(0x04, SmbConstants.O_APPEND); assertEquals(0x0010, SmbConstants.O_CREAT); assertEquals(0x0020, SmbConstants.O_EXCL); assertEquals(0x0040, SmbConstants.O_TRUNC); }
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/main/java/jcifs/smb1/smb1/SmbNamedPipe.java
*/ public static final int PIPE_TYPE_WRONLY = O_WRONLY; /** * The pipe should be opened for both reading and writing. */ public static final int PIPE_TYPE_RDWR = O_RDWR; /** * Pipe operations should behave like the <code>CallNamedPipe</code> Win32 Named Pipe function. */ public static final int PIPE_TYPE_CALL = 0x0100; /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.5K bytes - Viewed (0) -
src/main/java/jcifs/SmbConstants.java
* Open for reading only. */ int O_RDONLY = 0x01; /** * Open for writing only. */ int O_WRONLY = 0x02; /** * Open for reading and writing. */ int O_RDWR = 0x03; /** * Open in append mode. */ int O_APPEND = 0x04; // Open Function Encoding /** * Create file if it does not exist. */ int O_CREAT = 0x0010;
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/SmbRandomAccessFile.java
this.access = SmbConstants.FILE_READ_DATA; } else if (mode.equals("rw")) { this.openFlags = SmbConstants.O_CREAT | SmbConstants.O_RDWR | SmbConstants.O_APPEND; this.write_andx_resp = new SmbComWriteAndXResponse(th.getConfig()); this.options = WRITE_OPTIONS;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFile.java
try (SmbTreeHandleImpl th = ensureTreeConnected()) { if (th.isSMB2()) { withOpen(th, Smb2CreateRequest.FILE_OPEN_IF, O_RDWR, 0, null); } else { try (SmbFileHandle fd = openUnshared(O_RDWR | O_CREAT | O_EXCL, O_RDWR, FILE_NO_SHARE, ATTR_NORMAL, 0)) { // close explicitly fd.close(0L); } }
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/smb1/smb1/SmbFile.java
* * @see java.io.File */ public class SmbFile extends URLConnection implements SmbConstants { static final int O_RDONLY = 0x01; static final int O_WRONLY = 0x02; static final int O_RDWR = 0x03; static final int O_APPEND = 0x04; // Open Function Encoding // create if the file does not exist static final int O_CREAT = 0x0010; // fail if the file exists
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 112.2K bytes - Viewed (0)