From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,e97027eea06b1c52,start X-Google-Attributes: gid1164f8,public From: Ray Muzic Subject: Problem reading file via DECNET Date: 1995/11/30 Message-ID: <49l77o$lsj@madeline.INS.CWRU.Edu>#1/1 X-Deja-AN: 120495530 content-type: text/plain; charset=us-ascii organization: Univ. Hospitals of Cleveland/CWRU mime-version: 1.0 newsgroups: comp.sys.dec x-mailer: Mozilla 1.2N (Windows; I; 32bit) >From a C program running on either a VAX/VMS or an ALPHA/VMS, I'd like to read the first 16Kbytes of some files. Some of the files exist on a Sun/Sparc and some exist on another VAX/VMS system. All accesses are done via DECNET. The program is able to open the data files on either system: if (fd = open(fname, O_RDONLY, 0, "rfm=fix:,"mrs=512")) == -1) fprintf(stderr,"Error: Could not open file: %s\n", fname); Although I can read the data just fine when the files are on the VAX, I cannot not read the data in files on the Sun: while ( ((n= read(fd, head+m, HEADSZ-m)) > 0) && (m