Hi All, We are trying to port a large image processing application that has been compiled for various Unices in the past. One of the sticking points is the need to specify an OS-specific FILE struct in a .h file of it's own. Does anyone know in what Darwin header we'd find this struct declared? We haven't been able to track stdio.h anywhere. Below I list examples of the platform specific io.h files given for other OS's: Thanks ahead of time for any help you can offer. Cheers, Bill Bug /* RS600io_h = "@(#)RS6000io.h 4.1 95/11/09 14:02:40" */ /********************************************* * RS6000io.h AIX 3.2 * subset of the stdio.h of IBM RS600 for inclusion in the SCIL interpreter * this file is substituted for <stdio.h> because of the limitations of * interpreter */ #ifndef _H_S_STDIO #define _H_S_STDIO #define BUFSIZ 4096 #define _SBFSIZ 8 typedef struct { unsigned char *_ptr; int _cnt; unsigned char *_base; unsigned char *_bufendp; short _flag; short _file; int __stdioid; char *__newbase; long _unused[1]; } FILE; #define NULL 0 #define EOF (-1) #endif /* dec5000io_h = "@(#)dec5000io.h 4.1 95/11/09 14:02:45" */ /********************************************* * dec5000io.h * subset of the stdio.h of dec5000 for inclusion in the SCIL interpreter * this file is substituted for <stdio.h> because of the limitations of * interpreter *********************************************/ #ifndef _H_S_STDIO_ #define _H_S_STDIO_ #define BUFSIZ 1024 typedef struct _iobuf { int _cnt; char *_ptr; char *_base; int _bufsiz; short _flag; short _file; } FILE; #define NULL 0 #define EOF (-1) #endif /* hpuxio_h = "@(#)hpuxio.h 4.1 95/11/09 14:02:49" */ /********************************************* * hpuxio.h * subset of the stdio.h of hpux systems for inclusion in the SCIL interpreter * this file is substituted for <stdio.h> because of the limitations of * interpreter ***********************************************/ #ifndef _H_S_STDIO #define _H_S_STDIO #define BUFSIZ 1024 #define _SBFSIZ 8 typedef struct { int __cnt; unsigned char *__ptr; unsigned char *__base; unsigned short __flag; unsigned char __fileL; /* low byte of file desc */ unsigned char __fileH; /* high byte of file desc */ } FILE; #define NULL 0 #define EOF (-1) #endif /* _H_S_STDIO */ /* sgiio_h = "@(#)sgiio.h 4.1 95/11/09 14:03:10" */ /********************************************* * sgiio.h * subset of the stdio.h of SGI for inclusion in the SCIL interpreter * this file is substituted for <stdio.h> because of the limitations of * interpreter *********************************************/ #ifndef _H_S_STDIO #define _H_S_STDIO #define BUFSIZ 8192 #define _SBFSIZ 8 typedef struct __file_s { int _cnt; unsigned char *_ptr; unsigned char *_base; short _flag; char _file; } FILE; #define NULL 0 #define EOF (-1) #endif /* sunio_h = "@(#)sunio.h 4.1 95/11/09 14:03:12" */ /********************************************* * sunio.h * subset of the stdio.h of Sun (3 and 4) for inclusion in the SCIL interpreter * this file is substituted for <stdio.h> because of the limitations of * interpreter ***********************************************/ #ifndef _H_S_STDIO #define _H_S_STDIO #define BUFSIZ 1024 #define _SBFSIZ 8 typedef struct { int _cnt; unsigned char *_ptr; unsigned char *_base; int _bufsiz; short _flag; char _file; } FILE; #define NULL 0 #define EOF (-1) #endif /* linuxio_h = "@(#)linuxio.h 4.1 97/08/19 13:47:15" */ /********************************************* * linuxio.h * subset of the stdio.h of linux for inclusion in the SCIL interpreter * this file is substituted for <stdio.h> because of the limitations of * interpreter ***********************************************/ #ifndef _H_S_STDIO #define _H_S_STDIO #define BUFSIZ 1024 typedef long FILE; /* dirty trick, but who cares ? */ #define NULL 0 #define EOF (-1) #endif Bill Bug Senior Analyst/Ontological Engineer Computer Vision Laboratory for Vertebrate Brain Mapping Department of Neurobiology & Anatomy Drexel University College of Medicine 2900 Queen Lane Philadelphia, PA 19129 215 991 8430 (ph) _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.