Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for FILE_SHARE_WRITE (1.07 sec)

  1. src/test/java/jcifs/SmbConstantsTest.java

            assertEquals(0x00, SmbConstants.FILE_NO_SHARE);
            assertEquals(0x01, SmbConstants.FILE_SHARE_READ);
            assertEquals(0x02, SmbConstants.FILE_SHARE_WRITE);
            assertEquals(0x04, SmbConstants.FILE_SHARE_DELETE);
            assertEquals(SmbConstants.FILE_SHARE_READ | SmbConstants.FILE_SHARE_WRITE | SmbConstants.FILE_SHARE_DELETE,
                    SmbConstants.DEFAULT_SHARING);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/com/SmbComOpenAndX.java

            if ((shareAccess & SmbConstants.FILE_SHARE_READ) != 0 && (shareAccess & SmbConstants.FILE_SHARE_WRITE) != 0) {
                this.desiredAccess |= SHARING_DENY_NONE;
            } else if (shareAccess == SmbConstants.FILE_NO_SHARE) {
                this.desiredAccess |= SHARING_DENY_READ_WRITE_EXECUTE;
            } else if ((shareAccess & SmbConstants.FILE_SHARE_WRITE) == 0) {
                this.desiredAccess |= SHARING_DENY_WRITE;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

        void testSetShareAccess() {
            request = new Smb2CreateRequest(mockConfig, "test.txt");
    
            int shareAccess = Smb2CreateRequest.FILE_SHARE_READ | Smb2CreateRequest.FILE_SHARE_WRITE | Smb2CreateRequest.FILE_SHARE_DELETE;
            request.setShareAccess(shareAccess);
    
            byte[] buffer = new byte[1024];
            request.writeBytesWireFormat(buffer, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

        /**
         * Enable other opens for read access
         */
        public static final int FILE_SHARE_READ = 0x1;
    
        /**
         * Enable other opens for write access
         */
        public static final int FILE_SHARE_WRITE = 0x2;
    
        /**
         * Enable other opens for delete access
         */
        public static final int FILE_SHARE_DELETE = 0x4;
    
        /**
         * If file exists, supersede it. Otherwise create the file
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 22.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFile.java

                    withOpen(th, Smb2CreateRequest.FILE_OPEN, FILE_WRITE_ATTRIBUTES, FILE_SHARE_READ | FILE_SHARE_WRITE, req);
                } else if (th.hasCapability(SmbConstants.CAP_NT_SMBS)) {
    
                    try (SmbFileHandleImpl f = openUnshared(O_RDONLY, FILE_WRITE_ATTRIBUTES, FILE_SHARE_READ | FILE_SHARE_WRITE, dir,
                            dir != 0 ? 0x0001 : 0x0040)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbFile.java

         * other SMB clients will be permitted to write to the target file while
         * this file is open. This constant may be logically OR'd with other share
         * access flags.
         */
        public static final int FILE_SHARE_WRITE = 0x02;
        /**
         * When specified as the {@code shareAccess} constructor parameter,
         * other SMB clients will be permitted to delete the target file while
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/SmbConstants.java

         * other SMB clients will be permitted to write to the target file while
         * this file is open. This constant may be logically OR'd with other share
         * access flags.
         */
        int FILE_SHARE_WRITE = 0x02;
        /**
         * When specified as the <code>shareAccess</code> constructor parameter,
         * other SMB clients will be permitted to delete the target file while
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java

        have exclusive access to the file. An additional open command
        from jCIFS or another application will fail with the "file is being
        accessed by another process" error. The <code>FILE_SHARE_READ</code>,
        <code>FILE_SHARE_WRITE</code>, and <code>FILE_SHARE_DELETE</code> may be
        combined with the bitwise OR '|' to specify that other peocesses may read,
        write, and/or delete the file while the jCIFS user has the file open.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbFileTest.java

                verify(smbFile).openUnshared(0, // SmbConstants.O_RDONLY = 0x01, but SmbFileInputStream uses 0
                        SmbFile.O_RDONLY, SmbConstants.DEFAULT_SHARING, // 7 = FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE
                        SmbConstants.ATTR_NORMAL, // 128
                        0);
            }
    
            @Test
            void testGetOutputStream() throws IOException {
                // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
Back to top