From: "Peter Smithson" <[log in to unmask]>
> On Fri, 13 Sep 2002 10:43:34 GMT, [log in to unmask] (Peter
> Smithson) wrote:
>
> I've found that deleting the _mpe_fileno line fixes the problem with
> the COBOL/C program after noticing that filenum was 1 before and after
> the line -
>
> filenum= _mpe_fileno(filenum);
>
> when running the pure C program.
If you include <fcntl.h>, there are macros that shouldn't crash:
#define _MPE_FILENO(fd) (((fd)>2 && (fd)<10) ? (fd)+1014 : (fd))
/* POSIX file number to MPE file number */
#define _POSIX_FILENO(fn) (((fn)>1013 && (fn)<1024) ? (fn)-1014 : (fn))
/* MPE file number to POSIX file number */
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *