Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!cadence!cadence.com!bammi From: bammi@acae127.cadence.com (Jwahar R. Bammi) Newsgroups: comp.sys.atari.st Subject: Re: Can GCC treat printer like Message-ID: Date: 8 May 91 23:26:52 GMT References: <1912@do.maus.de> Sender: usenet@cadence.com (USENET News) Distribution: world,comp Organization: Cadence Design Systems Lines: 31 In-Reply-To: Martin_Koehling@do.maus.de's message of 5 May 91 19:10:00 GMT In article <1912@do.maus.de> Martin_Koehling@do.maus.de (Martin Koehling) writes: > When you tell GEMDOS to Fopen("AUX:",2 /*read/write*/), it will return > 0x0000fffeL. > This is the "device handle" for the serial port; it's WORD-negative, but ... > I suggest you try to find & fix it in the lib sources... > This problem is fixed in the lib. I belive it was first fixed at Patchlevel 63, but the fix is certainly there at the current Patchlevel 65. to determine if you have a fixed version, look in fcntl.h and it should contain the following lines at around line 81: #ifdef __MSHORT__ #define __SMALLEST_VALID_HANDLE (-3) #else #define __SMALLEST_VALID_HANDLE (0) #endif #define __OPEN_INDEX(x) (((short)(x)) + 3) cheers, -- -- -- bang: uunet!cadence!bammi jwahar r. bammi domain: bammi@cadence.com GEnie: J.Bammi CIS: 71515,155