home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v4 / text0013.txt < prev    next >
Encoding:
Internet Message Format  |  1987-06-30  |  2.4 KB

  1. Date: Thu, 12 Dec 85 09:28:06 EST
  2. From: Arnold Robbins <arnold%gatech.csnet@CSNET-RELAY.ARPA>
  3.  
  4. Chanpter 6: Input and Output Primitives
  5.  
  6. 6.2.1
  7.     The functions _open()_ and _creat()_ assign file descriptors as
  8.     well as having effects of creating a file on the file system...
  9.  
  10. Should be "as well as having effects of possibly creating a file.."
  11.                     ^^^^^^^^
  12. Creating a file every time isn't absolutely necessary.
  13.  
  14. ------------------
  15.  
  16. 6.3.1.4 Errors
  17.  
  18. The word "errrno" should be "errno" (two r's instead of three).
  19.  
  20. ------------------
  21.  
  22. 6.4.1.5 Notes (on dup and dup2)
  23.  
  24.     One of the options for the _fcntl()_ call operates in the same way
  25.     as the _dup()_ call.
  26.  
  27. Should be dup2, not dup.
  28.  
  29. -------------------
  30.  
  31. 6.6.1.2 Description (of read())
  32.  
  33.     ... or if the file is a pipe or special file.
  34.  
  35. Should probably be "is a pipe or character special file."
  36.  
  37. -------------------
  38.  
  39. 6.7.2.2. Description (of fcntl())
  40.  
  41.     F_SETFL    Set _file_ status flags to value indicated by the third
  42.         parameter, _arg_, taken as type _int_. Only the O_NDELAY
  43.         and O_APPEND flags can set; see <fcntl.h> 6.7.1.
  44.  
  45. It occurred to me that also allowing O_TRUNC, taking effect at the current
  46. position of the file pointer, would be a very easy way to implement the
  47. 4.2BSD truncate() call. This would also be upward compatible with current
  48. System V, since it is currently illegal to use O_TRUNC in an fcntl() call,
  49. so no (working) System V code would contain such a call. I hope that the
  50. committee would consider this idea carefully.
  51.  
  52. ==========================================================
  53.  
  54. Chapter 7: Device- and Class Specific Functions
  55.  
  56.     See Appendix C for provides alternatives being considered.
  57.  
  58. Delete the word "provides".
  59.  
  60. ==========================================================
  61.  
  62. Chapter 8: C Language Library
  63.  
  64. 8.1.3. Notes (on fileno())
  65.  
  66.     The _fileno_ function may be implemented as a macro and should not,
  67.     therefore, be re-declared.
  68.  
  69. Add to the end of the sentence "or have its address taken".
  70.  
  71. ===========================================================
  72.  
  73. Chapter 9: Passwords
  74.  
  75. 9.1.2 Description (of group access routines)
  76.  
  77.     char **    gr_mem    Null-terminated vector of pointers to the
  78.             individual member names.
  79.  
  80. Add "or numbers" to the end of this sentence.
  81.  
  82. ----------------------
  83.  
  84.  
  85. 9.2.3 Description (of password file access routines)
  86.  
  87.     A NULL pointer is returned on error or the end of the database
  88.     is encountered.
  89.  
  90. Should be "or when the end of the database..."
  91.  
  92. Volume-Number: Volume 4, Number 14
  93.  
  94.