home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / std / c / 2383 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.5 KB  |  39 lines

  1. Newsgroups: comp.std.c
  2. Path: sparky!uunet!twwells!bill
  3. From: bill@twwells.com (T. William Wells)
  4. Subject: Re: does "always append" apply to "a+" mode?
  5. Organization: None, Mt. Laurel, NJ
  6. References: <24992@dog.ee.lbl.gov>
  7. Message-ID: <Bs5p54.3L7@twwells.com>
  8. Date: Wed, 29 Jul 1992 15:17:25 GMT
  9. Lines: 28
  10.  
  11. In article <24992@dog.ee.lbl.gov> torek@horse.ee.lbl.gov (Chris Torek) writes:
  12. :                       There is some dissent, however, on the grounds
  13. : that the second paragraph `overrides' the first, i.e., that the first
  14. : paragraph does not apply because of the '+' character.
  15.  
  16. Suggest that they take a remedial reading course before bothering
  17. you further. See:
  18.  
  19. # Opening a file with append mode (|'a'| as the first character
  20. ...                                             ^^^^^
  21. # When a file is opened with update mode (|'+'| as the second or
  22.                                ^^^^^^
  23. # third character in the above list of |mode| argument values), both
  24.   ^^^^^
  25. The first paragraph applies whenever the first character is an
  26. `a'; the second paragraph applies whenever the second or third
  27. character is a `+'. When the first and second characters are `a+'
  28. both paragraphs apply. There is no other reading possible.
  29.  
  30. :                   A number of existing implementations that claim POSIX
  31. : conformance (and hence ANSI X3.159-1989 conformance) do NOT always
  32. : append with "a+" mode; are they broken?
  33.  
  34. Yes.
  35.  
  36. ---
  37. Bill                            { uunet | decwrl | telesci }!twwells!bill
  38. bill@twwells.com
  39.