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
This commit is contained in:
ahodgkinson
2006-07-31 19:06:59 +00:00
parent 04514f9da5
commit 5bb928b5e8

View File

@@ -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;
}