Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using VOP_READDIR



I'm having trouble using VOP_READDIR to get the contents of a directory. I keep getting one entry which is for ".". Does one call to VOP_READDIR put all directory entries into the buffer or does it need to be called multiple times? I'm treating the buffer as an array of dirent structs and jumping to the next one by moving d_reclen bytes over. Is this correct?

Could someone show an example?
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.