Article View: gnu.gcc.help
Article #52226gnu gcc compiler on VMS (1.42) question on run-time library
From: Bob Pasker
Date: Thu, 21 Jan 1993 04:04
Date: Thu, 21 Jan 1993 04:04
28 lines
1724 bytes
1724 bytes
ok, i've installed 1.42 (from prep.ai.mit.edu) on my VAX/VMS 5.2 system and have been able to compile & run many programs. thanks mucho to the gnu folks & other helpers. it seems that the functions i would expect to be included with a C compiler have not come with GNU C, but instead the directions tell me to link with the VAX C run-time library (VAXCRTL). so, still ok, i have an old version of the VAX C complier on the machine (VAX-11 C 2.3). now, however, i see that there is a difference (bug?) in the VAXCRTL function versus the function included in the DOS compiler that i am busily converting from. the function read() is supposed to read the *exact* number of bytes (up to EOF), but the read() from VAXCRTL seems to act more like fgets() and returns only the first *line* of the file. can anyone shed some light on (1) why the GNU compiler doesnt have these intrinsic functions? if i didn't have the VAXCRTL would i be SOL? (2) why my read() of 720 bytes from a 720 byte file returns only the first 24 bytes (the first line)? thanks. -- -- -- bob pasker -- rbp@netcom.com --
Technical Details
Message-ID:
<1993Jan21.040409.13612@netcom.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!ub!dsinc!cs.widener.edu!umn.edu!csus.edu!netcom.com!rbpShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,5bab933b8a58c841,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-01-20 20:22:02 PST Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!ub!dsinc!cs.widener.edu!umn.edu!csus.edu!netcom.com!rbp From: rbp@netcom.com (Bob Pasker) Newsgroups: gnu.gcc.help Subject: gnu gcc compiler on VMS (1.42) question on run-time library Message-ID: <1993Jan21.040409.13612@netcom.com> Date: 21 Jan 93 04:04:09 GMT Organization: Netcom - Online Communication Services (408 241-9760 guest) Lines: 28