Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

munmap prototype changes from C to C++

807575Feb 14 2010 — edited Feb 15 2010
if you look up munmap(2) it is defined as

#include <sys/mman.h>
int munmap(void *addr, size_t len);

But when used in CC it becomes

typedef char * caddr_t ;

#include <map>
extern int munmap ( caddr_t , size_t ) ;

Is there any standard describing this change? Why is that change?

Bye...Frank
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 15 2010
Added on Feb 14 2010
3 comments
272 views