- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for O_RDWR (0.06 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/cmd/buildid/buildid.go
if len(newID) != len(id) { log.Fatalf("%s: build ID length mismatch %q vs %q", file, id, newID) } if len(matches) == 0 { return } f, err = os.OpenFile(file, os.O_RDWR, 0) if err != nil { log.Fatal(err) } if err := buildid.Rewrite(f, matches, newID); err != nil { log.Fatal(err) } if err := f.Close(); err != nil { log.Fatal(err) }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Jun 21 19:58:04 UTC 2024 - 1.7K 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) -
misc/go_android_exec/main.go
// See https://github.com/golang/go/issues/23795 or // https://issuetracker.google.com/issues/73230216. lockPath := filepath.Join(os.TempDir(), "go_android_exec-adb-lock") lock, err := os.OpenFile(lockPath, os.O_CREATE|os.O_RDWR, 0666) if err != nil { return 0, err } defer lock.Close() if err := syscall.Flock(int(lock.Fd()), syscall.LOCK_EX); err != nil { return 0, err }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Aug 21 17:46:57 UTC 2023 - 15.3K 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/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/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/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)