From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,11acceb38e90ed0a X-Google-Attributes: gid103376,public From: "Thierry Lelegard" Subject: Re: Sequential_IO Data Portability Date: 2000/01/28 Message-ID: <86sqmi$p4v$1@minus.oleane.net>#1/1 X-Deja-AN: 578873636 Content-Transfer-Encoding: 7bit References: <38903e96@eeyore.callnetuk.com> X-Priority: 3 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: abuse@oleane.net X-Trace: minus.oleane.net 949087762 25759 194.2.208.226 (28 Jan 2000 19:29:22 GMT) Organization: Guest of OLEANE X-MSMail-Priority: Normal Mime-Version: 1.0 NNTP-Posting-Date: 28 Jan 2000 19:29:22 GMT Newsgroups: comp.lang.ada Date: 2000-01-28T19:29:22+00:00 List-Id: > A question was asked in GNAT chat recently as to (I hope I paraphrase > closely enough) whether, in general, the data written, via Sequential_IO, by > a brand of Ada compiler for one machine/OS target can be expected to be read > by a program, using the same type and Sequential_IO, compiled by the same > brand of compiler, but for a different target. This issue does not only depend on the compiler. It also depends on the target OS and/or file-system. On OS with a "primitive" implementation of files, a file is simply an unstructured stream of bytes. This includes all variants of UNIX and Windows (OK, this a large part of the computer base). However, on some other OS, a file is a structured set of records. In that case, Sequential_IO files are likely to be implemented as one file record for one Sequential_IO Put operation. In that case, pushing such a file on UNIX using a binary FTP will result in a file which contains many "metadata" from the source OS which are interpreted as data on UNIX. They are valid files for UNIX, but invalid for the compiler. On the contrary, pushing a UNIX file on the other OS will give an invalid file for the OS. One example of such an OS is OpenVMS (although OpenVMS also allows unstructured low-level binary I/O on files). -Thierry __________________<< WARNING: NEW ADDRESS AND TELEPHONE >>__________________ Thierry Lelegard, "The Jazzing Troll", Email: thierry.lelegard@canal-plus.fr CANAL+ Technologies, 34 place Raoul Dautry, 75516 Paris Cedex 15, France Tel: +33 1 71 71 54 30 Fax: +33 1 71 71 52 08 Mobile: +33 6 03 00 65 75 ____________________________________________________________________________