Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!dg!archive.webo.dg.com!bkahn From: bkahn@archive.webo.dg.com (Bruce Kahn) Newsgroups: comp.sys.apple2 Subject: Q: Orca/C and stat.h Keywords: Orca/C, C, Unix Message-ID: <923@dg.dg.com> Date: 7 Sep 90 16:26:16 GMT Sender: root@dg.dg.com Reply-To: bkahn@archive.webo.dg.com (Bruce Kahn) Organization: Data General Corporation, Westboro, MA Lines: 21 Im trying to port some programs from the MessDOS and Un*x worlds but some of them include the file and utilize the structure stat. The structure is used for calls like: struct stat statbuf; char *iomod; ... iomode = (stat(outfilename, &statbuf) == 0) ? "r+b" : "wb"; where iomode is then used in the fopen() routine to set the I/O mode for file access. I cant find any references to this structure in any of the Orca/C or APW include files. Is there an equivalent structure and call for the APW and Orca/C environments? Should I bite the bullet and just kludge the code (forcing iomode to a specific mode)? -- Bruce (bkahn@archive.rtp.dg.com or kahn@adam.dg.com) Standard disclaimers apply, except where prohibited by law...