Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 653 for HANDLE (1.2 sec)

  1. cmd/os_windows.go

    	if err != nil {
    		return errInvalidArgument
    	}
    	data := &syscall.Win32finddata{}
    	handle, err := syscall.FindFirstFile(globAllP, data)
    	if err != nil {
    		if err = syscallErrToFileErr(dirPath, err); err == errFileNotFound {
    			return nil
    		}
    		return err
    	}
    	defer syscall.FindClose(handle)
    
    	for ; ; err = syscall.FindNextFile(handle, data) {
    		if err != nil {
    			if err == syscall.ERROR_NO_MORE_FILES {
    				break
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/NtStatusTest.java

            assertNotNull(messages[0]);
            assertTrue(messages[0].toLowerCase().contains("success") || messages[0].toLowerCase().contains("completed"));
        }
    
        @Test
        @DisplayName("Should handle access denied status")
        void testAccessDeniedStatus() {
            // Given
            int status = NtStatus.NT_STATUS_ACCESS_DENIED;
    
            // When/Then
            assertEquals((int) 0xC0000022L, status);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/AllocInfoTest.java

            @Test
            @DisplayName("Should handle zero values")
            void shouldHandleZeroValues() {
                // Given
                TestAllocInfo allocInfo = new TestAllocInfo(0L, 0L);
    
                // When & Then
                assertEquals(0L, allocInfo.getCapacity());
                assertEquals(0L, allocInfo.getFree());
            }
    
            @Test
            @DisplayName("Should handle maximum long values")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

                NtStatus.NT_STATUS_INVALID_PARAMETER })
        @DisplayName("Should handle various status codes")
        void testVariousStatusCodes(int status) {
            response.setStatusForTest(status);
            assertEquals(status, response.getErrorCode());
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 10, 100, 255 })
        @DisplayName("Should handle various credit values")
        void testVariousCreditValues(int credits) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            // When
            int bytesWritten = response.writeBytesWireFormat(buffer, offset);
    
            // Then
            assertEquals(0, bytesWritten);
        }
    
        @Test
        @DisplayName("Should handle error response structure size 9")
        void testReadBytesWireFormatErrorResponse() throws Exception {
            // Given
            byte[] buffer = new byte[256];
            int bufferIndex = 0;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

                configField.setAccessible(true);
                assertEquals(mockConfig, configField.get(request));
            }
    
            @Test
            @DisplayName("Should handle null configuration")
            void testConstructorWithNullConfig() {
                assertDoesNotThrow(() -> {
                    Smb2EchoRequest request = new Smb2EchoRequest(null);
                    assertNotNull(request);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbFileInputStream.java

         * @throws SmbException
         */
        synchronized SmbFileHandleImpl ensureOpen() throws CIFSException {
            if (this.handle == null || !this.handle.isValid()) {
                // one extra acquire to keep this open till the stream is released
                if (this.file instanceof SmbNamedPipe) {
                    this.handle = this.file.openUnshared(SmbConstants.O_EXCL, ((SmbNamedPipe) this.file).getPipeType() & 0xFF0000, this.sharing,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

        }
    
        @Test
        @DisplayName("Should handle different cipher IDs")
        void testDifferentCipherIds() {
            // Test cipher ID 1 (AES-CCM)
            Smb2EncryptionContext context1 = new Smb2EncryptionContext(1, DialectVersion.SMB311, testEncryptionKey, testDecryptionKey);
            assertEquals(1, context1.getCipherId(), "Should handle cipher ID 1");
    
            // Test cipher ID 2 (AES-GCM)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbPipeHandleInternal.java

         * @throws CIFSException if an error occurs connecting to the tree
         */
        SmbTreeHandleInternal ensureTreeConnected() throws CIFSException;
    
        /**
         * Ensures that the file handle is open and returns it.
         *
         * @return file handle
         * @throws CIFSException if an error occurs opening the file
         */
        SmbFileHandle ensureOpen() throws CIFSException;
    
        /**
         * Receive data from the pipe
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/WinErrorTest.java

            for (int i = 0; i < WinError.WINERR_CODES.length; i++) {
                handler.handle(WinError.WINERR_CODES[i], WinError.WINERR_MESSAGES[i]);
            }
    
            // Verify the collaborator is invoked exactly N times
            verify(handler, times(WinError.WINERR_CODES.length)).handle(anyInt(), anyString());
    
            // Capture one known interaction to verify argument integrity
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.4K bytes
    - Viewed (0)
Back to top