home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / coherent / 4065 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  1.0 KB

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