From 5bb928b5e8b1f20dadcb75f6e01c4499c454aafe Mon Sep 17 00:00:00 2001 From: ahodgkinson Date: Mon, 31 Jul 2006 19:06:59 +0000 Subject: [PATCH] FTK change. According to the documentation posix_* routines do not set errno. Needed to make a couple of code changes to account for this. git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@728 0109f412-320b-0410-ab79-c3e0c5ffbbe6 --- ftk/src/ftkmem.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ftk/src/ftkmem.cpp b/ftk/src/ftkmem.cpp index b415b5c..711e269 100644 --- a/ftk/src/ftkmem.cpp +++ b/ftk/src/ftkmem.cpp @@ -4780,13 +4780,13 @@ RCODE FLMAPI f_allocAlignedBufferImp( #elif defined( FLM_SOLARIS) if( (*ppvAlloc = memalign( sysconf( _SC_PAGESIZE), uiMinSize)) == NULL) { - rc = f_mapPlatformError( errno, NE_FLM_MEM); + rc = RC_SET( NE_FLM_MEM); goto Exit; } #elif defined( FLM_LINUX) if( posix_memalign( ppvAlloc, sysconf( _SC_PAGESIZE), uiMinSize) != 0) { - rc = f_mapPlatformError( errno, NE_FLM_MEM); + rc = RC_SET( NE_FLM_MEM); goto Exit; } #elif defined( FLM_UNIX) @@ -4801,7 +4801,7 @@ RCODE FLMAPI f_allocAlignedBufferImp( PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0)) == MAP_FAILED) { - rc = f_mapPlatformError( errno, NE_FLM_MEM); + rc = RC_SET( NE_FLM_MEM); goto Exit; }