Solaris mktemp()

From: Rodrick Brown (rodrick.brown_at_gmail.com)
Date: 04/30/05


Date: Sat, 30 Apr 2005 14:49:32 GMT

I'm porting an application from Solaris to MacOSX and for some reason the
application just core dumps i've narrowed it down to the way mktemp()
behaves on Solaris compares to MacOSX any reason why this snipnett of code
would work on Solaris but not other OS's

Here is a a sample code of what the application is doing

  char *fifod;
  if (( fifod = mktemp("/tmp/A9XXXXXX")) == NULL)
  {
    perror("fatal: mktemp()");
    return NULL;
  }
  return fifod;

If there is a better way to do above i'm open to any working solution
thanks.

-- 
Rodrick R. Brown
Unix Systems Admin
http://www.rodrickbrown.com
rodrick.brown[@]gmail.com