• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: may b a minor error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: may b a minor error


  • Subject: Re: may b a minor error
  • From: Andrew Gallatin <email@hidden>
  • Date: Thu, 15 Jun 2006 09:12:27 -0400 (EDT)

sugumaran narayanan writes:
 > Hi
 >    I am quite new to the Mac world...I am trying to
 > write(using xcode on tiger) a simple character
 > driver(openbsd.org example) and am facing few
 > problems...
 >
 >    During compile, struct uio is not recognized and I
 > get a dereferencing pointer to incomplete type
 > error...can somebody help...maybe I am not including
 > the correct libraries...

<....>

MacOSX does not allow access to core kernel structures like
uio on the theory that Apple may want to change them some day,
and does not want to break binary drivers when the structure
changes.  This is generally called the "KPI".

 >     amt = MIN(uio->uio_resid, (echomsg->len -
 > uio->uio_offset > 0) ?

For example, in the above code you want to use uio_resid(uio) and
uio_offset(uio).


Drew
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: may b a minor error
      • From: Terry Lambert <email@hidden>
References: 
 >may b a minor error (From: sugumaran narayanan <email@hidden>)

  • Prev by Date: may b a minor error
  • Next by Date: Re: may b a minor error
  • Previous by thread: may b a minor error
  • Next by thread: Re: may b a minor error
  • Index(es):
    • Date
    • Thread