Summary: Problem with opening large file on Solaris

From: Andreas Höschler <ahoesch_at_smartsoft.de>
Date: Sat Jun 13 2009 - 16:17:15 EDT
Hi all,

thanks a lot to

"Srivastava, Sanjaya" <ssrivastava@ebay.com>

who pointed out that there is a open64() function for large files! 
Works like a charm!

> I have the following file
>
> -rw-r--r--   1 ahoesch  other    4187646227 Apr 23 20:39 germany.osm
>
> and am trying to open it with
>
>     FILE *file = fopen([path cString], "rb");
>     if (file)
> 	{
> 	}	
>     else NSLog(@"%@ could not be opened! error %d", path, errno);
>
> When running this program I get
>
> OSMImport[25705] /home/ahoesch/openstreetmap/germany.osm could not be
> opened! error 79
>
> Shouldn't I be able to open 4GB files with fopen() on Solaris 10 x86?
> What am I doing wrong? I tried the same program on MacOSX. There it
> works perfectly!?

Regards,

   Andreas
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Sat Jun 13 16:18:06 2009

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:14 EST