Mailing Lists: Apple Mailing Lists

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

Re: Does madvise(2) work under OS X?



On Wednesday, October 23, 2002, at 01:40 AM, Paul J. Lucas wrote:
	I have some code using mmap(2) and madvise(2) under FreeBSD and
	it works fine.  The same code under OS X 10.2 always returns
	EINVAL for madvise(2) with correct parameters.  (The address
	and size are the same as for mmap(2) and the call to mmap(2)
	itself works fine.)

Is madvise(2) broken under OS X ?

Can you provide a code snippet that causes this error? It should work.

--Jim
_______________________________________________
unix-porting mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
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.