home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.coherent:4065 comp.unix.sysv386:13654
- Path: sparky!uunet!mcsun!uknet!siesoft!athen!ztivax!lauther
- From: lauther@ztivax.UUCP (Dr Ulrich Lauther)
- Newsgroups: comp.os.coherent,comp.unix.sysv386
- Subject: fopen +a vs. +r bug or feature?
- Message-ID: <12923@ztivax.UUCP>
- Date: 26 Aug 92 15:40:13 GMT
- Reply-To: lauther@ztivax.siemens.com (Ulrich Lauther)
- Organization: Siemens, ZFE BT SE 14
- Lines: 14
-
- When I open a file via fopen(filename,"+a"), then fseek to the first byte
- of the file and try to read, I get EOF under Coherent, under SCO Unix it
- works.
- If I use +r instead of +a, it works on both systems.
- Who is right?
-
- BTW, above sequence is used in the AT&T Korn shell to access the history
- file and leads under Coherent to failure to recognize that file.
-
- [nosave]
- ----------------------------------------------------------------------------
- Ulrich Lauther ph: +49 89 636 48834 fx: ... 636 44950
- Siemens ZFE BT SE 14 Internet: lauther@ztivax.zfe.siemens.de
- from ems: lauther@ztivax:tcp-636-18:Mch P Siemens AG
-