Lines Matching refs:uio

61 #include <sys/uio.h>
81 AddDirectoryEntry ( UInt32 nodeID, UInt8 type, const char * name, uio_t uio );
90 // AddDirectoryEntry - This routine adds a directory entry to the uio buffer
97 uio_t uio )
105 DebugAssert ( ( uio != NULL ) );
124 if ( uio_resid ( uio ) < directoryEntry.d_reclen )
138 uiomove ( ( caddr_t ) &directoryEntry, ( int ) sizeof ( directoryEntry ), uio );
412 uio_t uio = NULL;
421 uio = readArgsPtr->a_uio;
424 DebugAssert ( ( uio != NULL ) );
439 if ( uio_resid ( uio ) == 0 )
448 if ( uio_offset ( uio ) < 0 )
459 off_t offset = uio_offset ( uio );
466 if ( uio_offset ( uio ) > numBytes )
474 amountToCopy = ( UInt32 ) __u64min ( uio_resid ( uio ), numBytes - offset );
478 uio );
502 offset = uio_offset ( uio );
524 amountToCopy = ( UInt32 ) __u64min ( uio_resid ( uio ), headerSize - offset );
528 uio );
543 if ( ( uio_resid ( uio ) > 0 ) &&
549 amountToCopy = ( UInt32 ) __u64min ( uio_resid ( uio ), kPhysicalMediaBlockSize - offset );
553 uio );
567 if ( ( uio_resid ( uio ) > 0 ) &&
568 ( uio_offset ( uio ) < cddaNodePtr->u.file.nodeInfoPtr->numBytes ) )
582 count = ( UInt32 ) __u64min ( uio_resid ( uio ), ( kPhysicalMediaBlockSize - sectorOffset ) );
583 count = ( UInt32 ) __u64min ( count, cddaNodePtr->u.file.nodeInfoPtr->numBytes - uio_offset ( uio ) );
602 error = uiomove ( ( caddr_t ) ( ( char * ) buf_dataptr ( bufPtr ) + sectorOffset ), count, uio );
628 while ( ( uio_resid ( uio ) > kPhysicalMediaBlockSize ) &&
629 ( uio_offset ( uio ) < cddaNodePtr->u.file.nodeInfoPtr->numBytes ) )
635 if ( uio_resid ( uio ) > kMaxBytesPerRead )
643 blocksToRead = uio_resid ( uio ) / kPhysicalMediaBlockSize;
663 count = ( UInt32 ) __u64min ( count, cddaNodePtr->u.file.nodeInfoPtr->numBytes - uio_offset ( uio ) );
666 error = uiomove ( ( caddr_t ) buf_dataptr ( bufPtr ), count, uio );
691 if ( ( uio_resid ( uio ) > 0 ) &&
692 ( uio_offset ( uio ) < cddaNodePtr->u.file.nodeInfoPtr->numBytes ) )
695 count = ( UInt32 ) __u64min ( uio_resid ( uio ), cddaNodePtr->u.file.nodeInfoPtr->numBytes - uio_offset ( uio ) );
714 error = uiomove ( ( caddr_t ) buf_dataptr ( bufPtr ), count, uio );
767 uio_t uio = NULL;
778 uio = readDirArgsPtr->a_uio;
781 DebugAssert ( ( uio != NULL ) );
808 if ( uio_iovcnt ( uio ) > 1 )
817 if ( ( uint32_t ) uio_resid ( uio ) < sizeof ( struct dirent ) )
828 if ( uio_offset ( uio ) == 0 )
831 offsetValue = AddDirectoryEntry ( cddaNodePtr->nodeID, DT_DIR, ".", uio );
842 if ( uio_offset ( uio ) == direntSize )
845 offsetValue = AddDirectoryEntry ( cddaNodePtr->nodeID, DT_DIR, "..", uio );
856 if ( uio_offset ( uio ) == direntSize * kAppleCDDARootFileID )
859 offsetValue += AddDirectoryEntry ( kAppleCDDAXMLFileID, DT_REG, ".TOC.plist", uio );
884 DebugLog ( ( "uio_offset ( uio ) = %ld.\n", uio_offset ( uio ) ) );
885 DebugLog ( ( "uio_resid ( uio ) = %ld.\n", uio_resid ( uio ) ) );
887 if ( uio_offset ( uio ) == direntSize * ( index + kNumberOfFakeDirEntries ) )
896 uio );
913 DebugLog ( ( "eofflag = %d.\n", ( uio_offset ( uio ) >= direntSize * ( cddaMountPtr->numTracks + kNumberOfFakeDirEntries ) ) ? 1 : 0 ) );
916 *readDirArgsPtr->a_eofflag = ( uio_offset ( uio ) >= direntSize * ( cddaMountPtr->numTracks + kNumberOfFakeDirEntries ) ) ? 1 : 0;