@@ -180,6 +180,37 @@ else version (CRuntime_UClibc)
180180 FILE * tmpfile ();
181181 }
182182}
183+ else version (Solaris )
184+ {
185+ static if (__USE_FILE_OFFSET64 && __WORDSIZE != 64 )
186+ {
187+ int fgetpos64 (FILE * , fpos_t * );
188+ alias fgetpos = fgetpos64;
189+
190+ FILE * fopen64 (in char * , in char * );
191+ alias fopen = fopen64;
192+
193+ FILE * freopen64 (in char * , in char * , FILE * );
194+ alias freopen = freopen64;
195+
196+ int fseek (FILE * , c_long, int );
197+
198+ int fsetpos64 (FILE * , in fpos_t* );
199+ alias fsetpos = fsetpos64;
200+
201+ FILE * tmpfile64 ();
202+ alias tmpfile = tmpfile64;
203+ }
204+ else
205+ {
206+ int fgetpos (FILE * , fpos_t * );
207+ FILE * fopen (in char * , in char * );
208+ FILE * freopen (in char * , in char * , FILE * );
209+ int fseek (FILE * , c_long, int );
210+ int fsetpos (FILE * , in fpos_t* );
211+ FILE * tmpfile ();
212+ }
213+ }
183214
184215//
185216// C Extension (CX)
@@ -246,6 +277,31 @@ else version (CRuntime_UClibc)
246277 off_t ftello (FILE * );
247278 }
248279}
280+ else version (Solaris )
281+ {
282+ enum L_ctermid = 9 ;
283+ enum L_cuserid = 9 ;
284+
285+ static if (__USE_FILE_OFFSET64 && __WORDSIZE != 64 )
286+ {
287+ int fseeko64 (FILE * , off_t , int );
288+ alias fseeko = fseeko64;
289+ }
290+ else
291+ {
292+ int fseeko (FILE * , off_t , int );
293+ }
294+
295+ static if (__USE_FILE_OFFSET64 && __WORDSIZE != 64 )
296+ {
297+ off_t ftello64 (FILE * );
298+ alias ftello = ftello64;
299+ }
300+ else
301+ {
302+ off_t ftello (FILE * );
303+ }
304+ }
249305else version (Posix )
250306{
251307 int fseeko (FILE * , off_t , int );
0 commit comments