Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / November 2006



Tip: Looking for answers? Try searching our database.

Porting from BSD to OSX

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
4:7 Computers - 29 Nov 2006 18:12 GMT
I'm trying to port some code from BSD to OSX, and I'm wondering if
anyone can help me with something.  This code relied heavily on the BSD
SCSI interface in camlib.h (as well as cam/scsi/scsi_message.h and
cam/scsi/scsi_pass.h) to work with a CD drive.

Naturally, I'm not seeing these anywhere in OSX.  Is there an equivelent
somewhere?  Or does anyone know of a port I can use that provides a
similar high-level interface with the disk?  Any help would be much
appreciated, thank you.

Regards,
David
Reinder Verlinde - 29 Nov 2006 19:17 GMT
> I'm trying to port some code from BSD to OSX, and I'm wondering if
> anyone can help me with something.  This code relied heavily on the BSD
> SCSI interface in camlib.h (as well as cam/scsi/scsi_message.h and
> cam/scsi/scsi_pass.h) to work with a CD drive.

It would help if you explained what your tool attempts to do. The
solution for the problem you are solving may be different on Mac OS X.
If so, searching for the solution you know instead of _a_ solution for
your problem can be very frustrating.

> Naturally, I'm not seeing these anywhere in OSX.  Is there an equivelent
> somewhere?  Or does anyone know of a port I can use that provides a
> similar high-level interface with the disk?  Any help would be much
> appreciated, thank you.

I think you will want to start at
<http://developer.apple.com/documentation/DeviceDrivers/Conceptual/IOKitF
undamentals/Introduction/chapter_1_section_1.html#//apple_ref/doc/uid/TP0
000011-CH204-TPXREF101>

In particular, read the "Before You Begin" section. One thing it states
is:

  "You might have developed device drivers for other platforms‹
   Mac OS 9, perhaps, or BSD or another flavor of UNIX. One thing
   you¹ll discover reading this document is how different the
   approach is with the I/O Kit."

Reinder

P.S: if you Google for documentation, skip anything mentioning "SCSI
Manager", and include anything mentioning "I/O Kit"
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.