home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / std_unix / volume.11 < prev    next >
Internet Message Format  |  1987-07-18  |  261KB

  1. From jsq  Sun Mar 29 12:31:21 1987
  2. Posted-Date: 24 Mar 87 15:15:04 GMT
  3. Received-Date: Sun, 29 Mar 87 12:31:21 CST
  4. Received: by sally.utexas.edu (5.54/5.51)
  5.     id AA21033; Sun, 29 Mar 87 12:31:21 CST
  6. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  7. Newsgroups: comp.std.unix
  8. Subject: comp.std.unix Volume 11 [Reposting.  -mod]
  9. Keywords: contents, index, summary, statistics
  10. Message-Id: <7615@ut-sally.UUCP>
  11. Sender: std-unix@ut-sally.UUCP
  12. Reply-To: std-unix@sally.utexas.edu
  13. Date: 24 Mar 87 15:15:04 GMT
  14. Apparently-To: std-unix-archive
  15.  
  16. From: std-unix@ut-sally.UUCP (Moderator, John Quarterman)
  17.  
  18. This is the first article in Volume 11 of comp.std.unix (formerly
  19. known as mod.std.unix).
  20.  
  21. The USENET newsgroup comp.std.unix is also known as the ARPA Internet
  22. mailing list std-unix@sally.utexas.edu.  It is for discussions of
  23. UNIX standards, particularly the IEEE 1003.1 POSIX Trial Use Standard.
  24. The moderator is John S. Quarterman, who is also the institutional
  25. representative of the USENIX Association to the IEEE P1003 Portable
  26. Operating System for Computer Environments Committee (commonly known
  27. as the UNIX Standards Committee).
  28.  
  29. Submissions-To:    ut-sally!std-unix    or std-unix@sally.utexas.edu
  30. Comments-To: ut-sally!std-unix-request    or std-unix-request@sally.utexas.edu
  31. UUCP-Routes: {gatech,harvard,ihnp4,seismo,pyramid,sequent}!ut-sally!std-unix
  32.  
  33. Permission to post to the newsgroup is assumed for mail to std-unix.
  34. Permission to post is not assumed for mail to std-unix-request,
  35. unless explicitly granted in the mail.  Mail to my personal addresses
  36. will be treated like mail to std-unix-request if it obviously refers
  37. to the newsgroup.
  38.  
  39. Archives may be found on sally.utexas.edu.  The current volume may
  40. be retreived by anonymous ftp (login anonymous, password guest)
  41. over the ARPA Internet as ~ftp/pub/comp.std.unix.  This is Volume 11.
  42. Volumes 1-10 are filed under the old newsgroup name, mod.std.unix,
  43. as ~ftp/pub/mod.std.unix.v1, ~ftp/pub/mod.std.unix.v2, etc., through
  44. ~ftp/pub/mod.std.unix.v10.  Volume 3 contains the AT&T public domain
  45. getopt(3).  Volume 10 is a special index volume that catalogs Volumes 1-9.
  46.  
  47. These volumes are strictly for administrative convenience.
  48. Paper copies of them get delivered to the P1003 committee chair
  49. from time to time and several members of the committee follow
  50. the newsgroup on-line.
  51.  
  52. Also, paper copies will soon be available from the office of the
  53. USENIX Association, in support of the Institutional Representative
  54. from USENIX to the IEEE P1003 committee.  Selection will be by
  55. whole volumes only, not by specific articles.  This service will
  56. be available when sufficient disk space is added to USENIX equipment
  57. in the next few months.
  58.  
  59.         USENIX Association
  60.         P.O. Box 7
  61.         El Cerrito, CA 94530
  62.         415-528-8649
  63.         {ucbvax,decvax}!usenix!office
  64.  
  65. The archives have been somewhat cleaned up in the process of indexing
  66. them.  Irrelevant mail headers have been deleted and "From " (not "From:")
  67. lines in text articles have been escaped or removed to avoid confusing
  68. mail reading programs.  An extra header, "Draft-9:", has been added to
  69. contain the index references by section of 1003.1 Draft 9 or related
  70. topic.  It is hoped that these changes, together with the access
  71. information in Volume 10, will make the archives more useful.
  72.  
  73. Finally, remember that any remarks by any committee member (especially
  74. including me) in this newsgroup do not represent any position (including
  75. any draft, proposed or actual, of a standard) of the committee as a
  76. whole or of any subcommittee unless explicitly stated otherwise
  77. in such remarks.
  78.  
  79. UNIX is a Registered Trademark of AT&T.
  80. POSIX is a Trademark of IEEE.
  81. IEEE is a Trademark of the Institute of Electrical and Electronics
  82.     Engineers, Inc.
  83.  
  84. PS:  If this article was garbled in transmission to you, that probably
  85. means it passed through a host still running B news 2.10, which doesn't
  86. understand moderated newsgroup names that don't start with "mod.".
  87. You should examine the Path: header, try to determine which host it is,
  88. and ask them to upgrade to 2.11.
  89.  
  90. Volume-Number: Volume 11, Number 1
  91.  
  92. From jsq  Fri Apr  3 22:01:06 1987
  93. Posted-Date: 2 Apr 87 20:20:23 GMT
  94. Received-Date: Fri, 3 Apr 87 22:01:06 CST
  95. Received: by sally.utexas.edu (5.54/5.51)
  96.     id AA01857; Fri, 3 Apr 87 22:01:06 CST
  97. From: Philip Kos <phil@osiris.uucp>
  98. Newsgroups: comp.std.unix
  99. Subject: Submission for comp-std-unix
  100. Keywords: POSIX standard outrageous claim
  101. Message-Id: <7720@ut-sally.UUCP>
  102. Sender: std-unix@ut-sally.UUCP
  103. Reply-To: phil@osiris.uucp (Philip Kos)
  104. Organization: Johns Hopkins Hospital
  105. Date: 2 Apr 87 20:20:23 GMT
  106. Apparently-To: std-unix-archive
  107.  
  108. >From: phil@osiris.UUCP (Philip Kos)
  109.  
  110. I realize that it's been awhile since I made it all the way to comp.std.unix
  111. in my list of newsgroups, so if I've missed something that makes this all
  112. blow back in my face, would someone please correct me?
  113.  
  114. I registered for UniForum back in January (actually I *was* registered by
  115. one of our division secretaries, along with everyone else in the division,
  116. although I never showed up there), and since then have been getting pounds
  117. of junk mail relating to using Unix in an MIS/DP sort of environment.  Well,
  118. the most recent piece of trash to come my way was an offer for three free
  119. complimentary issues of a magazine called _Unix_in_the_Office_, apparently
  120. produced by "Patricia Seybold's Office Computing Group".  I'm not really
  121. interested in anything the magazine has to offer, so I was about to throw
  122. it out when the word "Standard" in the flyer attracted my eye.  I read the
  123. paragraph and found the following claim:
  124.  
  125.     ".... Posix is a well-supported vendor-independent standard...."
  126.  
  127. Golly, I thought to myself.  Have they sped up the procedure that much?
  128. It seems like just a few months since I recall it going into the trial use
  129. period... have I missed the IEEE announcement, and all the discussion
  130. which must have accompanied it?  Or are these people just talking through
  131. their hats?
  132.  
  133. There are a number of other claims in the flyer which seem to stretch my
  134. capacity for belief, so I am assuming that these people are talking through
  135. their hats.  Also, the three free issues seem to turn into a $495 (and no,
  136. I didn't leave a decimal point out of that number) annual subscription rate
  137. if you don't cancel fast enough.  All in all, this looks like a Fast Buck
  138. production, and I don't think I'd trust anything I read in it farther than
  139. I can spit a weasel.  But it *has* been awhile since I was following this
  140. group, so I figured I'd ask before I go shooting my mouth off about how
  141. these people are talking through their hats...
  142.  
  143. Can anyone help me out here?
  144.  
  145.  
  146.  
  147. -- 
  148.                               ...!decvax!decuac -
  149. Phil Kos                                          \
  150. The Johns Hopkins Hospital    ...!seismo!mimsy  - -> !aplcen!osiris!phil
  151. Baltimore, MD                                     /
  152.                               ...!allegra!mimsy -
  153.  
  154.  
  155. [ The above opinions are those of the submittor.  Readers, please remember
  156. that this is a technical newsgroup when responding (i.e., no flames, please).
  157.  
  158. The Working Group hopes to get the Full Use Standard balloted by this
  159. fall (1987).  For the moment, there is only the Trial Use Standard.
  160. -mod ]
  161.  
  162. Volume-Number: Volume 11, Number 2
  163.  
  164. From jsq  Mon Apr  6 23:29:12 1987
  165. Posted-Date: 7 Apr 87 04:28:46 GMT
  166. Received-Date: Mon, 6 Apr 87 23:29:12 CDT
  167. Received: by sally.utexas.edu (5.54/5.51)
  168.     id AA11597; Mon, 6 Apr 87 23:29:12 CDT
  169. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  170. Newsgroups: comp.std.unix
  171. Subject: Why getpwent but not putpwent?
  172. Summary: POSIX supports application programs, not system administration
  173. Message-Id: <7736@ut-sally.UUCP>
  174. Reply-To: std-unix@sally.utexas.edu
  175. Date: 7 Apr 87 04:28:46 GMT
  176. Apparently-To: std-unix-archive
  177.  
  178. There's been a bit of discussion on UNIX-WIZARDS as to why POSIX
  179. doesn't include mechanisms for modifying the password database.
  180. I.e., it does include getpwent() to get entries from the database
  181. (without specifying whether the database is kept in a file or not),
  182. but does not include putpwent() or anything like it.
  183.  
  184. Basically, POSIX is intended to promote portability of application
  185. programs.  System administration functions (including at least just
  186. about anything that requires super-user privileges) are almost by
  187. definition not ordinary application programs, and the methods needed
  188. to implement them will likely vary radically from underlying system
  189. to system, anyway.
  190.  
  191. As another example, POSIX includes getgroups(), but not setgroups().
  192.  
  193. The Full Use Standard will have an appendix ``Rationale and Notes''
  194. to explain things like this.  If you have a favorite nit to pick,
  195. obscure section, omission, or ambiguity in the Trial Use standard,
  196. please submit it to this newsgroup (mail to std-unix@sally.utexas.edu)
  197. or, if you just want it considered for the Rationale, but not posted,
  198. send it to the moderator (mail to std-unix-request@sally.utexas.edu).
  199. Sally.utexas.edu is the same as ut-sally on UUCP mail network.
  200.  
  201. Volume-Number: Volume 11, Number 3
  202.  
  203. From jsq  Tue Apr 14 17:48:54 1987
  204. Posted-Date: 14 Apr 87 22:48:41 GMT
  205. Received-Date: Tue, 14 Apr 87 17:48:54 CDT
  206. Received: by sally.utexas.edu (5.54/5.51)
  207.     id AA21480; Tue, 14 Apr 87 17:48:54 CDT
  208. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  209. Newsgroups: comp.std.unix,comp.unix.questions,comp.org.usenix
  210. Subject: Access to UNIX-Related Standards
  211. Message-Id: <7802@ut-sally.UUCP>
  212. Sender: std-unix@ut-sally.UUCP
  213. Reply-To: std-unix@sally.utexas.edu (Moderator, John Quarterman)
  214. Date: 14 Apr 87 22:48:41 GMT
  215. Apparently-To: std-unix-archive
  216.  
  217. This is the latest in a series of similar mod.std.unix articles.
  218. Corrections and additions to this article are solicited.
  219.  
  220.  
  221. Access information is given in this article for the following standards:
  222. IEEE 1003.1 (POSIX), 1003.2 (shell/tools), 1003.3 (verification)
  223. /usr/group working groups on distributed file system, network interface,
  224.     graphics/windows, database, internationalization,
  225.     performance measurements, realtime, and security
  226. X3H3.6 (display committee)
  227. X3J11 (C language)
  228. /usr/group Standard
  229. System V Interface Definition (SVID, or The Purple Book)
  230. X/OPEN PORTABILITY GUIDE (The Green Book)
  231.  
  232.  
  233. UNIX is a Registered Trademark of AT&T.
  234. POSIX and IEEE are trademarks of the Institute of Electrical
  235.     and Electronic Engineers, Inc.
  236. X/OPEN is a licensed trademark of the X/OPEN Group Members.
  237.  
  238.  
  239. The IEEE P1003 Portable Operating System for Computer Environments Committee
  240. is sometimes known colloquially as the UNIX Standards Committee.
  241. They published the 1003.1 "POSIX" Trial Use Standard in April 1986.
  242. According to its Foreword:
  243.  
  244.     The purpose of this document is to define a standard
  245.     operating system interface and environment based on the
  246.     UNIX Operating System documentation to support application
  247.     portability at the source level.  This is intended for
  248.     systems implementors and applications software developers.
  249.  
  250. Published copies are available at $19.95,
  251. with bulk purchasing discounts available.
  252. Call the IEEE Computer Society in Los Angeles
  253.  
  254.         714-821-8380
  255.  
  256. and ask for Book #967.  Or contact:
  257.  
  258.         IEEE Service Center
  259.         445 Hoes Ln.
  260.         Piscataway, NJ 08854
  261.  
  262. and ask for "IEEE 1003.1 Trial Use Standard" - stock number SH10546.
  263.  
  264. The Trial Use Standard will be available for comments for a period
  265. such as a year.  The current target for a Full Use Standard is Fall 1987.
  266. IEEE has initiated the process to have the 1003.1 effort brought into
  267. the International Organization for Standardization (ISO) arena.
  268.  
  269. Machine readable copies of the Trial Use Standard are not and will 
  270. not be available.  A machine-readable "representation" of a draft
  271. between the Trial Use and Full Use Standards may be available when
  272. it is ready.
  273.  
  274. There is a paper mailing list by which interested parties may get
  275. copies of drafts of the standard.  To get on it, or to submit comments
  276. directly to the committee, mail to:
  277.  
  278.         James Isaak
  279.         Chairperson, IEEE/CS P1003
  280.         Digital Equipment    MK02-2/B05
  281.         Continental Blvd.
  282.         Merrimack, NH      03054-0403
  283.         decvax!jim
  284.         603-884-3692
  285.  
  286. Sufficiently interested parties may join the working group.
  287.  
  288. Related working groups are
  289.     group    subject        co-chairs
  290.     1003.2    shell and tools    Hal Jespersen (Unisoft), Don Cragun (Sun)
  291.     1003.3    verification    Roger Martin (NBS), Carol Raye (AT&T)
  292.  
  293. Inquiries regarding 1003.2 and 1003.3 should go to the same address
  294. as for 1003.1.
  295.  
  296.  
  297. The next scheduled meetings of the P1003 working groups are, in 1987:
  298.  
  299. April    20-21  1003.[23]  King Edward Hotel, Toronto    Host:  IBM
  300. April    22-24  1003.1     "
  301.         (Just before the Canadian UNIX Conference)
  302.     
  303. June    22-23  1003.1  Seattle (changed from USENIX week in Phoenix to
  304.          give us better working attendance)    No Host yet
  305. June    24-26  1003.[23]
  306.  
  307. Aug/Sept 31-4   East Coast Probably Washington DC area    No Host yet
  308.  OR Sept 14-18    Boston (Same Time/loc as X3J11)
  309. (Sept 7th is Labor day, and that week is ISO TC97 SC22 meeting in Wash DC)
  310.  
  311. There is also a balloting group (which intersects with the working group).
  312. This is more difficult.  Contact the committee chair for details.
  313. I will repost them in this newsgroup if there is sufficient interest.
  314.  
  315. Here are some details from Hal Jespersen regarding P1003.2:
  316.  
  317. The IEEE P1003.2 "Shell and Utilities" Working Group is developing a
  318. proposed standard to complement the 1003.1 POSIX standard.  It will
  319. consist of
  320.  
  321.     a shell command language (currently planned to be based on the
  322.     Bourne Shell),
  323.  
  324.     groups of utility programs, or commands,
  325.  
  326.     programmatic interfaces to the shell (system(), popen()) and
  327.     related facilities (regular expressions, file name expansion,
  328.     etc.)
  329.  
  330.     defined environments (variables, file hierarchies, etc) that
  331.     applications may rely upon
  332.  
  333. which will allow application programs to be developed out of existing
  334. pieces, in the UNIX tradition.  The scope of the standard emphasizes
  335. commands and features that are more typically used by shell scripts or
  336. C language programs than those that are oriented to the terminal user
  337. with windows, mice, visual shells, and so forth.
  338.  
  339. The group is currently seeking proposals for groupings of commands that
  340. may be offered by implementors.  As groups are identified, command
  341. descriptions will be solicited.  There is no requirement that the commands
  342. be in System V or BSD today, but they should realistically be commands 
  343. that are commonly found in most existing implementations.
  344.  
  345. Meetings are normally held in conjunction with the 1003.1 group and
  346. have a large membership overlap.  Future meetings will generally be held
  347. on the day or two preceding 1003.1.
  348.  
  349.  
  350. There are three Institutional Representatives to P1003:  John Quarterman
  351. from USENIX, Heinz Lycklama from /usr/group, and John Loman from X/OPEN.
  352.  
  353. As the one from USENIX, one of my functions is to get comments from the
  354. USENIX membership and the general public to the committee.  One of the
  355. ways I try to do that is by moderating this newsgroup, comp.std.unix
  356. (formerly known as mod.std.unix).  An article related to this one
  357. appeared in the September/October 1986 ;login: (The USENIX Association
  358. Newsletter).  I'm also currently on the USENIX Board of Directors.
  359. Comments, suggestions, etc., may be sent to
  360.  
  361.         John S. Quarterman
  362.         TIC
  363.         P.O. Box 14621
  364.         Austin TX 78761
  365.         512-837-7233
  366.         usenix!jsq
  367. For mod.std.unix (comp.std.unix):
  368. Comments:    ut-sally!std-unix-request std-unix-request@sally.utexas.edu
  369. Submissions:    ut-sally!std-unix        std-unix@sally.utexas.edu
  370.  
  371. The January/February 1987 issue of CommUNIXations (the /usr/group newsletter)
  372. contains a report by Heinz Lycklama on the /usr/group Technical Committee
  373. working groups which met in September 1986.
  374.  
  375. If you are interested in starting another working group, contact
  376. Heinz Lycklama:
  377.  
  378.         Heinz Lycklama
  379.         Interactive Systems Corp.
  380.         2401 Colorado Ave., 3rd Floor
  381.         Santa Monica, CA 90404
  382.         (213)453-8649
  383.         decvax!cca!ima!heinz
  384.  
  385.  
  386. Here is contact information for /usr/group working groups as taken from
  387. the CommUNIXations article mentioned above.
  388.  
  389. /usr/group Working Group on Distributed File System:
  390.     Dave Buck
  391.     D.L. Buck & Associates, Inc.
  392.     6920 Santa Teresa Bldg, #108
  393.     San Jose, CA 95119
  394.     (408)972-2825
  395.  
  396. /usr/group Working Group on Network Interface:
  397.     Gil McGrath
  398.     AT&T Information Systems
  399.     (201)522-6182
  400.  
  401. /usr/group Working Group on Internationalization:
  402.     Karen Barnes
  403.     Hewlett-Packard Co.
  404.     19447 Pruneridge Ave.
  405.     M/S 47U2
  406.     Cupertino, CA 95014
  407.     (408) 725-8111, ext 2438
  408.  
  409. /usr/group Working Group on Graphics/Windows:
  410.     Tom Greene
  411.     Apollo Computer, Inc.
  412.     (617)256-6600
  413.  
  414. /usr/group Working Group on Realtime:
  415.     Bill Corwin
  416.     Intel Corp.
  417.     5200 Elam Young Pkwy
  418.     Hillsboro, OR 97123
  419.     (503)681-2248
  420.  
  421. /usr/group Working Group on Database:
  422.     Val Skalabrin
  423.     Unify Corp.
  424.     1111 Howe Ave.
  425.     Sacramento, CA 95825
  426.     (916)920-9092
  427.  
  428. /usr/group Working Group on Performance Measurements:
  429.     Ram Celluri            Dave Hinant
  430.     AT&T Computer Systems        SCI Systems, Inc.
  431.     Room E15B            Ste 325, Pamlico Bldg
  432.     4513 Western Ave.        Research Triangle Pk, NC 27709
  433.     Lisle, IL 60532            (919)549-8334
  434.     (312)810-6223
  435.  
  436. /usr/group Working Group on Security:
  437.     Steve Sutton
  438.     Computer Systems Div.
  439.     Gould Inc.
  440.     1101 East University
  441.     Urbana, IL 61801
  442.     (217)359-0700
  443.  
  444.  
  445. The X3H3.6 display management committee has recently formed to develop
  446. a model to support current and future window management systems, yet
  447. is not based directly on any existing system.  The chair solicits
  448. help and participation:
  449.  
  450.         Georges Grinstein
  451.         wanginst!ulowell!grinstein
  452.  
  453.  
  454. The Abstract of the 1003.1 Trial Use Standard adds:
  455.  
  456.     This interface is a complement to the C Programming Language
  457.     in the C Information Bulletin prepared by Technical Committee X3J11
  458.     of the Accredited Standards Committee X3, Information Processing
  459.     Systems, further specifying an environment for portable application
  460.     software.
  461.  
  462. X3J11 is sometimes known as the C Standards Committee.  Their liaison to
  463. P1003 is
  464.  
  465.         Don Kretsch
  466.         AT&T
  467.         190 River Road
  468.         Summit, NJ 07901
  469.  
  470. A contact for information regarding publications and working groups is
  471.  
  472.         Thomas Plum
  473.         Vice Chair, X3J11 Committee
  474.         Plum Hall Inc.
  475.         1 Spruce Avenue
  476.         Cardiff, New Jersey 08232
  477.  
  478. The current document may be ordered from
  479.  
  480.         Global Press
  481.         2625 Hickory St.
  482.         P.O. Box 2504
  483.         Santa Anna, CA 92707-3783
  484.         U.S.A.
  485.         800-854-7179
  486.         +1-714-540-9870 (from outside the U.S., ask for extension 245.)
  487.         TELEX 692 373
  488.  
  489. who know X3J11 as X3.159.  The price is $65.
  490.  
  491.  
  492. The /usr/group Standard is a principal ancestor of P1003.1, X/OPEN,
  493. and X3J11.  It may be ordered for $15.00 from:
  494.  
  495.         /usr/group Standards Committee
  496.         4655 Old Ironsides Drive, Suite 200
  497.         Santa Clara, California 95054
  498.         (408)986-8840
  499.  
  500.  
  501. The System V Interface Definition (The Purple Book, or SVID).
  502. This is the AT&T standard and is one of the most frequently-used
  503. references of the IEEE 1003 committee.
  504.  
  505.         AT&T Customer Information Center
  506.         Attn:  Customer Service Representative
  507.         P.O. Box 19901
  508.         Indianapolis, IN 46219
  509.         U.S.A.
  510.  
  511.         800-432-6600 (Inside U.S.A.)
  512.         800-255-1242 (Inside Canada)
  513.         317-352-8557 (Outside U.S.A. and Canada)
  514.  
  515.     System V Interface Definition, Issue 2
  516.     should be ordered by the following select codes:
  517.  
  518.     Select Code:    Volume:        Topics:
  519.     320-011        Volume I    Base System
  520.                     Kernel Extension
  521.     320-012        Volume II    Basic Utilities Extension
  522.                     Advanced Utilities Extension
  523.                     Software Development Extension
  524.                     Administered System Extension
  525.                     Terminal Volume Interface Extension
  526.     320-013        Volume III    Base System Addendum
  527.                     Terminal Interface Extension
  528.                     Network Services Extension
  529.     307-131        I, II, III    (all three volumes)
  530.  
  531. The price is about 37 U.S. dollars for each volume or $84 for all three.
  532. Major credit cards are accepted for telephone orders:  mail orders
  533. should include a check or money order, payable to AT&T.
  534.  
  535.  
  536. The X/OPEN PORTABILITY GUIDE (The Green Book)
  537. is another reference frequently used by IEEE 1003.
  538.  
  539. The X/OPEN Group is "Ten of the world's major information system
  540. suppliers" (currently Bull, DEC, Ericsson, Hewlett-Packard, ICL,
  541. NIXDORF, Olivetti, Philips, Siemens, Unisys, and AT&T) who have
  542. produced a document intended to promote the writing of portable
  543. facilities.  They closely follow both SVID and POSIX, and cite
  544. the /usr/group standard as contributing, but X/OPEN's books
  545. cover a wider area than any of those.
  546.  
  547. The book is published by
  548.  
  549.         Elsevier Science Publishers B.V.
  550.         Book Order Department
  551.         P.O. Box 1991
  552.         1000 BZ Amsterdam
  553.         The Netherlands
  554.  
  555. and distributed in the U.S.A. and Canada by:
  556.  
  557.         Elsevier Science Publishing Company, Inc.
  558.         52 Vanderbilt Avenue
  559.         New York, NY 10017
  560.         U.S.A.
  561.  
  562. There are currently five volumes:
  563.     1) System V Specification Commands and Utilities
  564.     2) System V Specification System Calls and Libraries
  565.     3) System V Specification Supplementary Definitions
  566.     4) Programming Languages
  567.     5) Data Management
  568.  
  569. They take a large number of credit cards and other forms of payment.
  570.  
  571. Volume-Number: Volume 11, Number 4
  572.  
  573. From jsq  Tue Apr 14 17:48:54 1987
  574. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  575. Newsgroups: comp.std.unix
  576. Subject: Access to UNIX-Related Standards
  577. Message-Id: <7802@ut-sally.UUCP>
  578. Sender: std-unix@ut-sally.UUCP
  579. Reply-To: std-unix@sally.utexas.edu (Moderator, John Quarterman)
  580. Date: 14 Apr 87 22:48:41 GMT
  581. Apparently-To: std-unix-archive
  582.  
  583. Number 5 got lost somehow.
  584.  
  585. Volume-Number: Volume 11, Number 5
  586.  
  587. From jsq  Mon Apr 27 22:29:32 1987
  588. Posted-Date: 26 Apr 87 10:27:41 GMT
  589. Received-Date: Mon, 27 Apr 87 22:29:32 CDT
  590. Received: by sally.utexas.edu (5.54/5.51)
  591.     id AA18593; Mon, 27 Apr 87 22:29:32 CDT
  592. From: Doug Gwyn  <gwyn@brl-smoke.ARPA>
  593. Newsgroups: comp.std.unix
  594. Subject: new directory library
  595. Message-Id: <7889@ut-sally.UUCP>
  596. Sender: std-unix@ut-sally.UUCP
  597. Reply-To: gwyn@brl-smoke.uucp
  598. Organization: Ballistic Research Lab (BRL), APG, MD.
  599. Date: 26 Apr 87 10:27:41 GMT
  600. Apparently-To: std-unix-archive
  601.  
  602. [ I found this in comp.unix.wizards. -mod ]
  603.  
  604. I have just sent a totally revamped public-domain implementation
  605. of a set of (nearly) POSIX-compatible directory access routines
  606. to mod.sources.  It is intended to be the definitive implementation.
  607. Check the NOTES file bundled with the sources for more information.
  608.  
  609. Volume-Number: Volume 11, Number 6
  610.  
  611. From jsq  Sat May  9 13:57:22 1987
  612. Posted-Date: 9 May 87 18:57:09 GMT
  613. Received-Date: Sat, 9 May 87 13:57:22 CDT
  614. Received: by sally.utexas.edu (5.54/5.51)
  615.     id AA05992; Sat, 9 May 87 13:57:22 CDT
  616. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  617. Newsgroups: comp.std.unix
  618. Subject: alias problem fixed
  619. Message-Id: <8000@ut-sally.UUCP>
  620. Date: 9 May 87 18:57:09 GMT
  621. Apparently-To: std-unix-archive
  622.  
  623. There was a problem with the std-unix and std-unix-list aliases
  624. which caused all mail to them to get lost.  This evidently was
  625. the state of both aliases for about a month.  That period happened
  626. to coincide with the newsgroup name change, to which I attributed
  627. the lack of traffic.  I discovered and fixed the problem the other day.
  628.  
  629. So, if you've submitted something in the last month or so, I haven't
  630. been ignoring you, I just didn't get it.  Please resubmit.
  631.  
  632. For that matter, those of you who haven't submitted anything, please
  633. feel free to do so.
  634.  
  635. Volume-Number: Volume 11, Number 7
  636.  
  637. From jsq  Sat May  9 14:12:04 1987
  638. Posted-Date: 9 May 87 19:11:53 GMT
  639. Received-Date: Sat, 9 May 87 14:12:04 CDT
  640. Received: by sally.utexas.edu (5.54/5.51)
  641.     id AA06347; Sat, 9 May 87 14:12:04 CDT
  642. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  643. Newsgroups: comp.std.unix
  644. Subject: tar or cpio?
  645. Message-Id: <8001@ut-sally.UUCP>
  646. Date: 9 May 87 19:11:53 GMT
  647. Apparently-To: std-unix-archive
  648.  
  649. Section 10 of the POSIX Trial Use Standard (and of the current draft)
  650. describes a data interchange format based on the tar program.  The P1003.1
  651. Working Group has recently received two related proposals regarding that
  652. section:  one to add cpio format (including old-style, non c option format);
  653. the other to replace the tar format with cpio format.  It was also proposed
  654. in the latest Working Group meeting to drop section 10 altogether and let
  655. P1003.2 handle the issue.
  656.  
  657. As the moderator of this newsgroup, I solicit comments about what should
  658. be done with section 10.
  659.  
  660. As a Working Group member, I will take such comments into account when
  661. I submit a proposal in a few weeks.  If there is sufficient interest,
  662. I will post an outline of that proposal in the newsgroup (as myself,
  663. rather than as the moderator).  I can also post the already-submitted
  664. proposals.
  665.  
  666. Volume-Number: Volume 11, Number 8
  667.  
  668. From guy@sun.com Sun May 10 02:30:14 1987
  669. From: Guy Harris <guy@sun.com>
  670. Newsgroups: comp.std.unix
  671. Subject: Re: tar or cpio?
  672. Message-Id: <8006@ut-sally.UUCP>
  673. References: <8001@ut-sally.UUCP>
  674. Sender: std-unix@ut-sally.UUCP
  675. Reply-To: guy@sun.com (Guy Harris)
  676. Date: 10 May 87 07:27:25 GMT
  677. Apparently-To: std-unix-archive
  678.  
  679. From: guy@sun.com (Guy Harris)
  680.  
  681. > As the moderator of this newsgroup, I solicit comments about what should
  682. > be done with section 10.
  683.  
  684. One thing that should not be done, under any circumstances, is to
  685. replace "tar" with "cpio" - *especially* if it includes the old
  686. non-"-c" form.  The non-portable form is completely useless for
  687. moving data between systems with different byte orders unless you
  688. have a clever "cpio" that figures out that the byte order is
  689. backwards and undoes the damage.
  690.  
  691. I discovered this when trying to read a "cpio" tape made on a VAX in
  692. the old format; no combination of "cpio" byte-swapping options and
  693. "dd conv=swab" would help.  I finally ended up fixing our "cpio" to
  694. do the aforementioned look-at-the-header-and-undo-the-damage stuff.
  695.  
  696. The X/OPEN standard uses "cpio".  The rationale given exhibits a
  697. distressing degree of incompetence:
  698.  
  699.     If an exchange mdeium is to be read on a target machine that
  700.     is architecturally different from the source machine,
  701.     problems may arise concerning the ordering of bytes within a
  702.     word and words within a long word (see the portability guides
  703.     in Part III).  These can easily be handled when using "cpio"
  704.     as an exchange utility, while with "tar" it may be a little
  705.     more difficult.
  706.  
  707. Now, I will first note here that the *only* time I had a problem
  708. moving "tar" tapes between machines was when I had to move things to
  709. a Plexus.  The problem was *not* that the machines had different byte
  710. orders; the problem was that the Plexus had a typical brain-damaged
  711. Multibus tape controller that swapped bytes when it transferred data
  712. to and from memory.
  713.  
  714. "cpio" would not have made this any easier; the System III
  715. byte-swapping option did not swap the bytes on *all* blocks read, but
  716. just swapped the bytes on data blocks and in file names.  The intent
  717. here was clearly that you would read a tape written on a machine with
  718. a different byte order by doing something like
  719.  
  720.     dd if=/dev/rmt0 conv=swab | cpio -ids
  721.  
  722. "dd" would swap everything; "cpio -s" would un-swap everything but
  723. the binary data in the header.  (We pause to note that merely
  724. swapping the binary data in the header would be much more efficient,
  725. especially given that "dd" is somewhat of a pig.)  This works, but is
  726. less than wonderful.  (And it doesn't solve the problem with the
  727. Plexus; to solve that you just stick the "dd" in front of "cpio" and
  728. don't bother with "-s" at all.)
  729.  
  730. The System V "cpio" byte-swapping and word-swapping options work
  731. *only* on data blocks; they have no effect whatsoever on binary data
  732. in the header or on file names.  This means that the trick that
  733. worked with the System III "cpio" wouldn't work at all - and the
  734. problem with the Plexus still isn't fixed, if that was the intent.
  735. The S5 options are useless for old-style non-"-c" tapes.  They are of
  736. some use with "-c" tapes - but only if all the files on the tape
  737. consist solely of "short"s or "long"s, since the data in the data
  738. blocks are all byte-swapped or word-swapped in the same fashion.
  739. Most files I tend to put on or extract from "cpio" tapes are text
  740. files, which obviously need no swapping.
  741.  
  742. In short, the arguments offered by X/OPEN in favor of "cpio" are
  743. completely bogus.
  744.  
  745. Now for the arguments against "cpio" format:
  746.  
  747.     1) It is somewhat more UNIX-specific, in that the "mode"
  748.        field of the "stat" structure is written out numerically.
  749.        POSIX does not specify required numeric values for this
  750.        field.  "tar" indicates the file type with a standard
  751.        symbolic code, so you can read "tar" tapes even if the
  752.        machine on which the tape was written and the machine on
  753.        which it is being read do not have the same values for
  754.        this field.
  755.  
  756.     2) It does not handle hard links particularly elegantly.
  757.        "cpio" knows nothing of files with multiple hard links
  758.        when it writes a tape; if it is told to write "foo" and
  759.        "bar" to the tape, and they are both hard links to the
  760.        same file, it writes two copies of this file to the tape.
  761.        The hard links are established when the tape is read.
  762.        If the files appear on the tape in the order "foo" and
  763.        then "bar", "foo" will be read in first.  Once "bar" has
  764.        been read in, "cpio" will check to see if it has already
  765.        read in a file with the same dev/inumber value.  If so, it
  766.        will delete "bar" and make a hard link to "foo" called
  767.        "bar".
  768.  
  769.     3) It is less common.  Almost all UNIX systems that support
  770.        "cpio" also support "tar"; many UNIX systems that support
  771.        "tar" do not support "cpio".
  772.  
  773.     4) POSIX has already chosen "tar" format; why should it
  774.        change horses in midstream, especially given that the new
  775.        horse is lame and, despite the claims made by the person
  776.        selling the horse, is not capable of pulling any heavier
  777.        loads than the existing one?
  778.  
  779. Anyway, I'll have to dig up the proposal made to POSIX that "cpio"
  780. supplement or replace "tar" and cast a very strong "no" vote citing
  781. the above.
  782.  
  783. Now, as for the proposal for handing the whole thing off to P1003.2 -
  784. I have some inclination to support this.  It could, in some ways, be
  785. considered neither part of the scope of P1003.1 nor of P1003.2, but
  786. to be a separate standardization topic entirely.  However, if I had
  787. to choose which of the two items - C-language binding to OS
  788. system call and library functions, or command-language functions -
  789. the data interchange standard belonged to, I'd vote in favor of the
  790. latter.  There is no library of functions for reading or writing
  791. "tar" tapes, but there is a command (namely, "tar") for reading and
  792. writing them, so I think it belongs in that category - especially
  793. given that Section 10 currently says "A conforming system shall
  794. implement a user utility..." which really sounds a lot more like
  795. a P1003.2 requirement than a P1003.1 requirement.
  796.  
  797. Volume-Number: Volume 11, Number 9
  798.  
  799. From jsq  Sun May 10 23:26:37 1987
  800. Posted-Date: 11 May 87 01:44:29 GMT
  801. Received-Date: Sun, 10 May 87 23:26:37 CDT
  802. Received: by sally.utexas.edu (5.54/5.51)
  803.     id AA02187; Sun, 10 May 87 23:26:37 CDT
  804. From: Charles Hedrick <hedrick@topaz.rutgers.edu>
  805. Newsgroups: comp.std.unix
  806. Subject: Re: tar or cpio?
  807. Message-Id: <8007@ut-sally.UUCP>
  808. References: <8001@ut-sally.UUCP>
  809. Sender: std-unix@ut-sally.UUCP
  810. Reply-To: hedrick@topaz.rutgers.edu (Charles Hedrick)
  811. Date: 11 May 87 01:44:29 GMT
  812. Apparently-To: std-unix-archive
  813.  
  814. From: hedrick@topaz.rutgers.edu (Charles Hedrick)
  815.  
  816. Since tar exists (as far as I know) on all Unix systems, and cpio only
  817. on ATT ones, tar seems like the best choice for portable use.
  818. Obviously any real POSIX will have both tar and cpio, but why not
  819. leave the standard at tar?  (Note that I haven't read the POSIX
  820. standard, so all I know about the question is what you mentioned in
  821. your note.  I'm responding as if the choice is between the existing
  822. tar or cpio programs.  If this is a new facility that will require a
  823. new program to be written, then I have no comment.)
  824.  
  825. [ The format in POSIX is upwardly compatible with existing tar programs.
  826. The format proposed for cpio is that of the current cpio program.  -mod ]
  827.  
  828. By the way, what ever happened about job control?  I recall some
  829. discussion, but not the final resolution.  I had hoped that POSIX
  830. would manage to get a few BSD features into general circulation.
  831. Clearly from the end user's point of view, job control is the one most
  832. important thing missing from System V.  (Actually networking is more
  833. important, but it's not clear whether that is the sort of thing POSIX
  834. should be concerned about.)
  835.  
  836. [ Job control (the HP proposal) is in the current draft.  Networking
  837. is outside the scope of P1003.1, but there is a /usr/group Technical
  838. Committee addressing the subject with the intention of eventually
  839. providing input to an appropriate IEEE Working Group.  -mod ]
  840.  
  841. Volume-Number: Volume 11, Number 10
  842.  
  843. From jsq  Sun May 10 23:47:40 1987
  844. Posted-Date: 11 May 87 04:47:29 GMT
  845. Received-Date: Sun, 10 May 87 23:47:40 CDT
  846. Received: by sally.utexas.edu (5.54/5.51)
  847.     id AA02477; Sun, 10 May 87 23:47:40 CDT
  848. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  849. Newsgroups: comp.std.unix
  850. Subject: tar or cpio?
  851. Message-Id: <8008@ut-sally.UUCP>
  852. Refernces: <8001@ut-sally.UUCP>
  853. Date: 11 May 87 04:47:29 GMT
  854. Apparently-To: std-unix-archive
  855.  
  856. There have been three documents submitted to the IEEE P1003.1
  857. Working Group recently regarding section 10:
  858.  
  859. N.043    April 22 1987    ``X/OPEN Proposals to IEEE P1003.1,'' X/OPEN Group,
  860. Section 3.25, ``Data Interchange format.''
  861.  
  862. N.048    April 15, 1987    ``a proposal for a cpio format to be added to
  863. Chapter 10,'' Lorraine C. Kevra, AT&T.
  864.  
  865. N.064    April 23, 1987    ``Comments on 1003.1 N.048,'' Dominic Dunlop.
  866.  
  867. They're about a page apiece.  I may feel energetic enough to type them in.
  868.  
  869. Volume-Number: Volume 11, Number 11
  870.  
  871. From jsq  Mon May 11 00:03:31 1987
  872. Posted-Date: 11 May 87 04:05:44 GMT
  873. Received-Date: Mon, 11 May 87 00:03:31 CDT
  874. Received: by sally.utexas.edu (5.54/5.51)
  875.     id AA02698; Mon, 11 May 87 00:03:31 CDT
  876. From: Doug Gwyn <gwyn@brl.arpa>
  877. Newsgroups: comp.std.unix
  878. Subject: tar or cpio?
  879. Message-Id: <8009@ut-sally.UUCP>
  880. References: <8001@ut-sally.UUCP>
  881. Sender: std-unix@ut-sally.UUCP
  882. Reply-To: gwyn@brl.arpa (VLD/VMB)
  883. Date: 11 May 87 04:05:44 GMT
  884. Apparently-To: std-unix-archive
  885.  
  886. From: gwyn@brl.arpa (Doug Gwyn)
  887.  
  888. Let's get the 1003.1 standard adopted and worry about perfection later.
  889.  
  890. In the real world one HAS to have a working "tar" if one exchanges files
  891. with many random UNIX sites, even if "cpio" might be better technically.
  892.  
  893. Any proposal for CPIO format that is system-dependent ("old cpio")
  894. rather than portable ("new cpio") should be rejected out of hand.
  895.  
  896. 1003.2 should probably include the "cpio" utility, which has many uses
  897. besides tape archives.  1003.1 should stick to "tar" for tape archives,
  898. or remove that section altogether.
  899.  
  900. I would prefer to remove tape archive format altogether from what is
  901. supposed to be a program/system interface specification (1003.1).  There
  902. simply isn't a single universal interchange medium anyway (not every
  903. system has 1/2" magtape, for example).
  904.  
  905. Volume-Number: Volume 11, Number 12
  906.  
  907. From jsq  Mon May 11 00:30:42 1987
  908. Posted-Date: 11 May 87 05:30:31 GMT
  909. Received-Date: Mon, 11 May 87 00:30:42 CDT
  910. Received: by sally.utexas.edu (5.54/5.51)
  911.     id AA03147; Mon, 11 May 87 00:30:42 CDT
  912. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  913. Newsgroups: comp.std.unix
  914. Subject: tar or cpio?  N.043
  915. Message-Id: <8010@ut-sally.UUCP>
  916. References: <8006@ut-sally.UUCP> <8001@ut-sally.UUCP>
  917. Date: 11 May 87 05:30:31 GMT
  918. Apparently-To: std-unix-archive
  919.  
  920. N.043    April 22 1987    ``X/OPEN Proposals to IEEE P1003.1,'' X/OPEN Group,
  921. Section 3.25, ``Data Interchange format.''
  922.  
  923. POSIX c 10
  924.  
  925. POSIX describes a new data interchange format known as *ustar*.
  926. The XVS has adopted the use of *cpio -c*, a format which is already
  927. widely accepted and in common use.
  928.  
  929. X/OPEN sees no reason to define a new format which will require
  930. implementaion by all supliers and which will significantly reduce
  931. the usability of media in this format in an environment where certain
  932. systems do not support the new format.
  933.  
  934. X/OPEN has published details of the cpio header format, see *cpio(4)*
  935. in the XVS, the cpio utility *cpio(1)* and also the hardware requirements
  936. for floppy disk and magnetic tape, *sct(7)* and *XVS SOURCE CODE TRANSFER*
  937. in Volume 3.  These definitions are in the public domain.
  938.  
  939. X/OPEN proposes that POSIX drops the new *ustar* in favour of *cpio*.
  940.  
  941. Volume-Number: Volume 11, Number 13
  942.  
  943. From jsq  Mon May 11 00:50:18 1987
  944. Posted-Date: 11 May 87 05:50:10 GMT
  945. Received-Date: Mon, 11 May 87 00:50:18 CDT
  946. Received: by sally.utexas.edu (5.54/5.51)
  947.     id AA03339; Mon, 11 May 87 00:50:18 CDT
  948. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  949. Newsgroups: comp.std.unix
  950. Subject: tar or cpio?  N.048
  951. Message-Id: <8011@ut-sally.UUCP>
  952. References: <8006@ut-sally.UUCP> <8001@ut-sally.UUCP>
  953. Date: 11 May 87 05:50:10 GMT
  954. Apparently-To: std-unix-archive
  955.  
  956.  
  957. N.048    April 15, 1987    ``a proposal for a cpio format to be added to
  958. Chapter 10,'' Lorraine C. Kevra, AT&T.
  959.  
  960. Secretary, IEEE Standards Board:
  961.  
  962. The attached is a proposal for a cpio format to be added to Chapter 10
  963. (Data Interchange Format) of the POSIX Standard.
  964.  
  965.                         Lorraine C. Kevra
  966.  
  967. NAME
  968.     cpio - format of cpio archive
  969.  
  970. DESCRIPTION
  971.     The *header* structure, when the -c option of *cpio*(1) is not used, is:
  972.  
  973.         struct {
  974.             short    h_magic,
  975.                 h_dev;
  976.             ushort    h_ino,
  977.                 h_mode,
  978.                 h_uid,
  979.                 h_gid;
  980.             short    h_nlink,
  981.                 h_rdev,
  982.                 h_mtime[2],
  983.                 h_namesize,
  984.                 h_filesize[2],
  985.             char    h_name[h_namesize rounded to word];
  986.         } Hdr;
  987.  
  988.     When the -c option is used, the *header* information is described by:
  989.  
  990.         sscanf(Chdr,"%6o%6o%6o%6o%6o%6o%6o%6o%11lo%6o%11lo%s",
  991.             &Hdr.h_magic,&Hdr.h_dev,&Hdr.h_ino,&Hdr.h_mode,
  992.             &Hdr.h_uid,&Hdr.h_gid,&Hdr.h_nlink,&Hdr.h_rdev,
  993.             &Longtime,&Hdr.h_namesize,&Longfile,&Hdr.h_name);
  994.  
  995.     *Longtime* and *Longfile* are equivalent to *Hdr.h_mtime* and
  996.     *Hdr.h_filesize*, respectively.  The contents of each file are
  997.     recorded in an element of the array of varying length structures,
  998.     *archive*, together with other items describeing the file.
  999.     Every instance of *h_magic* contains the constant 070707
  1000.     (octal).  The items *h_dev* through *h_mtime* have meanings
  1001.     explained in *stat*(2).  The length of the null-terminated path
  1002.     name *h_name*, including the null byte, is given by
  1003.     *h_namesize*.
  1004.  
  1005.     The last record of the *archive* always contains the name TRAILER!!!.
  1006.     Special files, directories, and the trailer are recorded with
  1007.     *h_filesize* equal to zero.
  1008.  
  1009. SEE ALSO
  1010.     stat(2) in the *Programmer's Reference Manual*.
  1011.     cpio(1), find(1) in the *User's Reference Manual*.
  1012.  
  1013. Volume-Number: Volume 11, Number 14
  1014.  
  1015. From jsq  Mon May 11 01:08:22 1987
  1016. Posted-Date: 11 May 87 06:08:01 GMT
  1017. Received-Date: Mon, 11 May 87 01:08:22 CDT
  1018. Received: by sally.utexas.edu (5.54/5.51)
  1019.     id AA03699; Mon, 11 May 87 01:08:22 CDT
  1020. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  1021. Newsgroups: comp.std.unix
  1022. Subject: tar or cpio?  N.064
  1023. Message-Id: <8012@ut-sally.UUCP>
  1024. References: <8006@ut-sally.UUCP> <8001@ut-sally.UUCP>
  1025. Date: 11 May 87 06:08:01 GMT
  1026. Apparently-To: std-unix-archive
  1027.  
  1028.  
  1029. N.064    April 23, 1987    ``Comments on 1003.1 N.048,'' Dominic Dunlop.
  1030.  
  1031. Comments on 1003.1 N48 (addition of cpio format to 1003.1 chapter 10)
  1032.  
  1033. 1.
  1034. The structure proposed is archaic, in that it uses
  1035.     short    h_mtime[2]    and
  1036.     short    h_filesize[2]
  1037. yet says nothing about the ordering of the half-words
  1038. in the array.  This allows the possibility that different
  1039. implementations could make different "big endian" vs.
  1040. "little endian" decisions on the same underlying
  1041. architecture.
  1042.  
  1043.     Proposal: replace declarations above with
  1044.         long    h_mtime    and
  1045.         long    h_filesize
  1046.                 or with
  1047.         time_t    h_mtime
  1048.         off_t    h_filesize
  1049.  
  1050. (Former probably more compatible with "shape" of
  1051. existing structgure; latter, using same types as
  1052. corresponding fields in struct stat, arguably
  1053. more correct (this argument could be extended
  1054. to other fields in struct Hdr as well)).
  1055.  
  1056. 2.
  1057. Scanf format is incorrect.  It should be
  1058.  
  1059.         "%6ho%6ho%6ho%6ho%6ho%6ho%6ho%6ho%11lo%6ho%11lo%s"
  1060.  
  1061. (As I know to my cost, format published by AT&T
  1062. does not work on architectures where
  1063.         sizeof(int) == sizeof(long)
  1064. )
  1065.  
  1066.                 Dominic Dunlop    4/23/87
  1067.  
  1068. Volume-Number: Volume 11, Number 15
  1069.  
  1070. From jsq  Mon May 11 07:08:09 1987
  1071. Posted-Date: 10 May 87 23:00:12 GMT
  1072. Received-Date: Mon, 11 May 87 07:08:09 CDT
  1073. Received: by sally.utexas.edu (5.54/5.51)
  1074.     id AA08566; Mon, 11 May 87 07:08:09 CDT
  1075. From: Ralph Barker <ralph@ralmar.uucp>
  1076. Newsgroups: comp.std.unix
  1077. Subject: Re: tar or cpio?
  1078. Message-Id: <8013@ut-sally.UUCP>
  1079. References: <8001@ut-sally.UUCP>
  1080. Sender: std-unix@ut-sally.UUCP
  1081. Reply-To: ralph@ralmar.uucp
  1082. Date: 10 May 87 23:00:12 GMT
  1083. Apparently-To: std-unix-archive
  1084.  
  1085. From: ralph@ralmar.uucp (Ralph Barker)
  1086.  
  1087. Relative to posting proposals already received and the proposal which you
  1088. will make to the working group:
  1089.  
  1090. I, for one, would be most interested in seeing the proposals you have
  1091. already received (assuming that the writers have included both their
  1092. suggestions and the underlying reasoning).
  1093.  
  1094. [ They're the articles just before yours.  -mod ]
  1095.  
  1096. I suspect that such interim postings might stir additional discussion, as
  1097. well.
  1098.  
  1099. As an aside, THANKS for your efforts within the working group.  The results
  1100. of your efforts (and the efforts of all members of the committees) are of
  1101. great importance to all of us in the UNIX community.
  1102.  
  1103. [ You're welcome. -mod ]
  1104.  
  1105. ---
  1106. Ralph Barker, RALMAR Business Systems, 640 So Winchester Blvd, San Jose,CA 95128
  1107. uucp: ...{ucbvax,hplabs}!sun!idi---\!ralmar!ralph
  1108.       ...pyramid!amdahl!unixprt----/             Voice: (408) 559-6202
  1109.  
  1110.  
  1111.  
  1112.  
  1113. Volume-Number: Volume 11, Number 16
  1114.  
  1115. From jsq  Mon May 11 07:23:35 1987
  1116. Posted-Date: 11 May 87 09:22:07 GMT
  1117. Received-Date: Mon, 11 May 87 07:23:35 CDT
  1118. Received: by sally.utexas.edu (5.54/5.51)
  1119.     id AA08756; Mon, 11 May 87 07:23:35 CDT
  1120. From: John Gilmore <gnu%hoptoad.UUCP@sally.utexas.edu>
  1121. Newsgroups: comp.std.unix
  1122. Subject: Re: tar or cpio?  Tar, of course.
  1123. Message-Id: <8014@ut-sally.UUCP>
  1124. References: <8006@ut-sally.UUCP> <8001@ut-sally.UUCP> <8011@ut-sally.UUCP>
  1125. Sender: std-unix@ut-sally.UUCP
  1126. Reply-To: gnu@hoptoad.UUCP (John Gilmore)
  1127. Date: 11 May 87 09:22:07 GMT
  1128. Apparently-To: std-unix-archive
  1129.  
  1130. From: gnu@hoptoad.UUCP (John Gilmore)
  1131.  
  1132. I don't know anybody who's ever had trouble reading a tar tape
  1133. (assuming their hardware could read the medium).  I've heard of plenty
  1134. of troubles with cpio transfers, including the byte swap issues
  1135. mentioned so well by Guy, but also the fact that there are two formats
  1136. and one of them is inherently nonportable (and happens to be the
  1137. default) causes no end of confusion for users just trying to get their
  1138. data from here to there.  All versions of tar are compatible.
  1139. When researching tar for my implementation, I tracked down various
  1140. reports of tar tapes that could not be read by other tars, and all
  1141. turned out to be pilot error.  (Laura says she's heard of problems
  1142. when reading long-filename tapes on short-filename systems, but
  1143. cpio is no better at this, and I hear that V8 tar has been fixed to
  1144. rename long-name files while extracting them.)
  1145.  
  1146. Laura Creighton, sitting next to me, remembers that she had to rewrite
  1147. cpio several times when trying to read tapes sent from AT&T people
  1148. to her.  On utzoo, a V7 Unix system, there was no cpio, but she had
  1149. access to versions on other U of T machines.  She recalls things like
  1150. the PWB cpio writing tapes that could not be read by System III, and
  1151. System III writing tapes that could not be read by some releases of
  1152. System V, but without a lot of research she can't document these
  1153. claims.  (Anybody else out there run into this more recently?)
  1154.  
  1155. After looking at the cpio record format typed in by John, it looks like
  1156. it is a lot more Unix file system specific than tar, e.g. what are
  1157. inode numbers doing on a portable transfer format?  Also, the inode
  1158. numbers are defined to be unsigned shorts (or 6-digit octal) while in
  1159. many Unix systems, inode numbers are 32 bits long and will not fit in
  1160. this format.  Of course the binary format should not even be mentioned
  1161. in the standard, since an "unsigned short" has no portable
  1162. representation, but it's clear that the octal form is not big enough,
  1163. so what do we do?  Define a new standard "almost like current cpio" but
  1164. incompatible?  Let's stick with tar -- it doesn't expose the innards
  1165. of the V7 file system, and it works.
  1166.  
  1167. There is the additional advantage of a public domain implementation of
  1168. the proposed tar standard (written by me, available from mod.sources),
  1169. which also served to work out several bugs in the proposal.  This
  1170. implementation has been exchanging data with real source licensed Unix
  1171. tar's for years now without trouble.  It also implements some of the
  1172. things that cpio can do that Unix tar can't; in particular, reading the
  1173. list of files to be archived or extracted from standard input.
  1174.  
  1175.  
  1176. Volume-Number: Volume 11, Number 17
  1177.  
  1178. From jsq  Mon May 11 07:29:22 1987
  1179. Posted-Date: 11 May 87 12:29:11 GMT
  1180. Received-Date: Mon, 11 May 87 07:29:22 CDT
  1181. Received: by sally.utexas.edu (5.54/5.51)
  1182.     id AA08815; Mon, 11 May 87 07:29:22 CDT
  1183. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  1184. Newsgroups: comp.std.unix
  1185. Subject: IEEE 1003.1 Rationale and Notes
  1186. Message-Id: <8015@ut-sally.UUCP>
  1187. Date: 11 May 87 12:29:11 GMT
  1188. Apparently-To: std-unix-archive
  1189.  
  1190. Attached is a version of the first page of the draft IEEE 1003.1
  1191. Rationale and Notes Appendix.  I am posting as the editor of that
  1192. Rationale document, not as the moderator of comp.std.unix.
  1193.  
  1194. If you know of obscure sections of the Trial Use Standard that
  1195. need to be explained, or have other information related to the
  1196. Rationale document, please send it to me as soon as possible.
  1197.  
  1198. The next draft of the Rationale document will be distributed
  1199. on or about 1 June 1987, one week before the Phoenix USENIX
  1200. Conference, three weeks before the Seattle P1003.1 meeting.
  1201. I will have copies at USENIX and in Seattle.
  1202.  
  1203. It is not practical at this point for me to mail copies of the
  1204. previous draft.  However, if you are sufficiently interested,
  1205. send me your name and address and I will attempt to get you on the
  1206. list for the mailing of the next draft.
  1207.  
  1208. The next draft may be the last one directly funded by /usr/group,
  1209. and almost certainly will be the last to incorporate major changes
  1210. in topics or organization.  So it is advantageous to get your
  1211. comments in soon, although theoretically changes can be made up
  1212. until the draft Full Use Standard is ready for balloting.
  1213.  
  1214.  
  1215.              B.     Rationale and Notes
  1216.  
  1217.       This appendix summarizes the deliberations of the IEEE
  1218.       P1003.1 Working Group, the committee charged by IEEE with
  1219.       devising an interface standard for a portable operating
  1220.       system for computer environments, IEEE Std 1003.1, also
  1221.       known as POSIX.  This appendix is being developed under
  1222.       the sponsorship of /usr/group, the International Network
  1223.       of UNIX Systems Users, as part of an ongoing program of
  1224.       that association to support the IEEE 1003 Standards
  1225.       program efforts.  It is being published along with the
  1226.       standard to assist in the process of review.    It contains
  1227.       historical information concerning the contents of the
  1228.       standard and why features were included or discarded by the
  1229.       working group.  It also contains notes of interest to
  1230.       application programmers on recommended programming
  1231.       practices, emphasizing the consequences of some aspects of
  1232.       the standard that may not be immediately apparent.
  1233.  
  1234.       Material for this Rationale Document should be submitted
  1235.       directly to:
  1236.  
  1237.             John S. Quarterman
  1238.             Texas Internet Consulting
  1239.             Suite 500, Room 31
  1240.             Austin Centre
  1241.             701 Brazos
  1242.             Austin TX 78701-3243
  1243.             512-320-9031
  1244.             decvax!seismo!ut-sally!jsq
  1245.  
  1246.       by electronic mail and US mail.  If you have material that
  1247.       you think should be included in this document, please
  1248.       forward this immediately.  Your help in doing so will be
  1249.       greatly appreciated, and will contribute to the quality and
  1250.       acceptance of this standard.
  1251.  
  1252.         UNAPPROVED DRAFT.  All Rights Reserved by IEEE.
  1253.          Do not specify or claim conformance to this document.
  1254.  
  1255. Volume-Number: Volume 11, Number 18
  1256.  
  1257. From jsq  Mon May 11 14:55:17 1987
  1258. Posted-Date: 11 May 87 17:31:26 GMT
  1259. Received-Date: Mon, 11 May 87 14:55:17 CDT
  1260. Received: by sally.utexas.edu (5.54/5.51)
  1261.     id AA16752; Mon, 11 May 87 14:55:17 CDT
  1262. From: Jim Cottrell <rbj@icst-cmr.arpa>
  1263. Newsgroups: comp.std.unix
  1264. Subject: Re: tar or cpio?  Tar, of course!
  1265. Message-Id: <8018@ut-sally.UUCP>
  1266. Sender: std-unix@ut-sally.UUCP
  1267. Reply-To: rbj@icst-cmr.arpa
  1268. Date: 11 May 87 17:31:26 GMT
  1269. Apparently-To: std-unix-archive
  1270.  
  1271. To: gwyn@brl, hoptoad!gnu@sally.utexas.edu
  1272. Cc: std-unix@sally.utexas.edu
  1273. From: rbj@icst-cmr.arpa (Jim Cottrell)
  1274.  
  1275. ? From: gnu@hoptoad.UUCP (John Gilmore)
  1276.  
  1277. ? I don't know anybody who's ever had trouble reading a tar tape...
  1278. ? All versions of tar are compatible.
  1279.  
  1280. Depends on what you mean. I have had troubles reading the original
  1281. TPC V6 & V7 distribution tapes under 4.2 BSD. Perhaps the format has
  1282. changed since then. Anyone have a tar that will read these tapes?
  1283.  
  1284. ? There is the additional advantage of a public domain implementation of
  1285. ? the proposed tar standard (written by me, available from mod.sources),
  1286.  
  1287. Kudos, John. I hope you also fixed special files as well. Ever try and
  1288. make a tar tape of the root? It barfs when it gets to /dev.
  1289.  
  1290. ? From: Doug Gwyn <gwyn@brl.arpa>
  1291.  
  1292. ? In the real world one HAS to have a working "tar" if one exchanges files...
  1293.  
  1294. If I were paranoid I might think TPC was trying to limit this.
  1295.  
  1296. ? I would prefer to remove tape archive format altogether from what is
  1297. ? supposed to be a program/system interface specification (1003.1).  There
  1298. ? simply isn't a single universal interchange medium anyway (not every
  1299. ? system has 1/2" magtape, for example).
  1300.  
  1301. Tarchives are useful even they are never put on tape.
  1302.  
  1303. If it is still not clear, I favor tar as well. Perhaps the features
  1304. that motivated cpio's creation should be added to tar, as John has done.
  1305.  
  1306. I would also like to see an option not to cross mount points, that is
  1307. stay on the same partition. This should be added to several major utilities.
  1308.  
  1309.     (Root Boy) Jim "Just Say Yes" Cottrell    <rbj@icst-cmr.arpa>
  1310.     I hope I bought the right relish...  zzzzzzzzz...
  1311.  
  1312. Volume-Number: Volume 11, Number 19
  1313.  
  1314. From jsq  Tue May 12 13:20:44 1987
  1315. Posted-Date: 11 May 87 22:20:21 GMT
  1316. Received-Date: Tue, 12 May 87 13:20:44 CDT
  1317. Received: by sally.utexas.edu (5.54/5.51)
  1318.     id AA06804; Tue, 12 May 87 13:20:44 CDT
  1319. From: Dennis Flaherty <dennisf@marque.uucp>
  1320. Newsgroups: comp.std.unix
  1321. Subject: tar on RT11 v4
  1322. Message-Id: <8021@ut-sally.UUCP>
  1323. Sender: std-unix@ut-sally.UUCP
  1324. Reply-To: dennisf@marque.uucp
  1325. Date: 11 May 87 22:20:21 GMT
  1326. Apparently-To: std-unix-archive
  1327.  
  1328. From: dennisf@marque.uucp (Dennis Flaherty)
  1329.  
  1330. If tar works on every system, is there one for RT-11
  1331. version 4?  We have FORTRAN IV if that helps.  We have
  1332. run RT11 for years and are moving to Ultrix-11.  It
  1333. would be nice to be able to move the old archives.
  1334. Thanx in advance,
  1335.                                     Dennis Flaherty
  1336. marque!dennisf@csd1.milw.wisc.edu   Marquette University
  1337. dennisf@mu.edu                      Milwaukee, WI
  1338. uwvax!marque!dennisf
  1339.  
  1340. [ I believe people were referring to every UNIX-related system.
  1341. We were discussing POSIX, the purpose of which is to codify
  1342. a version of the existing UNIX system interface.
  1343.  
  1344. One never knows, though:  someone might have a tar for RT11.
  1345. Or you could try adapting John Gilmore's public domain version,
  1346. if you have a C compiler. -mod ]
  1347.  
  1348. Volume-Number: Volume 11, Number 20
  1349.  
  1350. From jsq  Tue May 12 13:43:56 1987
  1351. Posted-Date: 10 May 87 14:19:17 GMT
  1352. Received-Date: Tue, 12 May 87 13:43:56 CDT
  1353. Received: by sally.utexas.edu (5.54/5.51)
  1354.     id AA07261; Tue, 12 May 87 13:43:56 CDT
  1355. From: Chuck Forsberg <caf@omen.uucp>
  1356. Newsgroups: comp.std.unix
  1357. Subject: Re: tar or cpio?
  1358. Message-Id: <8022@ut-sally.UUCP>
  1359. References: <8001@ut-sally.UUCP>
  1360. Sender: std-unix@ut-sally.UUCP
  1361. Reply-To: caf@omen.uucp
  1362. Organization: Omen Technology Inc, Portland Oregon
  1363. Date: 10 May 87 14:19:17 GMT
  1364. Apparently-To: std-unix-archive
  1365.  
  1366. From: caf@omen.uucp (Chuck Forsberg)
  1367.  
  1368. I have played with a program "afio" which is what cpio should/might have
  1369. been.  Main features are much faster than cpio, and reads all sorts of
  1370. cpio archives, most notably damaged archives.
  1371.  
  1372. Out of Sync --- It gets its own help!
  1373.  
  1374. This could be the basis of a POSIX cpio program.
  1375. Chuck Forsberg WA7KGX Author of Pro-YAM communications Tools for PCDOS and Unix
  1376. ...!tektronix!reed!omen!caf  Omen Technology Inc "The High Reliability Software"
  1377.   17505-V Northwest Sauvie Island Road Portland OR 97231  Voice: 503-621-3406
  1378. TeleGodzilla BBS: 621-3746 2400/1200  CIS:70007,2304  Genie:CAF  Source:TCE022
  1379.   omen Any ACU 1200 1-503-621-3746 se:--se: link ord: Giznoid in:--in: uucp
  1380.   omen!/usr/spool/uucppublic/FILES lists all uucp-able files, updated hourly
  1381.  
  1382. Volume-Number: Volume 11, Number 21
  1383.  
  1384. From jsq  Tue May 12 13:51:32 1987
  1385. Posted-Date: 12 May 87 13:14:24 GMT
  1386. Received-Date: Tue, 12 May 87 13:51:32 CDT
  1387. Received: by sally.utexas.edu (5.54/5.51)
  1388.     id AA07492; Tue, 12 May 87 13:51:32 CDT
  1389. From: Joseph S. D. Yao <jsdy@hadron.uucp>
  1390. Newsgroups: comp.std.unix
  1391. Subject: Re: tar or cpio?
  1392. Summary: cpio pre-dates tar.  (not an argument for)
  1393. Message-Id: <8023@ut-sally.UUCP>
  1394. References: <8001@ut-sally.UUCP> <8006@ut-sally.UUCP>
  1395. Sender: std-unix@ut-sally.UUCP
  1396. Reply-To: jsdy@hadron.uucp (Joseph S. D. Yao)
  1397. Organization: Hadron, Inc., Fairfax, VA
  1398. Date: 12 May 87 13:14:24 GMT
  1399. Apparently-To: std-unix-archive
  1400.  
  1401. In article <8006@ut-sally.UUCP> guy@sun.com (Guy Harris) writes:
  1402. >    3) It is less common.  Almost all UNIX systems that support
  1403. >       "cpio" also support "tar"; many UNIX systems that support
  1404. >       "tar" do not support "cpio".
  1405.  
  1406. Guy's arguments are mostly good, especially when reasoning about
  1407. the byte-order problem.  It should perhaps be noted, though, that
  1408. cpio pre-dates tar, and that there are probably numerous systems
  1409. "out there" that have cpio but not tar.  This, at least, seems to
  1410. be one of the arguments used by X/OPEN.
  1411.  
  1412. Of course, terms like "numerous", "almost all", and "many" are
  1413. hard to argue against, because they're so fuzzy.
  1414.  
  1415. Personally, I have found good use for both (cpio -p is rather
  1416. more elegant than the 2-tar equivalent kludge).  However, I have
  1417. had minutely more foul-ups with cpio than with tar.  (At least,
  1418. with current versions of tar.)
  1419.  
  1420.     Joe Yao        jsdy@hadron.COM (not yet domainised)
  1421.     hadron!jsdy@{seismo.CSS.GOV,dtix.ARPA,decuac.DEC.COM}
  1422. {arinc,att,avatar,cos,decuac,dtix,ecogong,kcwc}!hadron!jsdy
  1423.      {netex,netxcom,rlgvax,seismo,smsdpg,sundc}!hadron!jsdy
  1424.  
  1425. Volume-Number: Volume 11, Number 22
  1426.  
  1427. From jsq  Tue May 12 13:58:01 1987
  1428. Posted-Date: 12 May 87 13:34:03 GMT
  1429. Received-Date: Tue, 12 May 87 13:58:01 CDT
  1430. Received: by sally.utexas.edu (5.54/5.51)
  1431.     id AA07638; Tue, 12 May 87 13:58:01 CDT
  1432. From: Joseph S. D. Yao <jsdy@hadron.uucp>
  1433. Newsgroups: comp.std.unix
  1434. Subject: Re: tar or cpio?  Tar, of course!
  1435. Summary: Some help, I hope
  1436. Message-Id: <8024@ut-sally.UUCP>
  1437. References: <8018@ut-sally.UUCP>
  1438. Sender: std-unix@ut-sally.UUCP
  1439. Reply-To: jsdy@hadron.uucp (Joseph S. D. Yao)
  1440. Organization: Hadron, Inc., Fairfax, VA
  1441. Date: 12 May 87 13:34:03 GMT
  1442. Apparently-To: std-unix-archive
  1443.  
  1444. Reply-To: jsdy@hadron.uucp (Joseph S. D. Yao)
  1445.  
  1446. In article <8018@ut-sally.UUCP> rbj@icst-cmr.arpa writes:
  1447. >Depends on what you mean. I have had troubles reading the original
  1448. >TPC V6 & V7 distribution tapes under 4.2 BSD. Perhaps the format has
  1449. >changed since then. Anyone have a tar that will read these tapes?
  1450.  
  1451. At this early hour, I can't think what "TPC" means.  When someone
  1452. tells me, I shall probably kick myself.  On the other hand, the
  1453. first UUG V6 & V7 distribution tapes were in tp or stp format.
  1454. (Remember those?)  When we first started switching to tar, we had
  1455. some problems with a tar for V6 and PWB System 1.X.  If I remember
  1456. correctly, the first few read OK and wrote trash.  They were based
  1457. on (the new) V7 tar.
  1458.  
  1459. Oh.  The Phone Company.  OK.  Cutesy I am  n o t  at this hour of
  1460. the morning.  (One dissenting vote heard from.)  My comment stands:
  1461. the V6 and PWB tapes, at least; and prob'ly V7 as well, were not
  1462. based on tar.
  1463.  
  1464. [ Readers are not required to read articles early in the morning just
  1465. because I often post them then.  :-)
  1466.  
  1467. The tar format in POSIX is derived from Version 7, as are most of the
  1468. tar programs in use today.  -mod ]
  1469.  
  1470. >I would also like to see an option not to cross mount points, that is
  1471. >stay on the same partition. This should be added to several major utilities.
  1472.  
  1473. Easy enough:
  1474.     [%$] su
  1475.     Password:
  1476.     # mount
  1477.     / on /dev/disk-0
  1478.     /prime on /dev/disk-1
  1479.     /prime/secundus on /dev/disk-2
  1480.     # unmount /dev/disk-2
  1481.     # cd /prime
  1482.     # tar xv
  1483.  
  1484. Other than that, this is awfully hard to do unless you are willing
  1485. to break modularity by sticking info about the FS into programs
  1486. which have no need to know about it whatsoever.
  1487.  
  1488.     Joe Yao        jsdy@hadron.COM (not yet domainised)
  1489.     hadron!jsdy@{seismo.CSS.GOV,dtix.ARPA,decuac.DEC.COM}
  1490. {arinc,att,avatar,cos,decuac,dtix,ecogong,kcwc}!hadron!jsdy
  1491.      {netex,netxcom,rlgvax,seismo,smsdpg,sundc}!hadron!jsdy
  1492.  
  1493. Volume-Number: Volume 11, Number 23
  1494.  
  1495. From jsq  Wed May 13 12:36:41 1987
  1496. Posted-Date: 12 May 87 23:17:16 GMT
  1497. Received-Date: Wed, 13 May 87 12:36:41 CDT
  1498. Received: by sally.utexas.edu (5.54/5.51)
  1499.     id AA29142; Wed, 13 May 87 12:36:41 CDT
  1500. From: Jim Cottrell <rbj@icst-cmr.arpa>
  1501. Newsgroups: comp.std.unix
  1502. Subject: Re: tar or cpio?  Tar, of course!
  1503. Message-Id: <8031@ut-sally.UUCP>
  1504. Sender: std-unix@ut-sally.UUCP
  1505. Reply-To: rbj@icst-cmr.arpa
  1506. Date: 12 May 87 23:17:16 GMT
  1507. Apparently-To: std-unix-archive
  1508.  
  1509. In article <8018@ut-sally.UUCP> rbj@icst-cmr.arpa writes:
  1510. >Depends on what you mean. I have had troubles reading the original
  1511. >TPC V6 & V7 distribution tapes under 4.2 BSD. Perhaps the format has
  1512. >changed since then. Anyone have a tar that will read these tapes?
  1513.  
  1514. Ok, the joke's on me. I'll try dump. Now on to Joe Yao's articles.
  1515.  
  1516. ? >I would also like to see an option not to cross mount points, that is
  1517. ? >stay on the same partition. This should be added to several major utilities.
  1518. ? Easy enough:
  1519. ?     [%$] su
  1520. ?     Password:
  1521. ?     # mount
  1522. ?     / on /dev/disk-0
  1523. ?     /prime on /dev/disk-1
  1524. ?     /prime/secundus on /dev/disk-2
  1525. ?     # unmount /dev/disk-2
  1526. ?     # cd /prime
  1527. ?     # tar xv
  1528. ? Other than that, this is awfully hard to do unless you are willing
  1529. ? to break modularity by sticking info about the FS into programs
  1530. ? which have no need to know about it whatsoever.
  1531.  
  1532. Find on BSD4.3 has -xdev, and others have -prune. It is often desirable
  1533. to restrict searches to a single file system. Besides, to unmount /usr,
  1534. you have to kill all the daemons, and then the only editor you  have is ed.
  1535.  
  1536. ? In article <8006@ut-sally.UUCP> guy@sun.com (Guy Harris) writes:
  1537. ? >    3) It is less common.  Almost all UNIX systems that support
  1538. ? >       "cpio" also support "tar"; many UNIX systems that support
  1539. ? >       "tar" do not support "cpio".
  1540. ? Guy's arguments are mostly good, especially when reasoning about
  1541. ? the byte-order problem.  It should perhaps be noted, though, that
  1542. ? cpio pre-dates tar, and that there are probably numerous systems
  1543. ? "out there" that have cpio but not tar.  This, at least, seems to
  1544. ? be one of the arguments used by X/OPEN.
  1545.  
  1546. Saying cpio predates tar might be strictly true, but tar hit the streets 
  1547. first. Do you know of any UNII that have cpio but not tar?
  1548.  
  1549. ?     Joe Yao        jsdy@hadron.COM (not yet domainised)
  1550. ?     hadron!jsdy@{seismo.CSS.GOV,dtix.ARPA,decuac.DEC.COM}
  1551. ? {arinc,att,avatar,cos,decuac,dtix,ecogong,kcwc}!hadron!jsdy
  1552. ?      {netex,netxcom,rlgvax,seismo,smsdpg,sundc}!hadron!jsdy
  1553.  
  1554.     (Root Boy) Jim "Just Say Yes" Cottrell    <rbj@icst-cmr.arpa>
  1555.     I just had my entire INTESTINAL TRACT coated with TEFLON!
  1556.  
  1557.  
  1558. Volume-Number: Volume 11, Number 24
  1559.  
  1560. From jsq  Wed May 13 12:41:37 1987
  1561. Posted-Date: 11 May 87 03:39:20 GMT
  1562. Received-Date: Wed, 13 May 87 12:41:37 CDT
  1563. Received: by sally.utexas.edu (5.54/5.51)
  1564.     id AA29238; Wed, 13 May 87 12:41:37 CDT
  1565. From: Eric S. Raymond <eric@snark.uucp>
  1566. Newsgroups: comp.std.unix
  1567. Subject: Re: tar and cpio
  1568. Message-Id: <8032@ut-sally.UUCP>
  1569. References: <8001@ut-sally.UUCP>
  1570. Sender: std-unix@ut-sally.UUCP
  1571. Reply-To: eric@snark.uucp
  1572. Date: 11 May 87 03:39:20 GMT
  1573. Apparently-To: std-unix-archive
  1574.  
  1575. I'd favor leaving in the tar specification *and* adding cpio. That way,
  1576. users of a POSIX-conforming system get the best of both. I think tar's
  1577. only real advantage is the multi-volume capability, otherwise cpio is much
  1578. superior. What would *really* win is a spec for multi-volume cpio (perhaps
  1579. P1003.2 should do this).
  1580.  
  1581. BTW, I contributed some stuff to one of the draft versions of Section 10
  1582. (specifically, the proposal for a multi-volume tar format with the
  1583. ability to recover from a missing volume that is also upward-compatible with
  1584. the present one), so I feel like I have something of a proprietary interest
  1585. in this stuff. Please email me with an update if you don't get enough response
  1586. to merit a posting.
  1587.  
  1588. ---
  1589.       Eric S. Raymond
  1590.       UUCP:  {{seismo,ihnp4,rutgers}!cbmvax,sdcrdcf!burdvax}!snark!eric
  1591.       Post:  22 South Warren Avenue, Malvern, PA 19355
  1592.       Phone: (215)-296-5718
  1593.  
  1594. Volume-Number: Volume 11, Number 25
  1595.  
  1596. From jsq  Thu May 14 19:08:41 1987
  1597. Posted-Date: 13 May 87 14:48:51 GMT
  1598. Received-Date: Thu, 14 May 87 19:08:41 CDT
  1599. Received: by sally.utexas.edu (5.54/5.51)
  1600.     id AA00631; Thu, 14 May 87 19:08:41 CDT
  1601. From: Joseph S. D. Yao <jsdy@hadron.uucp>
  1602. Newsgroups: comp.std.unix
  1603. Subject: Re: tar or cpio?  Tar, of course!
  1604. Message-Id: <8044@ut-sally.UUCP>
  1605. Sender: std-unix@ut-sally.UUCP
  1606. Reply-To: jsdy@hadron.uucp (Joseph S. D. Yao)
  1607. Date: 13 May 87 14:48:51 GMT
  1608. Apparently-To: std-unix-archive
  1609.  
  1610. From: jsdy@hadron.uucp (Joseph S. D. Yao)
  1611.  
  1612. This is getting a bit far from UNIX/POSIX standards, but:
  1613.  
  1614. In letter <8705122317.AA00613@icst-cmr.arpa.ARPA> rbj@icst-cmr.ARPA (Root Boy Jim) writes:
  1615. >In article <8018@ut-sally.UUCP> rbj@icst-cmr.arpa writes:
  1616. >>            ... I have had troubles reading the original
  1617. >>TPC V6 & V7 distribution tapes under 4.2 BSD.
  1618. >Ok, the joke's on me. I'll try dump. Now on to Joe Yao's articles.
  1619.  
  1620. Dump won't work either.  If I remember correctly, the first two blocks
  1621. (on V6) were boot blocks for two different tape drives, followed by
  1622. some stand-alone programs, and (perhaps in the next file) an IMAGE of
  1623. a V6 file system.  Then there were mixtures of disk images and tp tape
  1624. files.  V7 I'm not sure about; but as tar started (slightly buggy) in
  1625. V7, I vaguely recall that the distribution tapes were  n o t  in tar
  1626. format, either.  I may not be right about that last.
  1627.  
  1628. Note, BTW, that the V6 file system is not mountable on a V7 or later
  1629. system, including all current Berkeley and USG releases.
  1630.  
  1631. >? >I would also like to see an option not to cross mount points, that is
  1632. >? >stay on the same partition. This should be added to several major utilities.
  1633. >?        ... this is awfully hard to do unless you are willing
  1634. >? to break modularity by sticking info about the FS into programs
  1635. >? which have no need to know about it whatsoever.
  1636. >Find on BSD4.3 has -xdev, and others have -prune. It is often desirable
  1637. >to restrict searches to a single file system. Besides, to unmount /usr,
  1638. >you have to kill all the daemons, and then the only editor you  have is ed.
  1639.  
  1640. My statement stands.  Berkeley is  n o t  the best reference for proper
  1641. modularisation.  Find needs to know about a heckuva nawful lot, but it
  1642. would perhaps be desirable to have more general-purpose tools.
  1643.  
  1644. >? In article <8006@ut-sally.UUCP> guy@sun.com (Guy Harris) writes:
  1645. >? >              ...  Almost all UNIX systems that support
  1646. >? >       "cpio" also support "tar"; ...
  1647. >?            ..  It should perhaps be noted, though, that
  1648. >? cpio pre-dates tar, and that there are probably numerous systems
  1649. >? "out there" that have cpio but not tar.
  1650. >Saying cpio predates tar might be strictly true, but tar hit the streets 
  1651. >first. Do you know of any UNII that have cpio but not tar?
  1652.  
  1653. I believe, Doctor McCoy, that that is what I just said.  Yes, cpio
  1654. hit the streets first, in PWB System 1.0, and in all of its descen-
  1655. dants, yeah down unto System III and System V Release 3.0 Version
  1656. 1.1.  Those first few releases had no tar.  (I know, what held them
  1657. together then?)
  1658.  
  1659. And it's UNIXI, not UNII.  (Finally, something about standards, eh?)
  1660.  
  1661. From: hadron!jsdy@seismo.css.gov (Joseph S. D. Yao)
  1662. Subject: Re: tar or cpio?  Tar, of course!
  1663.  
  1664. Please amend prior letter.
  1665.  
  1666. It is neither UNIXI nor UNII, but Unices.
  1667.  
  1668. Thank you.    ;-)
  1669.  
  1670.     Joe Yao        jsdy@hadron.COM (not yet domainised)
  1671.     hadron!jsdy@{seismo.CSS.GOV,dtix.ARPA,decuac.DEC.COM}
  1672. {arinc,att,avatar,cos,decuac,dtix,ecogong,kcwc}!hadron!jsdy
  1673.      {netex,netxcom,rlgvax,seismo,smsdpg,sundc}!hadron!jsdy
  1674.  
  1675. Volume-Number: Volume 11, Number 26
  1676.  
  1677. From jsq  Thu May 14 19:15:51 1987
  1678. Posted-Date: 13 May 87 01:04:28 GMT
  1679. Received-Date: Thu, 14 May 87 19:15:51 CDT
  1680. Received: by sally.utexas.edu (5.54/5.51)
  1681.     id AA00810; Thu, 14 May 87 19:15:51 CDT
  1682. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  1683. Newsgroups: comp.std.unix
  1684. Subject: Re: tar or cpio?  Tar, of course.
  1685. Message-Id: <8045@ut-sally.UUCP>
  1686. References: <8006@ut-sally.UUCP> <8001@ut-sally.UUCP> <8011@ut-sally.UUCP> <8014@ut-sally.UUCP>
  1687. Reply-To: cwruecmp!nitrex!rbl@decvax.UUCP (Rob Lake)
  1688. Organization: The Standard Oil Co., Cleveland
  1689. Date: 13 May 87 01:04:28 GMT
  1690. Apparently-To: std-unix-archive
  1691.  
  1692. From: decvax!cwruecmp!nitrex!rbl (Rob Lake)
  1693.  
  1694. In article <8014@ut-sally.UUCP> gnu@hoptoad.UUCP (John Gilmore) writes:
  1695. >From: gnu@hoptoad.UUCP (John Gilmore)
  1696. >
  1697. >I don't know anybody who's ever had trouble reading a tar tape
  1698. >(assuming their hardware could read the medium).  
  1699.  
  1700. I've had trouble reading tar tapes, given hardware that could read
  1701. the medium.  The problem was with block sizes that were too large
  1702. for the tape drive/controller/device driver to handle.  Never could
  1703. decide which it was, but --- having once designed a tape controller ---
  1704. pretty well assumed it was not the drive itself.
  1705.  
  1706. [ The 3B20 tape controller has this problem.  -mod ]
  1707.  
  1708. Rob Lake
  1709. decvax!cwruecmp!nitrex!rbl
  1710.  
  1711. Volume-Number: Volume 11, Number 27
  1712.  
  1713. From jsq  Thu May 14 19:23:04 1987
  1714. Posted-Date: 14 May 87 01:01:14 GMT
  1715. Received-Date: Thu, 14 May 87 19:23:04 CDT
  1716. Received: by sally.utexas.edu (5.54/5.51)
  1717.     id AA00934; Thu, 14 May 87 19:23:04 CDT
  1718. From: Dave Brower <daveb@rtech.uucp>
  1719. Newsgroups: comp.std.unix
  1720. Subject: Re: tar stop at mount points
  1721. Message-Id: <8046@ut-sally.UUCP>
  1722. References: <8018@ut-sally.UUCP> <8024@ut-sally.UUCP>
  1723. Sender: std-unix@ut-sally.UUCP
  1724. Reply-To: daveb@rtech.uucp (Dave Brower)
  1725. Organization: Relational Technology Inc, Alameda CA
  1726. Date: 14 May 87 01:01:14 GMT
  1727. Apparently-To: std-unix-archive
  1728.  
  1729. From: daveb@rtech.uucp (Dave Brower)
  1730.  
  1731. In article <8024@ut-sally.UUCP> jsdy@hadron.uucp (Joseph S. D. Yao) writes:
  1732. >In article <8018@ut-sally.UUCP> rbj@icst-cmr.arpa writes:
  1733. >>I would also like to see an option not to cross mount points, that is
  1734. >>stay on the same partition. This should be added to several major utilities.
  1735. >Other than that, this is awfully hard to do unless you are willing
  1736. >to break modularity by sticking info about the FS into programs
  1737. >which have no need to know about it whatsoever.
  1738.  
  1739. Hmmm.  Since stat(2) returns
  1740.  
  1741.           struct stat {
  1742.                dev_t  st_dev; /* device inode resides on */
  1743.                ino_t  st_ino; /* this inode's number */
  1744.         .
  1745.          };
  1746.  
  1747. it should be easy enough to see when you've crossed a device boundary,
  1748. and this seems portable under POSIX.  Why do you need additional info
  1749. about the FS?
  1750.  
  1751. -dB
  1752.  
  1753. Volume-Number: Volume 11, Number 28
  1754.  
  1755. From jsq  Fri May 15 12:28:34 1987
  1756. Posted-Date: 15 May 87 17:28:24 GMT
  1757. Received-Date: Fri, 15 May 87 12:28:34 CDT
  1758. Received: by sally.utexas.edu (5.54/5.51)
  1759.     id AA13222; Fri, 15 May 87 12:28:34 CDT
  1760. From: std-unix%ut-sally.UUCP%@sally.utexas.edu (Moderator, John Quarterman)
  1761. Newsgroups: comp.std.unix
  1762. Subject: Access to UNIX-Related Standards
  1763. Message-Id: <8049@ut-sally.UUCP>
  1764. Sender: std-unix@ut-sally.UUCP
  1765. Reply-To: std-unix@sally.utexas.edu (Moderator, John Quarterman)
  1766. Date: 15 May 87 17:28:24 GMT
  1767. Apparently-To: std-unix-archive
  1768.  
  1769. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  1770.  
  1771. This is the latest in a series of similar comp.std.unix articles.
  1772.  
  1773. Changes since the last posting include an updated P1003 meeting
  1774. schedule, an updated paper mail address for comp.std.unix moderator,
  1775. updated electronic address for Jim Isaak, updated P1003.2 description,
  1776. updated names, addresses and telephone numbers for the /usr/group
  1777. Working Groups, including the addition of information for the super
  1778. computing group, and a listing for the 4.3BSD manuals.
  1779.  
  1780. Corrections and additions to this article are solicited.
  1781.  
  1782.  
  1783. Access information is given in this article for the following standards:
  1784. IEEE 1003.1 (POSIX), 1003.2 (shell/tools), 1003.3 (verification)
  1785. /usr/group working groups on distributed file system, network interface,
  1786.     graphics/windows, database, internationalization,
  1787.     performance measurements, realtime, security, and super computing
  1788. X3H3.6 (display committee)
  1789. X3J11 (C language)
  1790. /usr/group Standard
  1791. System V Interface Definition (SVID, or The Purple Book)
  1792. X/OPEN PORTABILITY GUIDE (The Green Book)
  1793. 4.3BSD Manuals
  1794.  
  1795.  
  1796. UNIX is a Registered Trademark of AT&T.
  1797. POSIX and IEEE are trademarks of the Institute of Electrical
  1798.     and Electronic Engineers, Inc.
  1799. X/OPEN is a licensed trademark of the X/OPEN Group Members.
  1800.  
  1801.  
  1802. The IEEE P1003 Portable Operating System for Computer Environments Committee
  1803. is sometimes known colloquially as the UNIX Standards Committee.
  1804. They published the 1003.1 "POSIX" Trial Use Standard in April 1986.
  1805. According to its Foreword:
  1806.  
  1807.     The purpose of this document is to define a standard
  1808.     operating system interface and environment based on the
  1809.     UNIX Operating System documentation to support application
  1810.     portability at the source level.  This is intended for
  1811.     systems implementors and applications software developers.
  1812.  
  1813. Published copies are available at $19.95,
  1814. with bulk purchasing discounts available.
  1815. Call the IEEE Computer Society in Los Angeles
  1816.  
  1817.         714-821-8380
  1818.  
  1819. and ask for Book #967.  Or contact:
  1820.  
  1821.         IEEE Service Center
  1822.         445 Hoes Ln.
  1823.         Piscataway, NJ 08854
  1824.  
  1825. and ask for "IEEE 1003.1 Trial Use Standard" - stock number SH10546.
  1826.  
  1827. The Trial Use Standard will be available for comments for a period
  1828. such as a year.  The current target for a Full Use Standard is Fall 1987.
  1829. IEEE has initiated the process to have the 1003.1 effort brought into
  1830. the International Organization for Standardization (ISO) arena.
  1831.  
  1832. Machine readable copies of the Trial Use Standard are not and will 
  1833. not be available.
  1834.  
  1835. There is a paper mailing list by which interested parties may get
  1836. copies of drafts of the standard.  To get on it, or to submit comments
  1837. directly to the committee, mail to:
  1838.  
  1839.         James Isaak
  1840.         Chairperson, IEEE/CS P1003
  1841.         Digital Equipment    MK02-2/B05
  1842.         Continental Blvd.
  1843.         Merrimack, NH      03054-0403
  1844.         decvax!isaak
  1845.         603-884-1913
  1846.  
  1847. Sufficiently interested parties may join the working group.
  1848.  
  1849. Related working groups are
  1850.     group    subject        co-chairs
  1851.     1003.2    shell and tools    Hal Jespersen (UniSoft), Don Cragun (Sun)
  1852.     1003.3    verification    Roger Martin (NBS), Carol Raye (AT&T)
  1853.  
  1854. Inquiries regarding 1003.2 and 1003.3 should go to the same address
  1855. as for 1003.1.
  1856.  
  1857.  
  1858. The next scheduled meetings of the P1003 working groups are,
  1859. in 1987 and 1988:
  1860.     
  1861. June    22-26  P1003.[13]  Seattle (changed from USENIX week in Phoenix to
  1862.         give us better working attendance)    Host:  CDC
  1863.         P1003.2 will not meet in Seattle, due to scheduling
  1864.         problems related to the extreme member overlap between
  1865.         1003.1 and 1003.2 and the need for 1003.1 to meet all week
  1866.         in order to speed finishing the Full Use Standard.
  1867.         But there will be a 1003.2 BOF Tuesday, 6/23, 19:00-22:00,
  1868.         to exchange information and assess the status of the command
  1869.         descriptions distributed in the April meeting.
  1870.  
  1871. Sept.    14-18    Framingham, Massachusetts (same time and place as X3J11)
  1872. (Sept 7th is Labor day, and that week is ISO TC97 SC22 meeting in Wash DC)
  1873.  
  1874. Dec.    7-11    San Diego
  1875.  
  1876. April 1988    Japan, depending on potential attendance.
  1877.  
  1878. There is also a balloting group (which intersects with the working group).
  1879. This is more difficult.  Contact Jim Isaak for details.  I will repost
  1880. them in this newsgroup if there is sufficient interest.
  1881.  
  1882. Here are some details from Hal Jespersen regarding P1003.2:
  1883.  
  1884. The IEEE P1003.2 "Shell and Utilities" Working Group is developing a
  1885. proposed standard to complement the 1003.1 POSIX standard.  It will
  1886. consist of
  1887.  
  1888.     a shell command language (currently planned to be based on the
  1889.     Bourne Shell),
  1890.  
  1891.     groups of utility programs, or commands,
  1892.  
  1893.     programmatic interfaces to the shell (system(), popen()) and
  1894.     related facilities (regular expressions, file name expansion,
  1895.     etc.)
  1896.  
  1897.     defined environments (variables, file hierarchies, etc) that
  1898.     applications may rely upon
  1899.  
  1900.     tools for installing application programs onto conforming
  1901.     systems
  1902.  
  1903. which will allow application programs to be developed out of existing
  1904. pieces, in the UNIX tradition.  The scope of the standard emphasizes
  1905. commands and features that are more typically used by shell scripts or
  1906. C language programs than those that are oriented to the terminal user
  1907. with windows, mice, visual shells, and so forth.
  1908.  
  1909. There has been some controversy in the Working Group about
  1910. clarifying the scope of the 1003.2 standard in regard to its
  1911. relationship with 1003.1.  The Working Group is attempting to
  1912. produce a standard that will assume the structure and
  1913. philosophy of a POSIX system is available, but it will not
  1914. require a fully conforming implementation as a base.  For
  1915. example, it should be feasible to eventually produce a 1003.2
  1916. interface on a V7 system, or on a system very close to POSIX,
  1917. but missing a few crucial features (as long as the shell and
  1918. utilities didn't need them).  However, the proposed standard
  1919. will *not* be unnecessarily watered down simply to allow
  1920. non-POSIX systems to conform.
  1921.  
  1922. The group is currently seeking proposals for groupings of commands that
  1923. may be offered by implementors.  As groups are identified, command
  1924. descriptions will be solicited.  There is no requirement that the commands
  1925. be in System V or BSD today, but they should realistically be commands 
  1926. that are commonly found in most existing implementations.
  1927.  
  1928.  
  1929. There are three Institutional Representatives to P1003:  John Quarterman
  1930. from USENIX, Heinz Lycklama from /usr/group, and Martha Nalebuf from X/OPEN.
  1931.  
  1932. As the one from USENIX, one of my functions is to get comments from the
  1933. USENIX membership and the general public to the committee.  One of the
  1934. ways I try to do that is by moderating this newsgroup, comp.std.unix
  1935. (formerly known as mod.std.unix).  An article related to this one
  1936. appeared in the September/October 1986 ;login: (The USENIX Association
  1937. Newsletter).  I'm also currently on the USENIX Board of Directors.
  1938. Comments, suggestions, etc., may be sent to
  1939.  
  1940.         John S. Quarterman
  1941.         Texas Internet Consulting
  1942.         Suite 500, Room 31
  1943.         Austin Centre
  1944.         701 Brazos
  1945.         Austin TX 78701-3243
  1946.         512-320-9031
  1947.         usenix!jsq
  1948.  
  1949. For comp.std.unix:
  1950. Comments:    ut-sally!std-unix-request std-unix-request@sally.utexas.edu
  1951. Submissions:    ut-sally!std-unix        std-unix@sally.utexas.edu
  1952.  
  1953. The May/June 1987 issue of CommUNIXations (the /usr/group newsletter)
  1954. contains a report by Heinz Lycklama on the /usr/group Technical Committee
  1955. working groups which met in January 1987.
  1956.  
  1957. If you are interested in starting another working group, contact
  1958. Heinz Lycklama:
  1959.  
  1960.         Heinz Lycklama
  1961.         Interactive Systems Corp.
  1962.         2401 Colorado Ave., 3rd Floor
  1963.         Santa Monica, CA 90404
  1964.         (213)453-8649
  1965.         decvax!cca!ima!heinz
  1966.  
  1967.  
  1968. Here is contact information for /usr/group working groups as taken from
  1969. the CommUNIXations article mentioned above, and updated by later information
  1970. from Heinz Lycklama.
  1971.  
  1972. /usr/group Working Group on Distributed File System:
  1973.     Laurence Brown            Frederick Glover
  1974.     AT&T Information Systems    MK02-1/H10
  1975.     190 River Road            Digital Equipment Corporation
  1976.     Summit, NJ  07933        Continental Boulevard
  1977.     201-522-6046            Merrimack, NH  03054-0430
  1978.     attunix!bump            603-884-5111
  1979.                     decvax!fglover
  1980.  
  1981. /usr/group Working Group on Network Interface:
  1982.     Steve Albert
  1983.     AT&T Information Systems
  1984.     190 River Road, Rm. A-114
  1985.     Summit, NJ  07901
  1986.     (201)522-6104
  1987.     attunix!ssa
  1988.  
  1989. /usr/group Working Group on Internationalization:
  1990.     Karen Barnes
  1991.     Hewlett-Packard Co.
  1992.     19447 Pruneridge Ave.
  1993.     M/S 47U2
  1994.     Cupertino, CA 95014
  1995.     (408) 447-6704
  1996.  
  1997. /usr/group Working Group on Graphics/Windows:
  1998.     Tom Greene
  1999.     Apollo Computer, Inc.
  2000.     330 Billerica Road
  2001.     Chelmsford, MA  01824
  2002.     (617)256-6600, ext. 7581
  2003.  
  2004. /usr/group Working Group on Realtime:
  2005.     Bill Corwin
  2006.     Intel Corp.
  2007.     5200 Elam Young Pkwy
  2008.     Hillsboro, OR 97123
  2009.     (503)681-2248
  2010.  
  2011. /usr/group Working Group on Database:
  2012.     Val Skalabrin
  2013.     Unify Corp.
  2014.     1111 Howe Ave.
  2015.     Sacramento, CA 95825
  2016.     (916)920-9092
  2017.  
  2018. /usr/group Working Group on Performance Measurements:
  2019.     Ram Chelluri            Dave Hinnant
  2020.     AT&T Computer Systems        SCI Systems, Inc.
  2021.     Room E15B            Ste 325, Pamlico Bldg
  2022.     4513 Western Ave.        Research Triangle Pk, NC 27709
  2023.     Lisle, IL 60532            (919)549-8334
  2024.     (312)810-6223
  2025.  
  2026. /usr/group Working Group on Security:
  2027.     Steve Sutton            Ms. Jeanne Baccash
  2028.     Consultant, Addamax        AT&T UNIX Systems Engineering
  2029.     1107 S. Orchard            190 River Road
  2030.     Urbana, IL  61801        Summit, NJ  07901
  2031.     217-344-0996            201-522-6028
  2032.                     attunix!jeanne
  2033.  
  2034. /usr/group Working Group on Super Computing:
  2035.     Karen Sheaffer            Robin O'Neill
  2036.     Sandia National Laboratory    Lawrence Livermore Laboratory
  2037.     P.O. Box 969            P.O. Box 5509, L560
  2038.     Livermore, CA  94550        Livermore, CA  94550
  2039.     415-422-3431            415-422-0973
  2040.                     oneill#r%mfe@lll-mfe.arpa Co-chair
  2041.  
  2042.  
  2043. The X3H3.6 display management committee has recently formed to develop
  2044. a model to support current and future window management systems, yet
  2045. is not based directly on any existing system.  The chair solicits
  2046. help and participation:
  2047.  
  2048.         Georges Grinstein
  2049.         wanginst!ulowell!grinstein
  2050.  
  2051.  
  2052. The Abstract of the 1003.1 Trial Use Standard adds:
  2053.  
  2054.     This interface is a complement to the C Programming Language
  2055.     in the C Information Bulletin prepared by Technical Committee X3J11
  2056.     of the Accredited Standards Committee X3, Information Processing
  2057.     Systems, further specifying an environment for portable application
  2058.     software.
  2059.  
  2060. X3J11 is sometimes known as the C Standards Committee.  Their liaison to
  2061. P1003 is
  2062.  
  2063.         Don Kretsch
  2064.         AT&T
  2065.         190 River Road
  2066.         Summit, NJ 07901
  2067.  
  2068. A contact for information regarding publications and working groups is
  2069.  
  2070.         Thomas Plum
  2071.         Vice Chair, X3J11 Committee
  2072.         Plum Hall Inc.
  2073.         1 Spruce Avenue
  2074.         Cardiff, New Jersey 08232
  2075.  
  2076. The current document may be ordered from
  2077.  
  2078.         Global Press
  2079.         2625 Hickory St.
  2080.         P.O. Box 2504
  2081.         Santa Anna, CA 92707-3783
  2082.         U.S.A.
  2083.         800-854-7179
  2084.         +1-714-540-9870 (from outside the U.S., ask for extension 245.)
  2085.         TELEX 692 373
  2086.  
  2087. Ask for the X3.159 draft standard.  The price is $65.
  2088.  
  2089.  
  2090. The /usr/group Standard is a principal ancestor of P1003.1, X/OPEN,
  2091. and X3J11.  It may be ordered for $15.00 from:
  2092.  
  2093.         /usr/group Standards Committee
  2094.         4655 Old Ironsides Drive, Suite 200
  2095.         Santa Clara, California 95054
  2096.         (408)986-8840
  2097.  
  2098.  
  2099. The System V Interface Definition (The Purple Book, or SVID).
  2100. This is the AT&T standard and is one of the most frequently-used
  2101. references of the IEEE 1003 committee.
  2102.  
  2103.         AT&T Customer Information Center
  2104.         Attn:  Customer Service Representative
  2105.         P.O. Box 19901
  2106.         Indianapolis, IN 46219
  2107.         U.S.A.
  2108.  
  2109.         800-432-6600 (Inside U.S.A.)
  2110.         800-255-1242 (Inside Canada)
  2111.         317-352-8557 (Outside U.S.A. and Canada)
  2112.  
  2113.     System V Interface Definition, Issue 2
  2114.     should be ordered by the following select codes:
  2115.  
  2116.     Select Code:    Volume:        Topics:
  2117.     320-011        Volume I    Base System
  2118.                     Kernel Extension
  2119.     320-012        Volume II    Basic Utilities Extension
  2120.                     Advanced Utilities Extension
  2121.                     Software Development Extension
  2122.                     Administered System Extension
  2123.                     Terminal Volume Interface Extension
  2124.     320-013        Volume III    Base System Addendum
  2125.                     Terminal Interface Extension
  2126.                     Network Services Extension
  2127.     307-131        I, II, III    (all three volumes)
  2128.  
  2129. The price is about 37 U.S. dollars for each volume or $84 for all three.
  2130. Major credit cards are accepted for telephone orders:  mail orders
  2131. should include a check or money order, payable to AT&T.
  2132.  
  2133.  
  2134. The X/OPEN PORTABILITY GUIDE (The Green Book)
  2135. is another reference frequently used by IEEE 1003.
  2136.  
  2137. The X/OPEN Group is "Ten of the world's major information system
  2138. suppliers" (currently Bull, DEC, Ericsson, Hewlett-Packard, ICL,
  2139. NIXDORF, Olivetti, Philips, Siemens, Unisys, and AT&T) who have
  2140. produced a document intended to promote the writing of portable
  2141. facilities.  They closely follow both SVID and POSIX, and cite
  2142. the /usr/group standard as contributing, but X/OPEN's books
  2143. cover a wider area than any of those.
  2144.  
  2145. The book is published by
  2146.  
  2147.         Elsevier Science Publishers B.V.
  2148.         Book Order Department
  2149.         P.O. Box 1991
  2150.         1000 BZ Amsterdam
  2151.         The Netherlands
  2152.  
  2153. and distributed in the U.S.A. and Canada by:
  2154.  
  2155.         Elsevier Science Publishing Company, Inc.
  2156.         52 Vanderbilt Avenue
  2157.         New York, NY 10017
  2158.         U.S.A.
  2159.  
  2160. There are currently five volumes:
  2161.     1) System V Specification Commands and Utilities
  2162.     2) System V Specification System Calls and Libraries
  2163.     3) System V Specification Supplementary Definitions
  2164.     4) Programming Languages
  2165.     5) Data Management
  2166.  
  2167. They take a large number of credit cards and other forms of payment.
  2168.  
  2169.  
  2170. Finally, 4.2BSD and 4.3BSD have influenced POSIX in a number of areas.
  2171. The best reference on them is the 4.3BSD manuals, published by USENIX.
  2172. An order form may be obtained from:
  2173.  
  2174.         Howard Press
  2175.         c/o USENIX Association
  2176.         P.O. Box 2299
  2177.         Berkeley, CA 94710
  2178.  
  2179.         415-528-8649
  2180.         {ucbvax,decvax}!usenix!office
  2181.  
  2182. 4.3BSD User's Manual Set (3 volumes)        $25.00
  2183.     User's Reference Manual
  2184.     User's Supplementary Documents
  2185.     Master Index
  2186.  
  2187. 4.3BSD Programmer's Manual Set (3 volumes)    $25.00
  2188.     Programmer's Reference Maual
  2189.     Programmer's Supplementary Documents, Volume 1
  2190.     Programmer's Supplementary Documents, Volume 2
  2191.  
  2192. 4.3BSD System Manager's Manual (1 volume)    $10.00
  2193.  
  2194. Unfortunately, to order you must represent a USENIX Association
  2195. Institutional or Supporting Member, because the manuals can only
  2196. be sold to licensees of 4.3BSD and one of 32V, System III, or System V,
  2197. and those membership categories are USENIX's mechanism of checking licenses.
  2198.  
  2199. Volume-Number: Volume 11, Number 29
  2200.  
  2201. From jsq  Fri May 15 13:49:59 1987
  2202. Posted-Date: 15 May 87 18:42:11 GMT
  2203. Received-Date: Fri, 15 May 87 13:49:59 CDT
  2204. Received: by sally.utexas.edu (5.54/5.51)
  2205.     id AA14279; Fri, 15 May 87 13:49:59 CDT
  2206. From: Dan Franklin <dan@prophet.bbn.com>
  2207. Newsgroups: comp.std.unix
  2208. Subject: Re:  Access to UNIX-Related Standards
  2209. Message-Id: <8050@ut-sally.UUCP>
  2210. Sender: std-unix@ut-sally.UUCP
  2211. Reply-To: dan@prophet.bbn.com
  2212. Date: 15 May 87 18:42:11 GMT
  2213. Apparently-To: std-unix-archive
  2214.  
  2215. From: dan@prophet.bbn.com (Dan Franklin)
  2216.  
  2217. > The IEEE P1003 Portable Operating System for Computer Environments ...
  2218. > ...
  2219. > Published copies are available at $19.95,
  2220. > with bulk purchasing discounts available.
  2221. > Call the IEEE Computer Society in Los Angeles
  2222. >   714-821-8380
  2223. > and ask for Book #967...
  2224.  
  2225. This doesn't work.  I just called that number, and was told they
  2226. only do phone ordering for books costing $25 or more (and they
  2227. confirmed the price of $19.95).  Instead, they told me to mail my
  2228. order to
  2229.  
  2230.     IEEE Computer Society
  2231.     P.O. Box 80452
  2232.     Worldway Postal Center
  2233.     Los Angeles, Ca. 90080
  2234.  
  2235. including a check for $19.95 + $4 for shipping and handling, plus
  2236. $2 if I wanted it shipped UPS instead of whatever snail mail they
  2237. would normally use (I don't remember what she said it was, probably
  2238. 4th class).  I will now try that.
  2239.  
  2240. Too bad they don't charge $5.05 more for it.
  2241.  
  2242.     Dan Franklin
  2243.  
  2244. Volume-Number: Volume 11, Number 30
  2245.  
  2246. From jsq  Fri May 15 19:21:45 1987
  2247. Posted-Date: 15 May 87 20:24:03 GMT
  2248. Received-Date: Fri, 15 May 87 19:21:45 CDT
  2249. Received: by sally.utexas.edu (5.54/5.51)
  2250.     id AA19471; Fri, 15 May 87 19:21:45 CDT
  2251. From: Rick Adams <rick@seismo.css.gov>
  2252. Newsgroups: comp.std.unix
  2253. Subject: Re: Access to UNIX-Related Standards
  2254. Message-Id: <8052@ut-sally.UUCP>
  2255. References: <8049@ut-sally.UUCP>
  2256. Sender: std-unix@ut-sally.UUCP
  2257. Reply-To: rick@seismo.css.gov (Rick Adams)
  2258. Date: 15 May 87 20:24:03 GMT
  2259. Apparently-To: std-unix-archive
  2260.  
  2261. From: rick@seismo.css.gov (Rick Adams)
  2262.  
  2263. Are the dbm libraries included in POSIX? If not, they certainly should be.
  2264. SVID doesn't provide any similar capability that I know of.
  2265.  
  2266. ---rick
  2267.  
  2268. [ That's outside the scope of POSIX, i.e., P1003.1.  It might fit in
  2269. what P1003.2 is doing.  -mod ]
  2270.  
  2271. Volume-Number: Volume 11, Number 31
  2272.  
  2273. From jsq  Mon May 18 20:48:20 1987
  2274. Posted-Date: 17 May 87 19:15:20 GMT
  2275. Received-Date: Mon, 18 May 87 20:48:20 CDT
  2276. Received: by sally.utexas.edu (5.54/5.51)
  2277.     id AA09898; Mon, 18 May 87 20:48:20 CDT
  2278. From: Joseph S. D. Yao <jsdy@hadron.uucp>
  2279. Newsgroups: comp.std.unix
  2280. Subject: Re: tar stop at mount points
  2281. Message-Id: <8068@ut-sally.UUCP>
  2282. References: <8046@ut-sally.UUCP> <8018@ut-sally.UUCP> <8024@ut-sally.UUCP>
  2283. Sender: std-unix@ut-sally.UUCP
  2284. Reply-To: jsdy@hadron.uucp (Joseph S. D. Yao)
  2285. Organization: Hadron, Inc., Fairfax, VA
  2286. Date: 17 May 87 19:15:20 GMT
  2287. Apparently-To: std-unix-archive
  2288.  
  2289. From: jsdy@hadron.uucp (Joseph S. D. Yao)
  2290.  
  2291. In article <8046@ut-sally.UUCP> you write:
  2292. >From: daveb@rtech.uucp (Dave Brower)
  2293. >
  2294. >In article <8024@ut-sally.UUCP> jsdy@hadron.uucp (Joseph S. D. Yao) writes:
  2295. >>In article <8018@ut-sally.UUCP> rbj@icst-cmr.arpa writes:
  2296. >>>I would also like to see an option not to cross mount points ...
  2297. >>        .. this is awfully hard to do unless you are willing
  2298. >>to break modularity by sticking info about the FS into programs
  2299. >>which have no need to know about it whatsoever.
  2300. >Hmmm.  Since stat(2) returns
  2301. >               dev_t  st_dev; /* device inode resides on */
  2302. >it should be easy enough to see when you've crossed a device boundary,
  2303.  
  2304. Jim (rbj) has mentioned this, and this is of course correct.  I'd
  2305. been thinking of a much more elaborate schema.  This is still in fact
  2306. new information that 'find' hadn't needed before; but since 'find'
  2307. already has to be somewhat sophisticated about the file system,
  2308. this isn't such a bad breach of modularity as I'd imagined.  Now,
  2309. however, think what you'd have to do (e.g.) to add an option to
  2310. 'cp' not to copy across device boundaries ...  (rbj had wanted this
  2311. capability widely transplanted.)
  2312.  
  2313. What I'd been thinking of was something on the order of:
  2314.     find / \( -fs /usr -o -fsd /dev/rdsk/ra11 \) -a -print
  2315. which is truly terrible to implement.  (Don't anyone flame me
  2316. for using archaic "-a"s: current 'find' accepts them, and old
  2317. 'find' requires them.)
  2318. -- 
  2319.  
  2320.     Joe Yao        jsdy@hadron.COM (not yet domainised)
  2321.     hadron!jsdy@{seismo.CSS.GOV,dtix.ARPA,decuac.DEC.COM}
  2322. {arinc,att,avatar,cos,decuac,dtix,ecogong,kcwc}!hadron!jsdy
  2323.      {netex,netxcom,rlgvax,seismo,smsdpg,sundc}!hadron!jsdy
  2324.  
  2325. Volume-Number: Volume 11, Number 32
  2326.  
  2327. From jsq  Sun May 24 12:23:08 1987
  2328. Posted-Date: 24 May 87 17:22:58 GMT
  2329. Received-Date: Sun, 24 May 87 12:23:08 CDT
  2330. Received: by sally.utexas.edu (5.54/5.51)
  2331.     id AA27099; Sun, 24 May 87 12:23:08 CDT
  2332. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  2333. Newsgroups: comp.std.unix
  2334. Subject: Access to UNIX User Groups and Publications
  2335. Message-Id: <8125@ut-sally.UUCP>
  2336. Reply-To: std-unix@sally.utexas.edu
  2337. Date: 24 May 87 17:22:58 GMT
  2338. Apparently-To: std-unix-archive
  2339.  
  2340. This is the latest in a series of similar comp.std.unix articles.
  2341. The convention schedules and writeups for USENIX and /usr/group have
  2342. been updated with information from their respective Executive Directors,
  2343. and the next conferences of AUUG and EUUG are indicated.
  2344.  
  2345. Corrections and additions to this article are solicited.
  2346.  
  2347.  
  2348. Access information is given in this article for the following:
  2349. user groups:    USENIX, /usr/group, EUUG, AUUG, DECUS
  2350. newsletters:    ;login:, CommUNIXations, EUUG, AUUGN
  2351. magazines:    UNIX REVIEW, UNIX/WORLD
  2352.  
  2353. UNIX is a Registered Trademark of AT&T.
  2354.  
  2355.  
  2356. USENIX is "The Professional and Technical UNIX(R) Association."
  2357.  
  2358.         USENIX Association
  2359.         P.O. Box 2299
  2360.         Berkeley, CA 94710
  2361.         415-528-8649
  2362.         {ucbvax,decvax}!usenix!office
  2363.  
  2364. USENIX sponsors two USENIX Conferences a year, featuring technical papers,
  2365. as well as tutorials, and with vendor exhibits at the summer conferences:
  2366.  
  2367.     Jun  8-12 1987    Hyatt Regency, Phoenix, AZ
  2368.     Feb 10-12 1988    Registry Hotel, Dallas, TX, concurrent with Uniforum
  2369.     Jun 21-24 1988    Hilton Hotel, San Francisco, CA
  2370.     Feb  1- 3 1989    Town and Country Hotel, San Diego, CA
  2371.     Jun 13-16 1989    Hyatt Regency, Baltimore, MD
  2372.     Jun 11-15 1990    Marriott Hotel, Anaheim, CA
  2373.  
  2374. They also sponsor workshops, such as
  2375.     Apr  9-10 1987    Palace Hotel, Philadelphia, PA
  2376.         Large Installation System Administrator's Workshop
  2377.     Oct  8- 9 1987    Cambridge Marriott, Cambridge, MA
  2378.         4th USENIX Computer Graphics Workshop
  2379.     Oct      1987        Contact Jim McGinness: decvax!jmcg
  2380.         POSIX Implementation Workshop
  2381.     Nov      1987    Santa Fe, NM    Contact Dave Yost:
  2382.         C++ Workshop    {attmail,uunet,usenix}!grand!day
  2383.  
  2384. Proceedings for all conferences and workshops are available at
  2385. the door and by mail later.
  2386.  
  2387. USENIX publishes ";login:  The USENIX Association Newsletter"
  2388. bimonthly.  It is sent free of charge to all their members and
  2389. includes technical papers.  There is a USENET newsgroup,
  2390. comp.org.usenix, for discussion of USENIX-related matters.
  2391.  
  2392. They also publish an edition of the 4.3BSD manuals, and they
  2393. occasionally sponsor experiments, such as methods of improving
  2394. the USENET and UUCP networks, that are of interest and use to
  2395. the membership.  They distribute tapes of contributed software
  2396. and are pursuing expanding that activity.
  2397.  
  2398. There is a USENIX Institutional Representative on the IEEE P1003
  2399. Portable Operating System for Computer Environments Committee.
  2400. That representative also moderates the USENET newsgroup comp.std.unix,
  2401. which is for discussion of UNIX-related standards, especially P1003.
  2402. For more details, see the posting in comp.std.unix about Access
  2403. to UNIX-Related Standards.
  2404.  
  2405.  
  2406. /usr/group is a non-profit trade association dedicated to the promotion
  2407. of products and services based on the UNIX operating system.
  2408.  
  2409.         /usr/group
  2410.         4655 Old Ironsides Drive, Suite 200
  2411.         Santa Clara, California 95054
  2412.         tel: 408-986-8840
  2413.         fax: 408-986-1645
  2414.  
  2415. The annual UniForum Conference and Trade Show is sponsored by /usr/group
  2416. and features vendor exhibits, as well as tutorials and technical sessions.
  2417.  
  2418.     Feb 8-11 1988    Infomart, Dallas, TX, concurrent with USENIX
  2419.     Feb 28-Mar 3 1989 Moscone Center, San Francisco, CA
  2420.     Jan 23-26 1990    Washington Hilton, Washington, DC
  2421.     Jan 22-25 1991    Infomart, Dallas, TX
  2422.     Jan 21-24 1992    Moscone Center, San Francisco CA (tentative)
  2423.  
  2424. They also sponsor a regional show, UniForum D.C.:
  2425.  
  2426.     Aug 2-4 1988    Washington Hilton Hotel, Washington, D.C.
  2427.     Aug 1-3 1989    Washington Hilton Hotel, Washington, D.C.
  2428.  
  2429. Proceedings for all conferences are available at the shows and later
  2430. by mail.
  2431.  
  2432. /usr/group publishes "CommUNIXations", a member magazine that featues
  2433. articles by industry leaders and observers, technical issues,
  2434. standards coverage, and new product announcements.
  2435.  
  2436. /usr/group also publishes the "UNIX Products Directory," which lists
  2437. products and services developed specifically for the UNIX operating system.
  2438. "/usr/digest" is also published by /usr/group.  This newsletter covers
  2439. product announcements and industry projections, and is sent to members
  2440. biweekly.
  2441.  
  2442. /usr/group has long been deeply involved in UNIX standardization,
  2443. having sponsored the "/usr/group 1984 Standard", providing an Institutional
  2444. Representative to the IEEE P1003 Portable Operating System for Computer
  2445. Environments Committee, and sponsoring the /usr/group Working Groups
  2446. on areas that P1003 has not yet addressed.  They have recently produced
  2447. an Executive Summary of the POSIX standard and funded production of a
  2448. draft of a Rationale and Notes appendix for that standard.
  2449.  
  2450.  
  2451. EUUG is the European UNIX systems Users Group.
  2452.  
  2453.         EUUG secretariat
  2454.         Owles Hall
  2455.         Buntingford
  2456.         Herts SG9 9PL
  2457.         England
  2458.         seismo!mcvax!euug
  2459.  
  2460. They have a newsletter and hold two conferences a year.
  2461. The next one is in Dublin, Ireland, in September.
  2462.  
  2463.  
  2464. AUUG is the Australian UNIX systems Users Group.
  2465.  
  2466.         AUUG
  2467.         P.O. Box 366
  2468.         Kensington
  2469.         N.S.W.    2033
  2470.         Australia
  2471.  
  2472.         seismo!munnari!auug
  2473.         auug@munnari.oz.au
  2474.  
  2475. Phone contact can occasionally be made at +61 3 344 5225
  2476.  
  2477. AUUG holds biennial conferences, usually of 2 days each.
  2478. They publish a newsletter (AUUGN) at a frequency defined
  2479. to be every 2 months.
  2480.  
  2481. The next meeting is in Sydney, 27-28 August 1987.
  2482. The host is by NSWIT, and for more info people should contact
  2483. gregw@nswitgould.oz.au, or to submit a paper, bob@basser.cs.su.oz.au
  2484. (deadline for Abstracts is July 10).
  2485.  
  2486.  
  2487. There are similar groups in other parts of the world, such as Japan and
  2488. Korea.  If such a group wishes to be included in later versions of this
  2489. access list, they should please send me information.
  2490.  
  2491.  
  2492. Also, DECUS, the Digital Equipment Computer Users Society,
  2493. has a UNIX SIG (Special Interest Group) which participates
  2494. in its meetings, which are held twice a year.
  2495.  
  2496.         DECUS U.S. Chapter
  2497.         219 Boston Post Road, BP02
  2498.         Marlboro, Massachusetts  01752-1850
  2499.         617-480-3418
  2500.  
  2501. See also the USENET newsgroup comp.org.decus.
  2502.  
  2503.  
  2504. The two main general circulation magazines about the UNIX system are
  2505.  
  2506.     UNIX REVIEW            UNIX/WORLD
  2507.     Miller Freeman Publications Co.    Tech Valley Publishing
  2508.     500 Howard Street        444 Castro St.
  2509.     San Francisco, CA 94105        Mountain View, CA 94041
  2510.     415-397-1881            415-940-1500
  2511.  
  2512.  
  2513. Volume-Number: Volume 10, Number 20
  2514.  
  2515.  
  2516.  
  2517.  
  2518.  
  2519. Volume-Number: Volume 11, Number 33
  2520.  
  2521. From jsq  Sun May 24 12:36:23 1987
  2522. Posted-Date: 20 May 87 20:37:12 GMT
  2523. Received-Date: Sun, 24 May 87 12:36:23 CDT
  2524. Received: by sally.utexas.edu (5.54/5.51)
  2525.     id AA27234; Sun, 24 May 87 12:36:23 CDT
  2526. From: Andrew Tannenbaum <trb@ima.ISC.COM>
  2527. Newsgroups: comp.std.unix
  2528. Subject: Re: tar or cpio?
  2529. Message-Id: <8126@ut-sally.UUCP>
  2530. References: <8001@ut-sally.UUCP>
  2531. Sender: std-unix@ut-sally.UUCP
  2532. Reply-To: trb@ima.ISC.COM (Andrew Tannenbaum)
  2533. Organization: Interactive Systems, Boston, MA
  2534. Date: 20 May 87 20:37:12 GMT
  2535. Apparently-To: std-unix-archive
  2536.  
  2537. From: trb@ima.ISC.COM (Andrew Tannenbaum)
  2538.  
  2539. I don't have Section 10 of the POSIX Trial Use Standard, but I am
  2540. interested in what happens to tar and cpio in POSIX.
  2541.  
  2542. I see that the netnews discussion of this has been partly a
  2543. popularity contest between tar and cpio.  There are more
  2544. important issues to discuss than people's provincial biases.  If
  2545. you come from BSD land, you probably like tar.  If you come from
  2546. AT&T land, you probably like cpio.
  2547.  
  2548. I have some comments about cpio, since it is my personal favorite.
  2549. They apply to both the file format and to the program function.
  2550. Some comments apply to tar as well.
  2551.  
  2552. I like the idea of cpio taking a list of files on stdin.  I wish
  2553. tar had this option.  tar cv `find / -print | fgrep -v -f except.file`
  2554. doesn't cut it.
  2555.  
  2556. [ Evidently John Gilmore's public domain implementation that he
  2557. posted to comp.sources has this.  I know of no proprietary version
  2558. that does.  -mod ]
  2559.  
  2560. cpio's binary format should have been killed off long ago.
  2561. cpio has a 'portable' format, which still has several problems:
  2562.  
  2563. -       Byte swapping and its friends.
  2564.     There are systems which swap bytes and/or halfwords.  There are
  2565.     even systems which xor 0 and 1 bits on tapes.  If CPIO
  2566.     wrote a magic number 0x12345678 in the header, it could resolve
  2567.     these problems painlessly.
  2568.  
  2569. -       I agree that the binary cpio header is silly.
  2570.     The portable header is all printable ASCII data, but the
  2571.     filename is terminated by a null, which makes it harder to play
  2572.     with the archive.  Here is a shar-like program which makes a
  2573.     cpio archive which can unpack itself.
  2574.  
  2575. <<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>>
  2576. #! /bin/sh
  2577. # take a list of files on stdin and make them into a bundle which
  2578. # can be passed through sh to extract them.
  2579. cat << \!
  2580. #!/bin/sh
  2581. # cpio archive
  2582. (read a; read a; read a; read a; cat) < $0 | cpio -icdm 
  2583. exit
  2584. !
  2585. cpio -oac
  2586. <<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>>
  2587.  
  2588.     As I recall, it can have problems because of the fact that the
  2589.     filename is null-terminated, like if you try to read its
  2590.     output into a mail message with an editor.  It would also be
  2591.     neighborly if the ASCII header was more human readable, a space
  2592.     or carriage return here or there wouldn't hurt at all.
  2593.  
  2594.     I realize that this is a standardization effort, but if you are
  2595.     going to enhance the format for some portability reason, you
  2596.     might want to consider my enhancement suggestions.
  2597.  
  2598. -       The familiar problems with damaged archives should be
  2599.     fixed (Out of phase--get help).
  2600.  
  2601. -    There are systems which need to extend the archive
  2602.     formats in local ways, for instance, to add extra mode
  2603.     information for a secure UNIX implementation, or file type
  2604.     information when the UNIX system deals with other types of file
  2605.     systems.  It would be very useful to have a compatible way to
  2606.     extend the header such that any system could check the local
  2607.     field and either use or ignore the information.  Right
  2608.     now, there is little hope for compatibility, the only
  2609.     solutions I can think of (various kinds of shadow files
  2610.     which contain mode info) are quite kludgy.
  2611.  
  2612. -       These programs should deal with multiple tape archives
  2613.     in a standard way.  I have seen many local hacks to do
  2614.     this.
  2615.  
  2616. -       Blocksizes for speed, space, and streaming efficiency are best
  2617.     handled by blocking filters rather than by hacks like -B.  I
  2618.     have heard of ctccpio, but can only worry about what it
  2619.     actually is.  How many programs are going to have to have
  2620.     knowledge about how many goofy devices?  I don't understand why
  2621.     cpio has to know anything about a device.  This is UNIX, isn't
  2622.     it?  Which brings us back to the question of multi-tape
  2623.     archives, maybe the blocking filter should also handle the
  2624.     multi-tape problem?  This means lots of data travels over a
  2625.     pipe.  Modern OS's should be able to do something smart here.
  2626.     (The multi-tape question leaves me with a queasy feeling.)
  2627.  
  2628. I would like to see a discussion about tar and cpio rather than
  2629. opinions about which is better.  I am particularly concerned about
  2630. extending the header format to deal with atypical file types.
  2631.  
  2632.     Andrew Tannenbaum   Interactive   Boston, MA   +1 617 247 1155
  2633.  
  2634. Volume-Number: Volume 11, Number 34
  2635.  
  2636. From jsq  Sun May 24 12:56:33 1987
  2637. Posted-Date: 21 May 87 13:22:52 GMT
  2638. Received-Date: Sun, 24 May 87 12:56:33 CDT
  2639. Received: by sally.utexas.edu (5.54/5.51)
  2640.     id AA27637; Sun, 24 May 87 12:56:33 CDT
  2641. From: Mike Akre <akre@cuuxb.uucp>
  2642. Newsgroups: comp.std.unix
  2643. Subject: Re: tar stop at mount points
  2644. Summary: find knows how to do this in SVR3
  2645. Message-Id: <8128@ut-sally.UUCP>
  2646. References: <8046@ut-sally.UUCP> <8018@ut-sally.UUCP> <8024@ut-sally.UUCP> <8068@ut-sally.UUCP>
  2647. Sender: std-unix@ut-sally.UUCP
  2648. Reply-To: rutgers.edu!moss!cuuxb!akre@ut-sally.UUCP (Mike Akre)
  2649. Organization: AT&T, Data Systems Division, Lisle, IL
  2650. Date: 21 May 87 13:22:52 GMT
  2651. Apparently-To: std-unix-archive
  2652.  
  2653. From: akre@cuuxb.uucp (Mike Akre)
  2654.  
  2655. In article <8068@ut-sally.UUCP> jsdy@hadron.uucp (Joseph S. D. Yao) writes:
  2656. >>Hmmm.  Since stat(2) returns
  2657. >>               dev_t  st_dev; /* device inode resides on */
  2658. >>it should be easy enough to see when you've crossed a device boundary,
  2659. >
  2660. >What I'd been thinking of was something on the order of:
  2661. >    find / \( -fs /usr -o -fsd /dev/rdsk/ra11 \) -a -print
  2662.  
  2663. find knows how to not cross mount points in System V Release 3.0 and later.
  2664. It has a new option "-mount" that will restrict find's searching to the
  2665. filesystem containing the directory specified.
  2666.  
  2667. I do full backups of the root filesystem with something like this:
  2668.  
  2669.     cd /
  2670.     find . -mount -depth -print | cpio -oacB >/dev/rmt/0m
  2671.  
  2672. Mike Akre
  2673. Lisle, IL
  2674.  
  2675. Volume-Number: Volume 11, Number 35
  2676.  
  2677. From jsq  Tue May 26 21:10:45 1987
  2678. Posted-Date: 26 May 87 23:54:40 GMT
  2679. Received-Date: Tue, 26 May 87 21:10:45 CDT
  2680. Received: by sally.utexas.edu (5.54/5.51)
  2681.     id AA18983; Tue, 26 May 87 21:10:45 CDT
  2682. From: John Gilmore <gnu%hoptoad.UUCP@sally.utexas.edu>
  2683. Newsgroups: comp.std.unix
  2684. Subject: More tar/cpio
  2685. Message-Id: <8144@ut-sally.UUCP>
  2686. References: <8046@ut-sally.UUCP> <8018@ut-sally.UUCP> <8024@ut-sally.UUCP> <8128@ut-sally.UUCP>
  2687. Sender: std-unix@ut-sally.UUCP
  2688. Reply-To: gnu@hoptoad.UUCP (John Gilmore)
  2689. Date: 26 May 87 23:54:40 GMT
  2690. Apparently-To: std-unix-archive
  2691.  
  2692. From: gnu@hoptoad.UUCP (John Gilmore)
  2693.  
  2694. In article <8128@ut-sally.UUCP>, akre@cuuxb.uucp (Mike Akre) writes:
  2695. > Find knows how to not cross mount points in System V Release 3.0 and later.
  2696. > It has a new option "-mount" that will restrict find's searching to the
  2697. > filesystem containing the directory specified.
  2698.  
  2699. SunOS 3.2 has a similar option, called "-xdev"; it says not to cross into
  2700. a different device than the one on which the filename argument resides.
  2701. As far as I can see, the two are the same.
  2702.  
  2703. Ted Nolan (ted@usceast.uucp) posted diffs to Unix tar to add a "T"
  2704. option to read filenames from standard input.  However, his changes
  2705. only worked for creating archives, not for reading from them.  His
  2706. changes were in net.sources posted 17 July 1984, as an "ed" script
  2707. for editing 4.2BSD tar.c.  I can provide copies if anybody wants 'em.
  2708. I also generated a context diff from this and can provide that.
  2709.  
  2710. It is true that my PD tar can read a list of filenames from standard
  2711. input, for both creating and reading archives.  It can also deal with a
  2712. large list of names to extract even on a small memory system, by giving
  2713. it another option letter indicating that the list on stdin is sorted to
  2714. match the tape.
  2715.  
  2716. I think that the argument boils down to:
  2717.  
  2718. *    Neither tar nor cpio is perfect for what we want.
  2719.  
  2720. *    People like cpio's user interface better.
  2721.  
  2722. *    Tar's format on the tape is more portable.
  2723.  
  2724. As a standards effort, we can't just create a new "portable" format
  2725. which is not portable to all the old Unix systems.  If we claim the
  2726. standard format is "cpio" or "tar" format, the old cpio or tar should
  2727. be able to read it.  All the suggestions for improving cpio format (Andy
  2728. Tannenbaum's are a good example) ignore interchange with older systems.
  2729. If we decide on a format which neither tar nor cpio, as they now stand, 
  2730. can read, let's invent a new name for the format and the command (posio,
  2731. for portable standard I/O?  That sounds too much like stdio though. 
  2732. Posar?).
  2733.  
  2734. Personally I think what matters most is the interchange format, not the
  2735. user interface; this is why I favor tar.  The user or system implementer
  2736. can always provide a better, or additional, user interface but they
  2737. are stuck with the interchange format.
  2738.  
  2739. As I recall, the draft I saw standardized the interchange format but
  2740. specifically did not standardize the command used to generate that
  2741. format.  How would people feel about a compromise wherein a new option
  2742. added to "cpio" would cause it to generate or read POSIX interchange tapes,
  2743. which might happen to have a format compatible with V7 tar?  Vendors
  2744. could make this option the default if desired, requiring the user to
  2745. specify an option to write binary or ascii cpio tapes.  When reading,
  2746. it could figure out the format of a tape without user intervention.
  2747.  
  2748. Volume-Number: Volume 11, Number 36
  2749.  
  2750. From jsq  Sat May 30 21:27:04 1987
  2751. Posted-Date: 28 May 87 22:49:57 GMT
  2752. Received-Date: Sat, 30 May 87 21:27:04 CDT
  2753. Received: by sally.utexas.edu (5.54/5.51)
  2754.     id AA11616; Sat, 30 May 87 21:27:04 CDT
  2755. From: Paul Eggert <eggert@grand.uucp>
  2756. Newsgroups: comp.std.unix
  2757. Subject: cpio inode number limit is too low
  2758. Message-Id: <8174@ut-sally.UUCP>
  2759. References: <8014@ut-sally.UUCP>
  2760. Sender: std-unix@ut-sally.UUCP
  2761. Reply-To: sdcrdcf!eggert@cs.ucla.edu (Paul Eggert)
  2762. Organization: Unisys Santa Monica
  2763. Date: 28 May 87 22:49:57 GMT
  2764. Apparently-To: std-unix-archive
  2765.  
  2766. From: eggert@grand.uucp (Paul Eggert)
  2767.  
  2768. I spent a day last week on cpio software installation problems, and would like
  2769. to amplify a point John Gilmore made in <8014@ut-sally.UUCP>: the cpio -c
  2770. format does not represent enough inode numbers.  It represents only inode
  2771. numbers less than 2^18 = 262144.  Even our venerable Fujitsu Eagle has a
  2772. filesystem with 108544 inodes; some filesystems today, and many more soon, will
  2773. exceed this limit.
  2774.  
  2775. Most implementations of cpio wrongly examine just the bottom 16 bits of the
  2776. inode number, even when the -c flag is used, because in the source code a
  2777. crucial variable is declared "unsigned short".  Some implementations (e.g. Sun
  2778. UNIX 3.2; Sun has promised a fix) due to other coding errors sometimes look
  2779. only at the bottom 15 bits.  Hence if you want to create a portable cpio tape
  2780. today, you must not trust your destination cpio to properly restore two files
  2781. whose inode numbers are equal modulo 2^15: the destination cpio might
  2782. mistakenly think the second file is a hard link to the first.  The problem can
  2783. occur even if no two source files are hard links, or even if you are using cpio
  2784. -p where no tape is involved.  My best workaround for this problem would be
  2785. laborious:  make the tape after reconfiguring the source filesystem to have no
  2786. more than 2^15 = 32768 inodes.  It was enough to make me switch to tar!
  2787.  
  2788. Even if all cpios were fixed to look properly at all 18 bits, the problem will
  2789. recur with tomorrow's filesystems.  Let us not perpetuate an inode number limit
  2790. that is too low.
  2791.  
  2792. Volume-Number: Volume 11, Number 37
  2793.  
  2794. From jsq  Sat May 30 21:41:51 1987
  2795. Posted-Date: 28 May 87 17:31:30 GMT
  2796. Received-Date: Sat, 30 May 87 21:41:51 CDT
  2797. Received: by sally.utexas.edu (5.54/5.51)
  2798.     id AA11747; Sat, 30 May 87 21:41:51 CDT
  2799. From: Jim Mayer <usenet@seismo.css.gov>
  2800. Newsgroups: comp.std.unix
  2801. Subject: state of unix standards
  2802. Message-Id: <8175@ut-sally.UUCP>
  2803. Sender: std-unix@ut-sally.UUCP
  2804. Reply-To: usenet@seismo.css.gov (Jim Mayer)
  2805. Organization: Xerox: Webster Research Center, Rochester, NY
  2806. Date: 28 May 87 17:31:30 GMT
  2807. Apparently-To: std-unix-archive
  2808.  
  2809. From: usenet@seismo.css.gov (Jim Mayer)
  2810.  
  2811. I remember hearing at one point about a decision by AT&T and one or more other
  2812. companies (Sun Microsystems sticks in my head) to move towards a single
  2813. Un*x standard.  Does anyone know what is happening with this?  Is it all
  2814. waiting on the "posix" stuff?  Is there any hope of getting a single
  2815. standard with:
  2816.  
  2817.     Long file names
  2818.     Symbolic links
  2819.     Reasonable networking
  2820.     Long identifier names in programs
  2821.  
  2822. [ POSIX does not deal with most of this:  it is strictly a programming
  2823. interface standard.  There are related groups dealing with most of these
  2824. issues, however:  see my semi-monthly posting on standards groups.  -mod ]
  2825.  
  2826. I have not been following the various standards efforts.  I think it might
  2827. be useful for someone who has to make a posting describing the major
  2828. differences between the different candidates.
  2829.  
  2830. [ Appendix A of POSIX is a diff between it and the SVID.  There is no
  2831. similar document for it and 4.3BSD.  The X/OPEN people have submitted
  2832. a document to P1003.1 on differences between POSIX and X/OPEN.  There
  2833. has been no direct comparison document between System V and 4.3BSD for
  2834. several years.  -mod ]
  2835.  
  2836.  
  2837. -- 
  2838. (Grapevine) mayer.wbst            (Arpa) mayer.wbst@Xerox.com
  2839. (NS) mayer:wbst128:xerox        (Phone) (716) 422-2496
  2840. (UUCP) rochester!rocksanne!mayer
  2841.  
  2842. Volume-Number: Volume 11, Number 38
  2843.  
  2844. From jsq  Sat May 30 21:46:24 1987
  2845. Posted-Date: 27 May 87 23:10:23 GMT
  2846. Received-Date: Sat, 30 May 87 21:46:24 CDT
  2847. Received: by sally.utexas.edu (5.54/5.51)
  2848.     id AA11814; Sat, 30 May 87 21:46:24 CDT
  2849. From: Henry Spencer <henry@utzoo.uucp>
  2850. Newsgroups: comp.std.unix
  2851. Subject: Re: tar or cpio?
  2852. Message-Id: <8176@ut-sally.UUCP>
  2853. References: <8001@ut-sally.UUCP>, <8126@ut-sally.UUCP>
  2854. Sender: std-unix@ut-sally.UUCP
  2855. Reply-To: henry@utzoo.uucp
  2856. Date: 27 May 87 23:10:23 GMT
  2857. Apparently-To: std-unix-archive
  2858.  
  2859. From: henry@utzoo.uucp (Henry Spencer)
  2860.  
  2861. Andy's comments about the facilities offered by tar and cpio are worthy
  2862. of note, but irrelevant to the P1003.1 issues.  This was actually raised
  2863. at the original /usr/group standards meeting when the question of a
  2864. standard intercharge format came up:  the facilities offered by the
  2865. current programs are quite irrelevant to the choice of format, since
  2866. the format does not dictate the user interface.  It is not especially
  2867. difficult to write "cpar" or "tpio", to get one user interface with the
  2868. other format.
  2869.  
  2870. I thought the choice of tar by /usr/group was a huge win, and still think
  2871. so; the extensions added in the Trial Use Standard strengthen this view.
  2872.  
  2873. The cpio binary format is a travesty:  unportable, non-extensible (for
  2874. example, it is sure that inode numbers are only 16 bits, often not true
  2875. today), and generally a mess.  Cpio ASCII format is better, but it still
  2876. shares some of these problems, since its field widths are sized to fit
  2877. old systems (for example, it can't deal with 32-bit inode numbers either).
  2878.  
  2879. Furthermore, I would note that at least the cpio binary format, possibly
  2880. the ASCII one as well, has existed in two different versions.  People who
  2881. claim that cpio is older than tar are half-lying:  the current version of
  2882. cpio is not.  I submit that the mere existence of multiple incompatible
  2883. versions of the cpio format is a major black mark against it.  Tar format
  2884. is virtually universal, with only minor (compatible!) extensions having
  2885. been made here and there.
  2886.  
  2887. Andy makes a good point about extensibility.  The tar format extends
  2888. gracefully because it has extra room in its header (which the existing
  2889. programs helpfully zero rather than filling with random trash) and in its
  2890. file-type code space.  (Note that the Trial Use Standard explicitly
  2891. reserves certain type codes for local extensions, and others for future
  2892. standards.  Note also that the Trial Use Standard's own extensions are
  2893. upward-compatible with the existing format and existing programs.)
  2894.  
  2895. Chapter 10 of the Trial Use Standard is a valuable part of the standard,
  2896. it is not broken, and it does not need fixing.  Leave it there.
  2897.  
  2898.                 Henry Spencer @ U of Toronto Zoology
  2899.                 {allegra,ihnp4,decvax,pyramid}!utzoo!henry
  2900.  
  2901.  
  2902. Volume-Number: Volume 11, Number 39
  2903.  
  2904. From jsq  Sat May 30 21:57:23 1987
  2905. Posted-Date: 27 May 87 16:30:05 GMT
  2906. Received-Date: Sat, 30 May 87 21:57:23 CDT
  2907. Received: by sally.utexas.edu (5.54/5.51)
  2908.     id AA11928; Sat, 30 May 87 21:57:23 CDT
  2909. From: Rahul Dhesi <dhesi%bsu-cs.UUCP@sally.utexas.edu>
  2910. Newsgroups: comp.std.unix
  2911. Subject: Re: More tar/cpio
  2912. Message-Id: <8177@ut-sally.UUCP>
  2913. References: <8046@ut-sally.UUCP> <8018@ut-sally.UUCP> <8024@ut-sally.UUCP> <8128@ut-sally.UUCP> <8144@ut-sally.UUCP>
  2914. Sender: std-unix@ut-sally.UUCP
  2915. Reply-To: bsu-cs!dhesi@seismo.css.gov (Rahul Dhesi)
  2916. Organization: CS Dept, Ball St U, Muncie, Indiana
  2917. Date: 27 May 87 16:30:05 GMT
  2918. Apparently-To: std-unix-archive
  2919.  
  2920. From: dhesi@bsu-cs.UUCP (Rahul Dhesi)
  2921.  
  2922. I think one issue that needs to be clarified is:  Are we trying to standardize
  2923. the user interface of the tar/cpio/other interchange standard, or the archive
  2924. format, or both?  For example, although standard tar does not accept filenames
  2925. from standard input, that is irrelevant to the actual suitablity of its
  2926. archive format.  The POSIX standard could easily use the tar archive format
  2927. with the cpio command structure, or vice versa.
  2928.  
  2929. [ POSIX is a programming interface standard.  It has nothing to do with
  2930. the command interface.  As such, the data interchange format is appropriate
  2931. for POSIX to standarize, but the user interface of the command that implements
  2932. it is not.  While P1003.2 (Shell and Tools) might be interested in the
  2933. user interface, P1003.1 (POSIX) is not.  -mod ]
  2934.  
  2935. The obvious choice seems to be the tar archive format (more widely used and
  2936. available) with cpio's user interface.
  2937.  
  2938. [ The user interface is irrelevant to P1003.1 and POSIX.  The immediate
  2939. issue (that must be resolved before balloting on the POSIX Full Use Standard)
  2940. is what the data interchange format should be.  Input before the next
  2941. P1003.1 Working Group meeting (20-24 June 1987 in Seattle) would be
  2942. most helpful.  -mod ]
  2943.  
  2944. -- 
  2945. Rahul Dhesi         UUCP:  {ihnp4,seismo}!{iuvax,pur-ee}!bsu-cs!dhesi
  2946.  
  2947. Volume-Number: Volume 11, Number 40
  2948.  
  2949. From jsq  Mon Jun  1 21:25:18 1987
  2950. Posted-Date: 2 Jun 87 02:25:08 GMT
  2951. Received-Date: Mon, 1 Jun 87 21:25:18 CDT
  2952. Received: by sally.utexas.edu (5.54/5.51)
  2953.     id AA16036; Mon, 1 Jun 87 21:25:18 CDT
  2954. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  2955. Newsgroups: comp.std.unix
  2956. Subject: tar vs. cpio
  2957. Message-Id: <8188@ut-sally.UUCP>
  2958. Reply-To: std-unix@sally.utexas.edu
  2959. Date: 2 Jun 87 02:25:08 GMT
  2960. Apparently-To: std-unix-archive
  2961. Status: R
  2962.  
  2963. Included below is a draft proposal for IEEE P1003.1 regarding
  2964. the recently raised issue of Archive/Data Interchange Format.
  2965. I will deliver a proposal resembling it to P1003.1 at their
  2966. next meeting, which is three weeks from today, in Seattle.
  2967.  
  2968. Note two things:  this is a proposal for P1003.1, not P1003.2,
  2969. or any other group; if you disagree with my conclusions, you
  2970. can submit your own proposal-- the address is below.
  2971.  
  2972. If you agree with my approach but think it needs adjusting,
  2973. you can send me mail or submit articles.  If you disagree, you
  2974. can also do those things.
  2975.  
  2976.  
  2977.  
  2978.                                   tar vs. cpio      IEEE P1003.1 N.___
  2979.                                                            1 June 1987
  2980.  
  2981.                                John S. Quarterman
  2982.  
  2983.                     Institutional Representative from USENIX
  2984.                                    usenix!jsq
  2985.  
  2986.  
  2987.  
  2988.           Secretary, IEEE Standards Board
  2989.           Attention: P1003 Working Group
  2990.           345 East 47th St.
  2991.           New York, NY 10017
  2992.  
  2993.           In both the Trial Use Standard and Draft 10, POSIX sS10.1
  2994.           describes a data interchange format based on the tar
  2995.           program.  That section has appeared in every draft of IEEE
  2996.           1003.1 in some form and has always been based on tar format.
  2997.           The P1003.1 Working Group has recently received two related
  2998.           proposals regarding that section: one to add cpio format
  2999.           (including old-style, non-ASCII (non c option) format);
  3000.           <N.048 Lorraine C. Kevra> <V11N14> <V11N25 Eric S. Raymond>
  3001.           the other to replace the existing tar-based format with cpio
  3002.           format.  <N.043 X/OPEN> <V11N13> Some clarifications were
  3003.           received to the former.  <N.064 Dominic Dunlop> <V11N15> It
  3004.           was also proposed verbally in the latest Working Group
  3005.           meeting to drop sS10.1 altogether and let P1003.2 handle the
  3006.           issue.  <V11N08> <V11N11> <V11N09 Guy Harris> <V11N12 Doug
  3007.           Gwyn>
  3008.  
  3009.           The present note is a response to those proposals.  Much of
  3010.           the detail in it is derived from articles posted in the
  3011.           USENET newsgroup comp.std.unix.  Those articles are
  3012.           referenced with this format: <V11N09 Guy Harris> which gives
  3013.           the volume (11) and number of the article, and the name of
  3014.           the submittor.  If no submittor name is given, the posting
  3015.           was by the moderator, John S. Quarterman.  Thanks to those
  3016.           who submitted articles.  However, the content of this note
  3017.           is solely the responsibility of the author.
  3018.  
  3019.           There are a number of problems with both cpio formats.
  3020.           First, those related to the non-ASCII format:
  3021.  
  3022.             1.  Numerous parameters, including inode numbers, mode
  3023.                 bits, and user and group IDs, are kept in two-byte
  3024.                 binary integers.  This has historically produced
  3025.                 serious byte-order problems when data is moved among
  3026.                 systems with different byte orders.  <V11N09 Guy
  3027.                 Harris>
  3028.  
  3029.             2.  The byte-swapping and word-swapping options to the
  3030.                 cpio program are inadequate patches; with an ASCII
  3031.                 format the problem would not be present.  The options
  3032.                 are not consistent across versions of the program: in
  3033.  
  3034.  
  3035.  
  3036.  
  3037.  
  3038.  
  3039.  
  3040.           Page 2                  tar vs. cpio      IEEE P1003.1 N.___
  3041.  
  3042.  
  3043.  
  3044.                 System III, data blocks and file names are byte
  3045.                 swapped; in System V, only data blocks are byte
  3046.                 swapped.  <V11N09 Guy Harris>
  3047.  
  3048.             3.  The two-byte integer format limits the range of inode
  3049.                 numbers to 1..65535.  Many current file systems are
  3050.                 bigger than that.  <V11N37 Paul Eggert> <V11N39 Henry
  3051.                 Spencer>
  3052.  
  3053.           Non-ASCII cpio format is clearly not portable and should not
  3054.           even be considered for standardization.  <V11N12 Doug Gwyn>
  3055.  
  3056.           There are several problems that occur even with the ASCII
  3057.           cpio format:
  3058.  
  3059.             1.  Many implementations of cpio only look at the lower 16
  3060.                 (or even 15) bits of the inode number, even in ASCII
  3061.                 format.  <V11N39 Henry Spencer> This is because the
  3062.                 variable that is used to contain the value is declared
  3063.                 to be unsigned short, just as in binary format.  Thus,
  3064.                 even though ASCII cpio format does not constrain this
  3065.                 number, it is still less than portable.  <V11N37 Paul
  3066.                 Eggert>
  3067.  
  3068.             2.  The proposed cpio ASCII format as specified, <N.048
  3069.                 Lorraine C. Kevra> <V11N14> is not portable because
  3070.                 the proposal assumes that sizeof(int) == sizeof(long).
  3071.                 <N.064 Dominic Dunlop> <V11N15>
  3072.  
  3073.             3.  The file type written in a numerical format, making it
  3074.                 UNIX specific rather than POSIX specific, since POSIX
  3075.                 (and tar) specifies symbolic, rather than numerical,
  3076.                 values for file types.  <V11N09 Guy Harris>
  3077.  
  3078.             4.  Hard links are not handled well, since cpio format
  3079.                 does not record that two files are linked.  If two
  3080.                 files that are linked are written in cpio format, two
  3081.                 copies will be written.  There is an option to the
  3082.                 cpio program to detect duplicate files by matching
  3083.                 pairs of (h_dev, h_ino) and producing links, but that
  3084.                 is done after the fact.  <V11N09 Guy Harris> (There is
  3085.                 a program, afio, that handles cpio format more
  3086.                 efficiently in this and other cases than the licensed
  3087.                 versions of the program.) <V11N21 Chuck Forsberg>
  3088.  
  3089.             5.  Symbolic links are not handled at all, and no type
  3090.                 value is reserved for them.  This makes cpio useless
  3091.                 on a large class of historical implementations (those
  3092.                 based on 4.2BSD or its file system) for one of the
  3093.                 main purposes of POSIX sS10.1: archiving files for
  3094.                 later retrieval and use on the same system.
  3095.  
  3096.  
  3097.  
  3098.  
  3099.  
  3100.  
  3101.  
  3102.           Page 3                  tar vs. cpio      IEEE P1003.1 N.___
  3103.  
  3104.  
  3105.  
  3106.             6.  The cpio format is less common than tar format: there
  3107.                 are few historical implementations from Version 7 on
  3108.                 that do not have tar; there are many that do not have
  3109.                 cpio.  <V11N09 Guy Harris> <V11N10 Charles Hedrick>
  3110.                 <V11N24 Jim Cottrell> It is true that cpio (non-ASCII
  3111.                 format) was invented before tar, <V11N22 Joseph S. D.
  3112.                 Yao> apparently in PWB System 1.0.  <V11N26 Joseph S.
  3113.                 D. Yao> However, cpio was not available outside AT&T
  3114.                 before the release of System III, while tar was in
  3115.                 wide use with Version 7 and is still much more common.
  3116.                 Also, it appears that the cpio format of PWB was not
  3117.                 the same as that of System III.  <V11N39 Henry
  3118.                 Spencer> Although System III and perhaps early
  3119.                 releases of System V did not include tar, <V11N26
  3120.                 Joseph S. D. Yao> current releases of System V do.
  3121.  
  3122.             7.  It is very late in the process to propose that P1003.1
  3123.                 adopt cpio format now, especially considering that it
  3124.                 was originally proposed to and rejected by the
  3125.                 /usr/group committee before P1003.1 was even formed.
  3126.                 <V11N39 Henry Spencer>
  3127.  
  3128.           There are several advantages to the current tar-based format
  3129.           as specified in sS10.1:
  3130.  
  3131.             1.  There are no byte- or word-swapping issues caused by
  3132.                 the format, since all the header values are ASCII byte
  3133.                 streams.  <V11N17 John Gilmore>
  3134.  
  3135.             2.  There are no inode numbers recorded, and file types
  3136.                 are kept in symbolic form, so the format is less
  3137.                 implementation-specific than cpio format.  <V11N17
  3138.                 John Gilmore>
  3139.  
  3140.             3.  Historical tar format is the most widely used, as
  3141.                 discussed in 6. above, despite apparent assertions to
  3142.                 the contrary.  <N.043 X/OPEN> <V11N13>
  3143.  
  3144.             4.  The format specified in sS10.1 is upward-compatible
  3145.                 with tar format.  Old tar archives can be extracted by
  3146.                 a program that implements sS10.1.  Archives using some
  3147.                 of the extensions of sS10.1 can be extracted with old
  3148.                 (Version 7) tar programs, although symbolic links will
  3149.                 not be extracted and contiguous files will not be
  3150.                 handled properly (cpio does not handle these
  3151.                 capabilities at all).  Files with very long names will
  3152.                 not be handled properly (cpio does no better at this).
  3153.                 All tar implementations are compatible to this extent.
  3154.                 <V11N17 John Gilmore>
  3155.  
  3156.  
  3157.  
  3158.  
  3159.  
  3160.  
  3161.  
  3162.  
  3163.  
  3164.           Page 4                  tar vs. cpio      IEEE P1003.1 N.___
  3165.  
  3166.  
  3167.  
  3168.             5.  The /usr/group working group and P1003.1 have already
  3169.                 done the work <P.061> <M.019 5.1.121 Pg.13> <RFC.003
  3170.                 #121> <P.038> <P.006> required to add optional
  3171.                 extensions (such as symbolic links, contiguous files,
  3172.                 and long file names) that are needed on many
  3173.                 historical implementations and that cpio format lacks.
  3174.  
  3175.             6.  The format is extensible for future facilities.
  3176.                 <V11N39 Henry Spencer>
  3177.  
  3178.             7.  There is a public domain implementation of the format
  3179.                 of sS10.1.  That implementation provided feedback which
  3180.                 led to improvements in the current specification, and
  3181.                 has been in use for years in transferring data with
  3182.                 licensed tar implementations.  <V11N17 John Gilmore>
  3183.  
  3184.             8.  Many people prefer the user interface of the cpio
  3185.                 program to that of the tar program, because the former
  3186.                 can accept a list of pathnames to archive on standard
  3187.                 input while the latter takes them as arguments,
  3188.                 limiting the length of the list.  <V11N34 Andrew
  3189.                 Tannenbaum> However, the above-mentioned public domain
  3190.                 implementation of tar accepts pathnames on standard
  3191.                 input.  <V11N17 John Gilmore> <V11N19 Jim Cottrell>
  3192.                 Diffs to standard tar to add an option to accept
  3193.                 pathnames on standard input when creating an archive
  3194.                 have also been posted to USENET.  <V11N36 John
  3195.                 Gilmore> The user interface is, in any case,
  3196.                 irrelevant to P1003.1.  <V11N39 Henry Spencer> <V11N40
  3197.                 Rahul Dhesi>
  3198.  
  3199.           There are some problems that neither tar nor cpio handles
  3200.           well.
  3201.  
  3202.             1.  An option to prevent crossing mount points would be
  3203.                 useful for backups.  <V11N19 Jim Cottrell> <V11N22
  3204.                 Joseph S. D. Yao> However, this appears to be more of
  3205.                 an implementation issue than a format issue, <V11N28
  3206.                 Dave Brower> <V11N32 Joseph S. D. Yao> especially
  3207.                 considering that there are options to find in 4.2BSD,
  3208.                 <V11N24 Jim Cottrell> SunOS 3.2, <V11N36 John Gilmore>
  3209.                 and System V Release 3.0 <V11N35 Mike Akre> that take
  3210.                 care of this.
  3211.  
  3212.             2.  The default block size in many tar implementations is
  3213.                 too large for some tape controllers to read <V11N27
  3214.                 Rob Lake> (the 3B20 has this problem).  This is not a
  3215.                 problem with the interchange format, however.
  3216.  
  3217.           There is nothing that the proposed cpio can handle that the
  3218.           tar-based format already in POSIX sS10.1 cannot handle; in
  3219.  
  3220.  
  3221.  
  3222.  
  3223.  
  3224.  
  3225.  
  3226.           Page 5                  tar vs. cpio      IEEE P1003.1 N.___
  3227.  
  3228.  
  3229.  
  3230.           fact, the former is less capable.  If cpio format were
  3231.           augmented to handle missing capabilities, it would be
  3232.           subject to the same objections now aimed at the format given
  3233.           in sS10.1: that it was not identical with an existing format.
  3234.  
  3235.           There is no advantage in replacing the current tar-based
  3236.           format of sS10.1 with cpio format.  There is also no
  3237.           advantage in adding cpio format, because two standards are
  3238.           not as good as a single standard.
  3239.  
  3240.           Some have recommended removing sS10.1 from POSIX altogether,
  3241.           <V11N12 Doug Gwyn> perhaps with a recommendation for P1003.2
  3242.           to pick up the idea.  <V11N09 Guy Harris> While I believe
  3243.           that that would be preferable to adding cpio format, whether
  3244.           or not tar format remains, I recommend leaving sS10.1 as it
  3245.           is, because
  3246.  
  3247.              o+ The inclusion of an archive/interchange file format is
  3248.                in agreement with the purpose of POSIX to promote
  3249.                portability of application programs across interface
  3250.                implementations.  Some format will be used.  It is to
  3251.                the advantage of the users of the standard for there to
  3252.                be a standard format.
  3253.  
  3254.              o+ The de facto standard is tar format.  The current sS10.1
  3255.                standardizes that, and provides upward-compatible
  3256.                extensions in areas that were previously lacking.
  3257.  
  3258.           The Archive/Interchange File Format should be left as it is.
  3259.  
  3260.                                                   Thank you,
  3261.  
  3262.  
  3263.  
  3264.                                                   John S. Quarterman
  3265.  
  3266.  
  3267.  
  3268.  
  3269.  
  3270.  
  3271. Volume-Number: Volume 11, Number 41
  3272.  
  3273. From jsq  Tue Jun  2 10:43:13 1987
  3274. Posted-Date: 2 Jun 87 08:04:10 GMT
  3275. Received-Date: Tue, 2 Jun 87 10:43:13 CDT
  3276. Received: by sally.utexas.edu (5.54/5.51)
  3277.     id AA25539; Tue, 2 Jun 87 10:43:13 CDT
  3278. From: Tony O'Hagan <tony@uqcspe.oz.au>
  3279. Newsgroups: comp.std.unix
  3280. Subject: Re: tar or cpio?
  3281. Summary: off-line archives and big files
  3282. Message-Id: <8189@ut-sally.UUCP>
  3283. References: <8001@ut-sally.UUCP> <8126@ut-sally.UUCP>
  3284. Sender: std-unix@ut-sally.UUCP
  3285. Reply-To: tony%uqcspe.OZ@seismo.css.gov (Tony O'Hagan)
  3286. Organization: Computer Science, Queensland Uni, Australia
  3287. Date: 2 Jun 87 08:04:10 GMT
  3288. Apparently-To: std-unix-archive
  3289. Status: R
  3290.  
  3291. From: tony@uqcspe.oz.au (Tony O'Hagan)
  3292.  
  3293. Last year I wrote an off-line tape archive system for use on our UNIX
  3294. machines.  Tar and cpio were carefully compared to decide the appropiate
  3295. format for the tape archives.  Eventually we chose cpio because it permitted
  3296. retrieval of any pattern of files.  
  3297.  
  3298. About 120+ cpio files are stored on each archive tape and from bitter
  3299. experience I know that sometimes when appending/retrieving files to/from tape
  3300. an insufficient number of files are skipped.  (We count them using taprd now)
  3301. It would have been useful to write a "file label" included in the header
  3302. of each cpio file and be able to check this when reading.  I would have used it
  3303. to check the file number but I'm sure it would have other uses. 
  3304. ( I would skip to the file before and check it's label when appending. )
  3305.  
  3306. I recently adapted the archive system from V7 to BSD 4.2 and added the
  3307. facility to drive remote tape drives using the blocking filters which fitted
  3308. in well with cpio.
  3309.  
  3310. [ These are useful points, though they are not problems with the data
  3311. interchange format, rather with the program that uses it.  -mod ]
  3312.  
  3313.     P.S.
  3314. There are a few other bugs in cpio which I had to fix for the local version.
  3315.     * creating new otherwise unstored directories with the current
  3316.       mask (not mode 777).  (with -d switch)
  3317.     * not changing the ownership/group/permissions of existing
  3318.       directories back to their values at the time of archiving.
  3319. ==============================================================================
  3320. Tony O'Hagan        Australia: (07) 3774125  International: +61 7 3774125
  3321. University of Queensland    CSNET:    tony@uqcspe.oz    ACSnet:    tony@uqcspe.oz
  3322. Dept. of Computer Science    UUCP:    ...!seismo!munnari!uqcspe.oz!tony
  3323. St. Lucia, Brisbane,         ARPA:    tony%uqcspe.oz@seismo.css.gov
  3324. AUSTRALIA  4067             JANET:    uqcspe.oz!tony@ukc
  3325.  
  3326. Volume-Number: Volume 11, Number 42
  3327.  
  3328. From jsq  Thu Jun  4 17:09:57 1987
  3329. Posted-Date: 2 Jun 87 17:15:32 GMT
  3330. Received-Date: Thu, 4 Jun 87 17:09:57 CDT
  3331. Received: by sally.utexas.edu (5.54/5.51)
  3332.     id AA11054; Thu, 4 Jun 87 17:09:57 CDT
  3333. From: <gmt@arizona.edu>
  3334. Newsgroups: comp.std.unix
  3335. Subject: Re: tar vs. cpio
  3336. Message-Id: <8197@ut-sally.UUCP>
  3337. References: <8188@ut-sally.UUCP>
  3338. Sender: std-unix@ut-sally.UUCP
  3339. Reply-To: "Gregg Townsend" <gmt@arizona.edu>
  3340. Date: 2 Jun 87 17:15:32 GMT
  3341. Apparently-To: std-unix-archive
  3342.  
  3343. From: <gmt@arizona.edu> (Gregg Townsend)
  3344.  
  3345. I agree with you on this and appreciate the effort it took to collect
  3346. all the various points in a single document.  Here is one additional
  3347. point about the ASCII cpio format that I think is worth mentioning:
  3348.  
  3349.     n.  Even when a cpio archive is composed entirely of text
  3350.         files, it can be tricky to transport because the file
  3351.         name is terminated by a 00 byte.
  3352.  
  3353.  
  3354. Hope this is helpful.  Do with it what you wish.
  3355.  
  3356.      Gregg Townsend / Computer Science Dept / Univ of Arizona / Tucson, AZ 85721
  3357.      +1 602 621 4325      gmt@Arizona.EDU       110 57 17 W / 32 13 47 N / +758m
  3358.  
  3359. Volume-Number: Volume 11, Number 43
  3360.  
  3361. From jsq  Thu Jun  4 17:21:00 1987
  3362. Posted-Date: 2 Jun 87 02:55:52 GMT
  3363. Received-Date: Thu, 4 Jun 87 17:21:00 CDT
  3364. Received: by sally.utexas.edu (5.54/5.51)
  3365.     id AA11401; Thu, 4 Jun 87 17:21:00 CDT
  3366. From: Mark Horton <mark@cbterra.ATT.COM>
  3367. Newsgroups: comp.std.unix
  3368. Subject: Re: More tar/cpio
  3369. Message-Id: <8198@ut-sally.UUCP>
  3370. References: <8046@ut-sally.UUCP> <8018@ut-sally.UUCP> <8024@ut-sally.UUCP> <8128@ut-sally.UUCP> <8144@ut-sally.UUCP>
  3371. Sender: std-unix@ut-sally.UUCP
  3372. Reply-To: mark@cbpavo.mis.oh.att.com (Mark Horton)
  3373. Organization: AT&T Bell Laboratories, Columbus, Oh
  3374. Date: 2 Jun 87 02:55:52 GMT
  3375. Apparently-To: std-unix-archive
  3376.  
  3377. From: mark@cbpavo.mis.oh.att.com (Mark Horton)
  3378.  
  3379. In article <8144@ut-sally.UUCP> gnu@hoptoad.UUCP (John Gilmore) writes:
  3380. >*    People like cpio's user interface better.
  3381. >
  3382. >*    Tar's format on the tape is more portable.
  3383.  
  3384. Personally, I feel exactly the opposite.
  3385.  
  3386. The cpio format is quite portable, as long as you're careful to use
  3387. the c option.  The advantage to cpio format is that the images created
  3388. are considerably smaller than tar's.  Also, cpio can save/restore entries
  3389. from /dev, making it useful for backups.
  3390.  
  3391. [ The format in POSIX 10.1 can also do this.  -mod ]
  3392.  
  3393. The user interface, on the other hand, of cpio is horrible, unless you
  3394. are trying to do an incremental backup.  Compare the following equivalent
  3395. commands:
  3396.     $ tar c .
  3397.     $ find . -print | cpio -oc > /dev/rmt8
  3398.  
  3399.     $ tar x .
  3400.     $ cpio -icd < /dev/rmt8
  3401.  
  3402. Not only do you need a find command with cpio, but you'd better
  3403. remember the c and d options, or you'll regret it later!
  3404.  
  3405. cpio is a big win for incremental backups, as long as they fit
  3406. on one reel of tape:
  3407.     $ find . -newer /etc/lastbackup -print | cpio -oc > /dev/rmt8
  3408. Of course, that's a pretty major "as long as", and there are lots
  3409. of special versions of cpio that understand multiple backup volumes
  3410. and streaming I/O and such things.
  3411.  
  3412.     Mark
  3413.  
  3414. Volume-Number: Volume 11, Number 44
  3415.  
  3416. From jsq  Thu Jun  4 17:31:07 1987
  3417. Posted-Date: 2 Jun 87 18:35:19 GMT
  3418. Received-Date: Thu, 4 Jun 87 17:31:07 CDT
  3419. Received: by sally.utexas.edu (5.54/5.51)
  3420.     id AA11616; Thu, 4 Jun 87 17:31:07 CDT
  3421. From: Guy Harris <guy@sun.com>
  3422. Newsgroups: comp.std.unix
  3423. Subject: Re: tar vs. cpio
  3424. Message-Id: <8199@ut-sally.UUCP>
  3425. Sender: std-unix@ut-sally.UUCP
  3426. Reply-To: guy@sun.com (Guy Harris)
  3427. Date: 2 Jun 87 18:35:19 GMT
  3428. Apparently-To: std-unix-archive
  3429.  
  3430. From: guy@sun.com (Guy Harris)
  3431.  
  3432. I agree with the proposal; these are just some nits.
  3433.  
  3434.           ...meeting to drop sS10.1 altogether...
  3435.  
  3436. The sequence "s^HS" appears here, and in several other places - is
  3437. this intentional or a bizarre result from "nroff"?
  3438.  
  3439. [ It's nroff's attempt to produce a section sign.  The actual note
  3440. will be formatted with troff, which can handle it.  I will incorporate
  3441. your other comments.  -mod ]
  3442.  
  3443.             4.  Hard links are not handled well, since cpio format
  3444.                 does not record that two files are linked.  If two
  3445.                 files that are linked are written in cpio format, two
  3446.                 copies will be written.  There is an option to the
  3447.                 cpio program to detect duplicate files by matching
  3448.                 pairs of (h_dev, h_ino) and producing links, but that
  3449.                 is done after the fact.
  3450.  
  3451. Actually, this is the standard way "cpio" handles hard links; it's
  3452. not an option.
  3453.  
  3454.             5.  Symbolic links are not handled at all, and no type
  3455.                 value is reserved for them.  This makes cpio useless
  3456.                 on a large class of historical implementations (those
  3457.                 based on 4.2BSD or its file system) for one of the
  3458.                 main purposes of POSIX sS10.1: archiving files for
  3459.                 later retrieval and use on the same system.
  3460.  
  3461. (Another s^HS here)  It is possible to extend this format to handle
  3462. symbolic links; we have done this.
  3463.  
  3464. [ But remember that what was proposed to P1003.1 was existing System V
  3465. cpio format. -mod ]
  3466.  
  3467.                 ...However, cpio was not available outside AT&T
  3468.                 before the release of System III, while tar was in
  3469.                 wide use with Version 7 and is still much more common.
  3470.  
  3471. Actually, the old "cpio" was available with PWB/UNIX 1.0, which AT&T
  3472. did release.
  3473.  
  3474.                 Also, it appears that the cpio format of PWB was not
  3475.                 the same as that of System III.  <V11N39 Henry
  3476.                 Spencer> Although System III and perhaps early
  3477.                 releases of System V did not include tar, <V11N26
  3478.                 Joseph S. D. Yao> current releases of System V do.
  3479.  
  3480. No, System III and all releases of S5 included "tar".
  3481.  
  3482. Volume-Number: Volume 11, Number 45
  3483.  
  3484. From jsq  Thu Jun  4 17:41:05 1987
  3485. Posted-Date: 1 Jun 87 13:16:00 GMT
  3486. Received-Date: Thu, 4 Jun 87 17:41:05 CDT
  3487. Received: by sally.utexas.edu (5.54/5.51)
  3488.     id AA11752; Thu, 4 Jun 87 17:41:05 CDT
  3489. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  3490. Newsgroups: comp.std.unix
  3491. Subject: Re: More tar/cpio
  3492. Message-Id: <8200@ut-sally.UUCP>
  3493. References: <8177@ut-sally.UUCP>
  3494. Reply-To: bsteve@gorgo.uucp
  3495. Date: 1 Jun 87 13:16:00 GMT
  3496. Apparently-To: std-unix-archive
  3497.  
  3498. From: <ihnp4!gorgo!bsteve> (Steve Blasingame)
  3499.  
  3500. dhesi@bsu-cs.UUCP (Rahul Dhesi) Writes:
  3501.  
  3502. >The obvious choice seems to be the tar archive format (more widely used and
  3503. >available) with cpio's user interface.
  3504.  
  3505. The significant issue regarding cpio that has not been addressed is the
  3506. function of copying directory trees to directory trees. There is not another
  3507. standard tool that performs this important function.
  3508.  
  3509. [ I use tar to do this all the time.  The 4.3BSD man page includes:
  3510.  
  3511.                Tar can also be used to move
  3512.                hierarchies with the command
  3513.                  cd fromdir; tar cf - . | (cd todir; tar xf -)
  3514.  
  3515. -mod ]
  3516.  
  3517.   Steve Blasingame (Oklahoma City)
  3518.   ihnp4!gorgo!bsteve
  3519.  
  3520. Volume-Number: Volume 11, Number 46
  3521.  
  3522. From jsq  Thu Jun  4 18:58:01 1987
  3523. Posted-Date: 3 Jun 87 17:53:08 GMT
  3524. Received-Date: Thu, 4 Jun 87 18:58:01 CDT
  3525. Received: by sally.utexas.edu (5.54/5.51)
  3526.     id AA13169; Thu, 4 Jun 87 18:58:01 CDT
  3527. From: Andrew Tannenbaum <trb@ima.ISC.COM>
  3528. Newsgroups: comp.std.unix
  3529. Subject: Re: tar vs. cpio
  3530. Message-Id: <8201@ut-sally.UUCP>
  3531. References: <8188@ut-sally.UUCP>
  3532. Sender: std-unix@ut-sally.UUCP
  3533. Reply-To: trb@harvard.harvard.edu@ima.ISC.COM (Andrew Tannenbaum)
  3534. Organization: Interactive Systems, Boston, MA
  3535. Date: 3 Jun 87 17:53:08 GMT
  3536. Apparently-To: std-unix-archive
  3537.  
  3538. From: trb@ima.ISC.COM (Andrew Tannenbaum)
  3539.  
  3540. >            6.  ...
  3541. >        <V11N39 Henry Spencer> Although System III and perhaps
  3542. >        early releases of System V did not include tar, <V11N26
  3543. >        Joseph S. D. Yao> current releases of System V do.
  3544.  
  3545. User manuals for UNIX Release 3.0 (June 1980) and Release 5.0 (June
  3546. 1982) both contain (identical) tar man pages.  The changes between the
  3547. V7 (January 1979) tar man page and these two seem to be cosmetic.  Both
  3548. contain cpio man pages, the 5.0 cpio has the byteswapping options, 3.0
  3549. does not.
  3550.  
  3551. This doesn't mean that Sys III and Sys V had tar, but it does indicate
  3552. an intention to include them.
  3553.  
  3554.     Andrew Tannenbaum   Interactive   Boston, MA   +1 617 247 1155
  3555.  
  3556. Volume-Number: Volume 11, Number 47
  3557.  
  3558. From jsq  Thu Jun  4 19:08:15 1987
  3559. Posted-Date: 2 Jun 87 04:43:42 GMT
  3560. Received-Date: Thu, 4 Jun 87 19:08:15 CDT
  3561. Received: by sally.utexas.edu (5.54/5.51)
  3562.     id AA13375; Thu, 4 Jun 87 19:08:15 CDT
  3563. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  3564. Newsgroups: comp.std.unix
  3565. Subject: Re: tar or cpio?
  3566. Message-Id: <8202@ut-sally.UUCP>
  3567. References: <8126@ut-sally.UUCP> <8001@ut-sally.UUCP>
  3568. Reply-To: scgvacd!stb!michael@seismo.UUCP (Michael Gersten)
  3569. Organization: STB BBS, La, Ca, USA, 90402
  3570. Date: 2 Jun 87 04:43:42 GMT
  3571. Apparently-To: std-unix-archive
  3572.  
  3573. From: seismo!scgvacd!stb!michael (Michael Gersten)
  3574.  
  3575. I have some comments on Tar/Cpio.
  3576.  
  3577. First, Radio SHack does sell a tar that has an argument F for "here is a
  3578. file with the files you should read". Works with - for stdin. However,
  3579. you can't read the files from stdin and write the output to stdout,
  3580. although you can write to a named pipe (does mostly the same thing).
  3581.  
  3582. Secondly, whatever you use for backups should know about blocksizes.
  3583. In particular, if you lose one floppy, users should be able to restore all
  3584. the information on the other floppies. Tar does not do this--linking information
  3585. gets lost if this occurs. 
  3586.  
  3587. In particular,
  3588.     Floppy A has file X on it
  3589.     Floppy B has "Link X to Y"
  3590. If you lose floppy A, you've got garbage for Y. Worse, if you restore out
  3591. of order, no warning is given other than "Cannot link".
  3592.  
  3593. Finally, I feel that tar, in order to be usable as a backup facility, should
  3594. be required to unlink a file before it restores it. Otherwise, consider this:
  3595.  
  3596. Customer uses initialization floppy to initialize hard disk, which puts basic
  3597. commands (ls, tar, cp, etc) on disk, then restores the entire system from tarred
  3598. floppies.
  3599.  
  3600. Initialization system had /bin/l linked to /bin/ls (AT&T versions)
  3601. Customer had /bin/ls linked to lc, lf, lx (Berkeley versions), and the
  3602. AT&T as ls.old
  3603.  
  3604. After untarring, the Berkeley version was lost, and the AT&T version was under
  3605. all the names. Took me a while to figure this one out. Guess who the
  3606. customer was.
  3607.  
  3608. I do not consider backup/restore usable as they take 5 minutes per file to
  3609. recover individual files. I am not kidding; maybe R/S mucked something, but
  3610. that is ridiculus. Sure, you can get faster, but only if you first format the
  3611. disk, which takes 2 hours, and also do an incremental dump first.
  3612.  
  3613. [ Do you mean dump and restor?  (Or dump and restore?)  -mod ]
  3614.  
  3615. ---
  3616. : Michael Gersten        seismo!scgvaxd!stb!michael
  3617. : The above is the result of being educated at a school that discriminates
  3618. : against roosters.
  3619.  
  3620. Volume-Number: Volume 11, Number 48
  3621.  
  3622. From jsq  Thu Jun  4 19:20:03 1987
  3623. Posted-Date: 3 Jun 87 20:16:23 GMT
  3624. Received-Date: Thu, 4 Jun 87 19:20:03 CDT
  3625. Received: by sally.utexas.edu (5.54/5.51)
  3626.     id AA13581; Thu, 4 Jun 87 19:20:03 CDT
  3627. From: Jerry Schwarz <jss@ulysses.uucp>
  3628. Newsgroups: comp.std.unix
  3629. Subject: Re: tar vs. cpio
  3630. Message-Id: <8203@ut-sally.UUCP>
  3631. References: <8188@ut-sally.UUCP>
  3632. Sender: std-unix@ut-sally.UUCP
  3633. Reply-To: jss@ulysses.uucp (Jerry Schwarz)
  3634. Organization: AT&T Bell Labs, Murray Hill
  3635. Date: 3 Jun 87 20:16:23 GMT
  3636. Apparently-To: std-unix-archive
  3637.  
  3638. From: jss@ulysses.uucp (Jerry Schwarz)
  3639.  
  3640. One problem with tar format is that it has a fixed 100 character
  3641. limit on the length of pathnames.   While this may not have
  3642. been a problem in practice, it would be short sighted to adopt
  3643. a standard with this limitation.  
  3644.  
  3645. [ The format in POSIX 10.1 has a way of handling longer file names. -mod ]
  3646.  
  3647. Jerry Schwarz
  3648.  
  3649. Volume-Number: Volume 11, Number 49
  3650.  
  3651. From jsq  Fri Jun  5 16:09:15 1987
  3652. Posted-Date: 5 Jun 87 18:04:28 GMT
  3653. Received-Date: Fri, 5 Jun 87 16:09:15 CDT
  3654. Received: by sally.utexas.edu (5.54/5.51)
  3655.     id AA03356; Fri, 5 Jun 87 16:09:15 CDT
  3656. From: Michael MacDonald <MIKEMAC%UNBMVS1.BITNET@wiscvm.wisc.edu>
  3657. Newsgroups: comp.std.unix
  3658. Subject: Re: tar vs. cpio
  3659. Message-Id: <8208@ut-sally.UUCP>
  3660. References: <8188@ut-sally.UUCP>
  3661. Sender: std-unix@ut-sally.UUCP
  3662. Reply-To: MIKEMAC%UNBMVS1.BITNET@wiscvm.wisc.edu
  3663. Date: 5 Jun 87 18:04:28 GMT
  3664. Apparently-To: std-unix-archive
  3665.  
  3666. From: MIKEMAC%UNBMVS1.BITNET@wiscvm.wisc.edu (Michael MacDonald)
  3667.  
  3668.     I have just finished working on a CPIO tape reader and approx 1 year
  3669. ago a TAR tape reader for our IBM3090 180/vf running MVS/XA.
  3670.  
  3671.    The following comments may be of interest as they come from a slightly
  3672. different point of view. I do not have significant *ix experience and
  3673. the following comments come as a result of trying to pick apart these tapes
  3674. when they are used for data interchange.
  3675.  
  3676.    TAR and CPIO are *used* for purposes of backup AND data interchange.
  3677.  
  3678.    TAR Format comments.
  3679.        1)  Data is written as blocks of 512 bytes. This allows for faster
  3680.            processing and this is important for BIG files.
  3681. [ Most implementations allow using tape blocks larger than that.  -mod ]
  3682.        2)  There is room left in the header. This allows for customization
  3683.            by a site while still allowing other sites to read the tape
  3684.            without using the customized version (if they do it right).
  3685.        3)  The length of the NAME and the LINKNAME field is not enough.
  3686.            Extending the length to 256 would extend the header to 2 blocks
  3687.            but I think that extending the length outweighs the disadvantages.
  3688. [ In addition to
  3689.  
  3690. #define NAMSIZ    100
  3691.     char    name[NAMSIZ];
  3692.  
  3693. POSIX Section 10.1 also has
  3694.  
  3695. #define PFXSIZ    155
  3696.     char    prefix[PFXSIZ];
  3697.  
  3698. which is used when name isn't big enough.  The total of the two is set
  3699. to match the minimum permissible value of PATH_MAX.  -mod ]
  3700.        4)  All of the tape drives that I have worked with (not that many)
  3701.            are capable of writing a short block. If TAR would recognize
  3702.            a physical end of file rather than two blocks of hex 00's.
  3703.            This would solve a number of problems with TAR.
  3704.        5)  Limited amount of Unix dependent information in the header.
  3705.            If a *backup* system is used for data interchange is it really
  3706.            necessary to add many Operating System dependent features.
  3707.            Are the advantages gained by using these dependencies *really*
  3708.            advantages even in a backup system?
  3709.  
  3710.    CPIO Format comments.
  3711.         1)  Data is not block oriented. This slows down processing
  3712.             considerably.
  3713.         2)  There is no room left in the header. No customization
  3714.             possible (without also sending the customized program).
  3715.         3)  Is 128 that much better than 100? See TAR note 3.
  3716.         4)  The CPIO end of file mark (TRAILER!!!) why not a physical EOF
  3717.             See TAR note 4.
  3718.         5)  When it comes to OS dependent information the CPIO header is
  3719.             full of it.
  3720.         6)  After writing the CPIO tape reader I came across a ?serious?
  3721.             problem. (The following note is from the unix manual page cpio(4)
  3722.             The h_name field is "h_namesize rounded to word" long. The
  3723.             header must begin on a word boundary (although not documented).
  3724.             The wordsize of the machine is not a CPIO option (as far as I can
  3725.             tell). This means CPIO tapes cannot be read on a machine with
  3726.             a different wordsize. I question if this "feature" should be
  3727.             standardized without at least a wordsize option.
  3728.  
  3729.  Michael MacDonald
  3730.  Software Specialist, School of Computer Science
  3731.  University of New Brunswick
  3732.  Po. Box 4400
  3733.  Fredericton, New Brunswick
  3734.  CANADA    E3B 5A3
  3735.  
  3736.  (506) 453-4566
  3737.  
  3738.  Netnorth/BITNET: MIKEMAC@UNB
  3739.  
  3740. Disclaimer: The opinions stated are mine, no one likes them around here either.
  3741.  
  3742. Volume-Number: Volume 11, Number 50
  3743.  
  3744. From jsq  Fri Jun  5 16:25:19 1987
  3745. Posted-Date: 5 Jun 87 21:25:10 GMT
  3746. Received-Date: Fri, 5 Jun 87 16:25:19 CDT
  3747. Received: by sally.utexas.edu (5.54/5.51)
  3748.     id AA03795; Fri, 5 Jun 87 16:25:19 CDT
  3749. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  3750. Newsgroups: comp.std.unix
  3751. Subject: Re: tar vs. cpio
  3752. Message-Id: <8209@ut-sally.UUCP>
  3753. References: <8188@ut-sally.UUCP>
  3754. Reply-To: bsteve@gorgo.uucp
  3755. Date: 5 Jun 87 21:25:10 GMT
  3756. Apparently-To: std-unix-archive
  3757.  
  3758. Since the tar and cpio comments keep coming in, I will let them collect
  3759. (posting them meanwhile) until about 16 June, after which I will incorporate
  3760. them into the note I posted previously and deliver same to IEEE P1003.1.
  3761.  
  3762. Volume-Number: Volume 11, Number 51
  3763.  
  3764. From jsq  Fri Jun  5 16:59:16 1987
  3765. Posted-Date: 5 Jun 87 21:59:06 GMT
  3766. Received-Date: Fri, 5 Jun 87 16:59:16 CDT
  3767. Received: by sally.utexas.edu (5.54/5.51)
  3768.     id AA04367; Fri, 5 Jun 87 16:59:16 CDT
  3769. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  3770. Newsgroups: comp.std.unix
  3771. Subject: USENIX, standards BOF
  3772. Message-Id: <8210@ut-sally.UUCP>
  3773. Date: 5 Jun 87 21:59:06 GMT
  3774. Apparently-To: std-unix-archive
  3775.  
  3776. The 1987 Summer USENIX Conference is next week, 8-12 June, at the
  3777. Hyatt Regency in Phoenix, Arizona.  There will be a standards BOF
  3778. (Birds of a Feather).  I believe it's Tuesday, 9 June, 6-8PM.
  3779. Participants of comp.std.unix are hereby invited.  Potential
  3780. topics include anything that has been discussed here, including
  3781. tar and cpio, case folding, standards access, and even time zones.
  3782.  
  3783. Copies of the draft POSIX Rationale appendix will be available.
  3784. I will have at least one copy of POSIX Draft 10, but will not be
  3785. distributing copies.  Addresses for the correspondents' lists
  3786. and other standards-related information will be available.
  3787.  
  3788. Volume-Number: Volume 11, Number 52
  3789.  
  3790. From jsq  Sat Jun 13 22:09:31 1987
  3791. Posted-Date: 7 Jun 87 17:17:33 GMT
  3792. Received-Date: Sat, 13 Jun 87 22:09:31 CDT
  3793. Received: by sally.utexas.edu (5.54/5.51)
  3794.     id AA11201; Sat, 13 Jun 87 22:09:31 CDT
  3795. From: Bill Jones <billj@dvlmarv.uucp>
  3796. Newsgroups: comp.std.unix
  3797. Subject: Re: tar vs. cpio
  3798. Message-Id: <8248@ut-sally.UUCP>
  3799. References: <8188@ut-sally.UUCP>
  3800. Sender: std-unix@ut-sally.UUCP
  3801. Reply-To: billj@dvlmarv.uucp (Bill Jones)
  3802. Organization: Develcon Electronics, Toronto
  3803. Date: 7 Jun 87 17:17:33 GMT
  3804. Apparently-To: std-unix-archive
  3805.  
  3806. From: billj@dvlmarv.uucp (Bill Jones)
  3807.  
  3808. In article <8188@ut-sally.UUCP> you write:
  3809. >                However, cpio was not available outside AT&T
  3810. >                before the release of System III, while tar was in
  3811. >                wide use with Version 7 and is still much more common.
  3812.  
  3813. My memory is fuzzy now, but I recall cpio having been distributed on
  3814. the V7 addendum tape, whose other contents were (I think) fsck, the
  3815. line printer driver, and a c2 cured of certain overoptimism.  (This is
  3816. a nit picked for historical accuracy only:  I believed then, and still
  3817. do, that tar is the better format.  I'm not even keen that this should be
  3818. posted, especially if you cannot verify the assertion.)
  3819. [ Can anybody verify this?  -mod ]
  3820. -- 
  3821. Bill Jones, Develcon Electronics, 856 51 St E, Saskatoon S7K 5C7 Canada
  3822. uucp:  ...ihnp4!sask!zaphod!billj               phone:  +1 306 931 1504
  3823.  
  3824. Volume-Number: Volume 11, Number 53
  3825.  
  3826. From jsq  Sat Jun 13 22:40:51 1987
  3827. Posted-Date: 8 Jun 87 13:22:36 GMT
  3828. Received-Date: Sat, 13 Jun 87 22:40:51 CDT
  3829. Received: by sally.utexas.edu (5.54/5.51)
  3830.     id AA11714; Sat, 13 Jun 87 22:40:51 CDT
  3831. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  3832. Newsgroups: comp.std.unix
  3833. Subject: Re: tar vs. cpio
  3834. Summary: don't like this physical eof business
  3835. Message-Id: <8249@ut-sally.UUCP>
  3836. References: <8188@ut-sally.UUCP> <8208@ut-sally.UUCP>
  3837. Reply-To: munnari!yabbie.oz!rcodi@seismo.UUCP (Ian Donaldson)
  3838. Organization: RMIT Comm & Elec Eng, Melbourne, Australia.
  3839. Date: 8 Jun 87 13:22:36 GMT
  3840. Apparently-To: std-unix-archive
  3841.  
  3842. From: seismo!munnari!yabbie.oz!rcodi (Ian Donaldson)
  3843.  
  3844. In article <8208@ut-sally.UUCP>:
  3845. > From: MIKEMAC%UNBMVS1.BITNET@wiscvm.wisc.edu (Michael MacDonald)
  3846. >     I have just finished working on a CPIO tape reader and approx 1 year
  3847. > ago a TAR tape reader for our IBM3090 180/vf running MVS/XA.
  3848.  
  3849. Sounds reasonable.  About the same time it would seem, I wrote an implementation
  3850. of Tar in Pascal under NOS on a Cyber 170, with 60-bit words.  See comments
  3851. below.
  3852.  
  3853. > #define PFXSIZ    155
  3854. >     char    prefix[PFXSIZ];
  3855. > which is used when name isn't big enough.  The total of the two is set
  3856. > to match the minimum permissible value of PATH_MAX.  -mod ]
  3857.  
  3858. I don't agree - there should be no limit to the pathname size.
  3859. 4.2bsd has a limit of MAXPATHLEN (unfortunately), but it is a reasonable
  3860. value (1024).  Probably the reason that was enforced was a side-effect
  3861. of the speedups to nami(), using one copyinstr() rather than judicious use
  3862. of fubyte().  The code could be tweaked to overcome this limit without
  3863. too much trouble no doubt.  V7 and SVR2 don't have any such limit.
  3864.  
  3865. 100+155 just doesn't seem enough in comparison for Tar, but in practice
  3866. it would suffice 99% of the time.
  3867.  
  3868. >        4)  All of the tape drives that I have worked with (not that many)
  3869. >            are capable of writing a short block. If TAR would recognize
  3870. >            a physical end of file rather than two blocks of hex 00's.
  3871. >            This would solve a number of problems with TAR.
  3872.  
  3873. Yes, but tar is not always used with tapes, and is not always used
  3874. with machines that have 8-bit bytes (eg: Cyber).  
  3875.  
  3876. I have often written tar archives to raw disk partitions.  If you were 
  3877. to use the OS EOF concept here, it would fail miserably since the archive 
  3878. is only a fraction of the size of the partition usually. 
  3879.  
  3880. The implementation of Tar I had on the Cyber worked well but it it would have 
  3881. been much more complicated to make it recognize a physical EOF half way through
  3882. a 60-bit word (yes there are 7.5 8-bit bytes/60 bit word, and thats
  3883. how they arrive from the tape-drives or disks).  NOS does provide a
  3884. rather perverted way of determing how many unused bits are in the last
  3885. word, but that information is typically only available to the assembly
  3886. language programmer, or system guru, and is device dependent.
  3887.  
  3888. Remember that tar and cpio work with any "file" that you tell them to.
  3889. They are not hard-coded for tapes.
  3890.  
  3891. >        5)  Limited amount of Unix dependent information in the header.
  3892. >            If a *backup* system is used for data interchange is it really
  3893. >            necessary to add many Operating System dependent features.
  3894.  
  3895. Yes, but remember this is a UNIX archive mechanism.  Thus it should be able
  3896. to save/restore files on most UNIX systems.  It was not designed for
  3897. other operating systems.  Information that is not common to most
  3898. implementations of UNIX is probably not worth putting in the header.
  3899. Those implementations that don't support such information can safely
  3900. ignore it anyway.
  3901. There is no such information there at the moment in Tar headers.
  3902. There is an inode/dev pair in cpio's header however, but this is used
  3903. for link determination at extract time.
  3904.  
  3905. [ We are discussing standardizing a data interchange/archive format 
  3906. in a standard that its authors explicitly wanted to be implementable
  3907. on hosted, i.e., non-UNIX-based, systems.  The inclusion of inode
  3908. numbers is a problem for such implementations, especially when it
  3909. is not necessary, as demonstrated by the tar format.  -mod ]
  3910.  
  3911. >    CPIO Format comments.
  3912. >         1)  Data is not block oriented. This slows down processing
  3913. >             considerably.
  3914.  
  3915. Its a time/space tradeoff.
  3916.  
  3917. Ian D.
  3918.  
  3919.  
  3920. Volume-Number: Volume 11, Number 54
  3921.  
  3922. From jsq  Sat Jun 13 22:45:23 1987
  3923. Posted-Date: 9 Jun 87 16:10:54 GMT
  3924. Received-Date: Sat, 13 Jun 87 22:45:23 CDT
  3925. Received: by sally.utexas.edu (5.54/5.51)
  3926.     id AA11792; Sat, 13 Jun 87 22:45:23 CDT
  3927. From: Bob Alexander <boba@iscuva.ISCS.COM>
  3928. Newsgroups: comp.std.unix
  3929. Subject: UNIX Facilities for Interpreters
  3930. Message-Id: <8250@ut-sally.UUCP>
  3931. Sender: std-unix@ut-sally.UUCP
  3932. Reply-To: boba@iscuva.ISCS.COM (Bob Alexander)
  3933. Organization: ISC Systems Corporation, Spokane, Wa.
  3934. Date: 9 Jun 87 16:10:54 GMT
  3935. Apparently-To: std-unix-archive
  3936.  
  3937. From: boba@iscuva.ISCS.COM (Bob Alexander)
  3938.  
  3939. Modern, memory managed operating systems (like UNIX) have addressed
  3940. quite nicely certain special requirements of executable files.  In
  3941. particular (1) the file (text and data) need not be loaded into memory
  3942. in its entirety to begin executing, and (2) the pages can be shared
  3943. among processes that are executing them (both on disk and in memory).
  3944.  
  3945. As far as I know, those capabilities are not made available to
  3946. interpreters for their pseudo-code and data, even though they would be
  3947. equally as applicable as they are to "real" programs.  If 15 users are
  3948. running a program written in an interpretive language, the interpreter
  3949. code is shared, but the p-code exists separately for each user.  This
  3950. results in a major disadvantage in the use of interpretive languages to
  3951. produce production programs.  Interpretive systems are in quite wide
  3952. use today (e.g. shells, SQLs, (((Lisp))), Icon, etc., etc., [even
  3953. BASIC]), and as processor speeds increase, use of interpreters will
  3954. likely continue to grow.
  3955.  
  3956. There are a few ways of working this problem with existing UNIX
  3957. facilities, but the ones I've come up with so far are kluges.  My
  3958. reason for posting to this newsgroup is to get your reaction to a
  3959. possible new UNIX facility for this purpose.  I'll express my
  3960. suggestion in SVID format, sort of:
  3961.  
  3962. ------------------------------
  3963.  
  3964. NAME
  3965.  
  3966.    vread -- read from a file into memory [but not really, maybe].
  3967.  
  3968. SYNOPSIS
  3969.  
  3970.    int vread(fildes, bufptr, nbyte)
  3971.    int fildes;
  3972.    char **bufptr;
  3973.    unsigned nbyte;
  3974.  
  3975. DESCRIPTION
  3976.  
  3977.    The function "vread" attempts to read "nbyte" bytes from the file
  3978.    associated with "fildes" into an allocated buffer whose address is
  3979.    returned in "bufptr".  This function is similar to read(ba_os)
  3980.    [read(ba_os) is SVIDese for read(2)] except for its implications
  3981.    concerning virtual memory and that it allocates a buffer rather than
  3982.    being given one.
  3983.  
  3984.    In a memory managed system, the contents of the file are not
  3985.    transferred into the program's memory space.  Instead, the file is
  3986.    "mapped" into an area of the caller's data space (involving no
  3987.    actual data transfer) and demand-paged into real memory, directly
  3988.    from its disk file, as accessed by the program.  As long as any such
  3989.    page remains pure, it never needs to be swapped out to disk, and can
  3990.    always be swapped in from its original location on disk.  If a page
  3991.    becomes dirty, it will have separate swap space allocated for it on
  3992.    disk and the page will be re-mapped to that space.  [This technique
  3993.    is often used for the initialized data portion of executing
  3994.    programs].
  3995.  
  3996.    Therefore, "vread" produces the appearance of reading from a file
  3997.    into memory, but no data actually transferred (in a memory managed
  3998.    system), and the system is afforded the opportunity to optimize by
  3999.    sharing the data among all processes accessing the file.  From the
  4000.    program's point of view, this operation is indistinguishable from an
  4001.    actual data transfer.  In non-memory-managed versions of UNIX,
  4002.    "vread" is implemented as a true data transfer.  Therefore, "vread"
  4003.    calls are portable between memory-managed and non-memory-managed
  4004.    systems.
  4005.  
  4006.    Since the system decides the address at which the space will be
  4007.    allocated, specific memory management requirements (such as page
  4008.    size and alignment) are hidden from the caller and are therefore of
  4009.    no concern to a program using this facility.
  4010.  
  4011.    In a memory managed system, use of "vread" can provide a significant
  4012.    optimization when large portions of files must be available in their
  4013.    entirety, but are sparsely and/or randomly accessed (such as the
  4014.    pseudo-code for an interpreter), and when it is desirable to share
  4015.    large, read-only files.
  4016.  
  4017. RETURN VALUE
  4018.  
  4019.    Same as read(ba_os).
  4020.  
  4021. ERRORS
  4022.  
  4023.    Same as read(ba_os).
  4024.  
  4025. -------------------------------------
  4026.  
  4027. For interpreters to take full advantage of this facility, they would
  4028. have to interpret their p-code "as is" as it sits on disk.  If they
  4029. modify the code, much of the advantage would be lost.
  4030.  
  4031. I'd be interested in hearing your comments and suggestions regarding
  4032. this idea; alternative ideas to solve this problem, ways other OSs have
  4033. dealt with it, implementation problems, or gross oversights.  What
  4034. would you think of a "read only" option for this function (a fourth
  4035. argument?), where the data would be mapped as read only (i.e.
  4036. protected).
  4037. -- 
  4038.  
  4039. Bob Alexander       ISC Systems Corp.  Spokane, WA  (509)927-5445
  4040.            UUCP: ihnp4!tektronix!reed!iscuva!boba
  4041.  
  4042.  
  4043.  
  4044. Volume-Number: Volume 11, Number 55
  4045.  
  4046. From jsq  Sat Jun 13 22:51:11 1987
  4047. Posted-Date: 11 Jun 87 13:28:37 GMT
  4048. Received-Date: Sat, 13 Jun 87 22:51:11 CDT
  4049. Received: by sally.utexas.edu (5.54/5.51)
  4050.     id AA11886; Sat, 13 Jun 87 22:51:11 CDT
  4051. From: William E. Davidsen Jr <davidsen@steinmetz.uucp>
  4052. Newsgroups: comp.std.unix
  4053. Subject: Re: tar vs. cpio
  4054. Keywords: tar cpio
  4055. Message-Id: <8251@ut-sally.UUCP>
  4056. References: <8188@ut-sally.UUCP> <8208@ut-sally.UUCP>
  4057. Sender: std-unix@ut-sally.UUCP
  4058. Reply-To: davidsen@steinmetz.uucp (William E. Davidsen Jr)
  4059. Organization: General Electric CRD, Schenectady, NY
  4060. Date: 11 Jun 87 13:28:37 GMT
  4061. Apparently-To: std-unix-archive
  4062.  
  4063. From: davidsen@steinmetz.uucp (William E. Davidsen Jr)
  4064.  
  4065. In article <8208@ut-sally.UUCP>:
  4066. >From: MIKEMAC%UNBMVS1.BITNET@wiscvm.wisc.edu (Michael MacDonald)
  4067. >   TAR Format comments.
  4068. I realize this hasn't stopped some people, but I will pass on tar
  4069. comments because I'm not an expert.
  4070.  
  4071. >
  4072. >   CPIO Format comments.
  4073. >        1)  Data is not block oriented. This slows down processing
  4074. >            considerably.
  4075. I miss this one. It may slow things under MVS, but there's no reason
  4076. why reading less physical data should slow things down. Quite the
  4077. opposite.
  4078.  
  4079. >        2)  There is no room left in the header. No customization
  4080. >            possible (without also sending the customized program).
  4081. This is a major advantage. Save us from "custom standard' format. The
  4082. custom stuff belongs in the *file*, not the format (in my opinion).
  4083.  
  4084. >        3)  Is 128 that much better than 100? See TAR note 3.
  4085. Although I've never been bitten by this, it could be a problem. I'm not
  4086. sure that it justified scrapping a format which is widely used. cpio
  4087. does allow dumping from a relative directory if you have a system with
  4088. pathnames longer than the files.
  4089.  
  4090. >        4)  The CPIO end of file mark (TRAILER!!!) why not a physical EOF
  4091. >            See TAR note 4.
  4092. cpio will run nicely to other media sice as floppy disk and/or
  4093. removable disk packs. Most device drivers don't support any EOF on
  4094. these other than the physical size of the media. You can also have
  4095. multiple cpio dumps on a single file, although this is most useful when
  4096. doing incremental backups.
  4097.  
  4098. >        5)  When it comes to OS dependent information the CPIO header is
  4099. >            full of it.
  4100. We *are* talking about a U*IX standard here. For data interchange
  4101. between unlike systems we have the ANSI standard for tapes, which has
  4102. been around since at least 1975 because I wrote a driver for it on a
  4103. custom o/s. In FORTRAN. Yes, barf!
  4104. [ See comments in previous article about what IEEE 1003.1 is. -mod ]
  4105.  
  4106. >        6)  After writing the CPIO tape reader I came across a ?serious?
  4107. >            problem. (The following note is from the unix manual page cpio(4)
  4108. >            The h_name field is "h_namesize rounded to word" long. The
  4109. >            header must begin on a word boundary (although not documented).
  4110. >            The wordsize of the machine is not a CPIO option (as far as I can
  4111. >            tell). This means CPIO tapes cannot be read on a machine with
  4112. >            a different wordsize. I question if this "feature" should be
  4113. >            standardized without at least a wordsize option.
  4114. I confess I don't understand the wording here, but cpio is *not*
  4115. limited in this way as far as I can tell. I routinely transfer files
  4116. from Xenix (16 bit) to PC/IX (16 bit), to VAX, Sun3, and unix-pc (all
  4117. 32 bit), and from time to time Cray2 (64 bit). It all works, so I think
  4118. the wording is at fault here, not the method.
  4119. -- 
  4120.     bill davidsen        (wedu@ge-crd.arpa)
  4121.   {chinet | philabs | sesimo}!steinmetz!crdos1!davidsen
  4122. "Stupidity, like virtue, is its own reward" -me
  4123.  
  4124. Volume-Number: Volume 11, Number 56
  4125.  
  4126. From jsq  Sat Jun 13 22:54:21 1987
  4127. Posted-Date: 13 Jun 87 05:16:33 GMT
  4128. Received-Date: Sat, 13 Jun 87 22:54:21 CDT
  4129. Received: by sally.utexas.edu (5.54/5.51)
  4130.     id AA11947; Sat, 13 Jun 87 22:54:21 CDT
  4131. From: Brian Katzung <katzung%laidbak.UUCP@sally.utexas.edu>
  4132. Newsgroups: comp.std.unix
  4133. Subject: Re: tar vs. cpio
  4134. Message-Id: <8252@ut-sally.UUCP>
  4135. References: <8188@ut-sally.UUCP>
  4136. Sender: std-unix@ut-sally.UUCP
  4137. Reply-To: katzung@laidbak.UUCP (Brian Katzung)
  4138. Organization: Lachman Associates, Inc, Chicago
  4139. Date: 13 Jun 87 05:16:33 GMT
  4140. Apparently-To: std-unix-archive
  4141.  
  4142. From: katzung@laidbak.UUCP (Brian Katzung)
  4143.  
  4144. When I was working at the University of California San Francisco,
  4145. I made some simple modifications to tar for use as a backup facility.
  4146. As far as I know, this is still the method being used for backup on
  4147. that system.
  4148.  
  4149. The changes I made were:
  4150.  
  4151.     o Incremental mode (accepts file names from standard input
  4152.         and directories don't recurse).
  4153.     o Stay on the device associated with a disk or directory
  4154.         (don't cross mount points).
  4155.     o Multi-volume tapes on drives that support EOT reporting
  4156.         (I added a simple ioctl to our tape driver that
  4157.         reported EOT status).
  4158.     o A flag for continuing after directory checksum errors (to
  4159.         allow starting with any volume in a multi-volume
  4160.         set; it quickly syncs up on the first valid header).
  4161.     o Copies of all errors could be sent to a log file for
  4162.         semi-unattended operation.
  4163.  
  4164. -- Brian Katzung  ihnp4!laidbak!katzung
  4165.  
  4166.  
  4167. Volume-Number: Volume 11, Number 57
  4168.  
  4169. From jsq  Sat Jun 13 23:09:59 1987
  4170. Posted-Date: 14 Jun 87 04:09:48 GMT
  4171. Received-Date: Sat, 13 Jun 87 23:09:59 CDT
  4172. Received: by sally.utexas.edu (5.54/5.51)
  4173.     id AA12184; Sat, 13 Jun 87 23:09:59 CDT
  4174. From: std-unix%ut-sally.UUCP%@sally.utexas.edu (Moderator, John Quarterman)
  4175. Newsgroups: comp.std.unix
  4176. Subject: Access to UNIX-Related Standards
  4177. Message-Id: <8254@ut-sally.UUCP>
  4178. Sender: std-unix@ut-sally.UUCP
  4179. Reply-To: std-unix@sally.utexas.edu (Moderator, John Quarterman)
  4180. Date: 14 Jun 87 04:09:48 GMT
  4181. Apparently-To: std-unix-archive
  4182.  
  4183. This is the latest in a series of similar comp.std.unix articles.
  4184. Corrections and additions to this article are solicited.
  4185.  
  4186.  
  4187. Access information is given in this article for the following standards:
  4188. IEEE 1003.1 (POSIX), 1003.2 (shell/tools), 1003.3 (verification)
  4189. /usr/group working groups on distributed file system, network interface,
  4190.     graphics/windows, database, internationalization,
  4191.     performance measurements, realtime, security, and super computing
  4192. X3H3.6 (display committee)
  4193. X3J11 (C language)
  4194. /usr/group Standard
  4195. System V Interface Definition (SVID, or The Purple Book)
  4196. X/OPEN PORTABILITY GUIDE (The Green Book)
  4197. 4.3BSD Manuals
  4198.  
  4199.  
  4200. UNIX is a Registered Trademark of AT&T.
  4201. POSIX and IEEE are trademarks of the Institute of Electrical
  4202.     and Electronic Engineers, Inc.
  4203. X/OPEN is a licensed trademark of the X/OPEN Group Members.
  4204.  
  4205.  
  4206. The IEEE P1003 Portable Operating System for Computer Environments Committee
  4207. is sometimes known colloquially as the UNIX Standards Committee.
  4208. They published the 1003.1 "POSIX" Trial Use Standard in April 1986.
  4209. According to its Foreword:
  4210.  
  4211.     The purpose of this document is to define a standard
  4212.     operating system interface and environment based on the
  4213.     UNIX Operating System documentation to support application
  4214.     portability at the source level.  This is intended for
  4215.     systems implementors and applications software developers.
  4216.  
  4217. Published copies are available at $19.95,
  4218. with bulk purchasing discounts available.
  4219. Call the IEEE Computer Society in Los Angeles
  4220.  
  4221.         714-821-8380
  4222.  
  4223. and ask for Book #967.  Unfortunately, this only works for multiple copies.
  4224. But the following mail address works for single copies:
  4225.  
  4226.     IEEE Computer Society
  4227.     P.O. Box 80452
  4228.     Worldway Postal Center
  4229.     Los Angeles, Ca. 90080
  4230.  
  4231. Include a check for $19.95 + $4 for shipping and handling.  For UPS
  4232. shipping, add another $4.  Or contact:
  4233.  
  4234.         IEEE Service Center
  4235.         445 Hoes Ln.
  4236.         Piscataway, NJ 08854
  4237.  
  4238. and ask for "IEEE 1003.1 Trial Use Standard" - stock number SH10546.
  4239.  
  4240. The Trial Use Standard will be available for comments for a period
  4241. such as a year.  The current target for a Full Use Standard is Fall 1987.
  4242. IEEE has initiated the process to have the 1003.1 effort brought into
  4243. the International Organization for Standardization (ISO) arena.
  4244.  
  4245. Machine readable copies of the Trial Use Standard are not and will 
  4246. not be available.
  4247.  
  4248. There is a paper mailing list by which interested parties may get
  4249. copies of drafts of the standard.  To get on it, or to submit comments
  4250. directly to the committee, mail to:
  4251.  
  4252.         James Isaak
  4253.         Chairperson, IEEE/CS P1003
  4254.         Digital Equipment    MK02-2/B05
  4255.         Continental Blvd.
  4256.         Merrimack, NH      03054-0403
  4257.         decvax!isaak
  4258.         603-884-1913
  4259.  
  4260. Sufficiently interested parties may join the working group.
  4261.  
  4262. Related working groups are
  4263.     group    subject        co-chairs
  4264.     1003.2    shell and tools    Hal Jespersen (UniSoft), Don Cragun (Sun)
  4265.     1003.3    verification    Roger Martin (NBS), Carol Raye (AT&T)
  4266.  
  4267. Inquiries regarding 1003.2 and 1003.3 should go to the same address
  4268. as for 1003.1.
  4269.  
  4270.  
  4271. The next scheduled meetings of the P1003 working groups are,
  4272. in 1987 and 1988:
  4273.     
  4274. June    22-26  P1003.[13]  Seattle (changed from USENIX week in Phoenix to
  4275.         give us better working attendance)    Host:  CDC
  4276.         P1003.2 will not meet in Seattle, due to scheduling
  4277.         problems related to the extreme member overlap between
  4278.         1003.1 and 1003.2 and the need for 1003.1 to meet all week
  4279.         in order to speed finishing the Full Use Standard.
  4280.         But there will be a 1003.2 BOF Tuesday, 6/23, 19:00-22:00,
  4281.         to exchange information and assess the status of the command
  4282.         descriptions distributed in the April meeting.
  4283.  
  4284. Sept.    14-18    Framingham, Massachusetts (same time and place as X3J11)
  4285. (Sept 7th is Labor day, and that week is ISO TC97 SC22 meeting in Wash DC)
  4286.  
  4287. Dec.    7-11    San Diego
  4288.  
  4289. April 1988    Possibly Japan or Singapore, depending on potential attendance.
  4290.  
  4291. There is also a balloting group (which intersects with the working group).
  4292. This is more difficult.  Contact Jim Isaak for details.  I will repost
  4293. them in this newsgroup if there is sufficient interest.
  4294.  
  4295. Here are some details from Hal Jespersen regarding P1003.2:
  4296.  
  4297. The IEEE P1003.2 "Shell and Utilities" Working Group is developing a
  4298. proposed standard to complement the 1003.1 POSIX standard.  It will
  4299. consist of
  4300.  
  4301.     a shell command language (currently planned to be based on the
  4302.     Bourne Shell),
  4303.  
  4304.     groups of utility programs, or commands,
  4305.  
  4306.     programmatic interfaces to the shell (system(), popen()) and
  4307.     related facilities (regular expressions, file name expansion,
  4308.     etc.)
  4309.  
  4310.     defined environments (variables, file hierarchies, etc) that
  4311.     applications may rely upon
  4312.  
  4313.     tools for installing application programs onto conforming
  4314.     systems
  4315.  
  4316. which will allow application programs to be developed out of existing
  4317. pieces, in the UNIX tradition.  The scope of the standard emphasizes
  4318. commands and features that are more typically used by shell scripts or
  4319. C language programs than those that are oriented to the terminal user
  4320. with windows, mice, visual shells, and so forth.
  4321.  
  4322. There has been some controversy in the Working Group about
  4323. clarifying the scope of the 1003.2 standard in regard to its
  4324. relationship with 1003.1.  The Working Group is attempting to
  4325. produce a standard that will assume the structure and
  4326. philosophy of a POSIX system is available, but it will not
  4327. require a fully conforming implementation as a base.  For
  4328. example, it should be feasible to eventually produce a 1003.2
  4329. interface on a V7 system, or on a system very close to POSIX,
  4330. but missing a few crucial features (as long as the shell and
  4331. utilities didn't need them).  However, the proposed standard
  4332. will *not* be unnecessarily watered down simply to allow
  4333. non-POSIX systems to conform.
  4334.  
  4335. The group is currently seeking proposals for groupings of commands that
  4336. may be offered by implementors.  As groups are identified, command
  4337. descriptions will be solicited.  There is no requirement that the commands
  4338. be in System V or BSD today, but they should realistically be commands 
  4339. that are commonly found in most existing implementations.
  4340.  
  4341.  
  4342. There are three Institutional Representatives to P1003:  John Quarterman
  4343. from USENIX, Heinz Lycklama from /usr/group, and Martha Nalebuf from X/OPEN.
  4344.  
  4345. As the one from USENIX, one of my functions is to get comments from the
  4346. USENIX membership and the general public to the committee.  One of the
  4347. ways I try to do that is by moderating this newsgroup, comp.std.unix
  4348. (formerly known as mod.std.unix).  An article related to this one
  4349. appeared in the September/October 1986 ;login: (The USENIX Association
  4350. Newsletter).  I'm also currently on the USENIX Board of Directors.
  4351. Comments, suggestions, etc., may be sent to
  4352.  
  4353.         John S. Quarterman
  4354.         Texas Internet Consulting
  4355.         Suite 500, Room 31
  4356.         Austin Centre
  4357.         701 Brazos
  4358.         Austin TX 78701-3243
  4359.         512-320-9031
  4360.         usenix!jsq
  4361.  
  4362. For comp.std.unix:
  4363. Comments:    ut-sally!std-unix-request std-unix-request@sally.utexas.edu
  4364. Submissions:    ut-sally!std-unix        std-unix@sally.utexas.edu
  4365.  
  4366. The May/June 1987 issue of CommUNIXations (the /usr/group newsletter)
  4367. contains a report by Heinz Lycklama on the /usr/group Technical Committee
  4368. working groups which met in January 1987.
  4369.  
  4370. If you are interested in starting another working group, contact
  4371. Heinz Lycklama:
  4372.  
  4373.         Heinz Lycklama
  4374.         Interactive Systems Corp.
  4375.         2401 Colorado Ave., 3rd Floor
  4376.         Santa Monica, CA 90404
  4377.         (213)453-8649
  4378.         decvax!cca!ima!heinz
  4379.  
  4380.  
  4381. Here is contact information for /usr/group working groups as taken from
  4382. the CommUNIXations article mentioned above, and updated by later information
  4383. from Heinz Lycklama.
  4384.  
  4385. /usr/group Working Group on Distributed File System:
  4386.     Laurence Brown            Frederick Glover
  4387.     AT&T Information Systems    MK02-1/H10
  4388.     190 River Road            Digital Equipment Corporation
  4389.     Summit, NJ  07933        Continental Boulevard
  4390.     201-522-6046            Merrimack, NH  03054-0430
  4391.     attunix!bump            603-884-5111
  4392.                     decvax!fglover
  4393.  
  4394. /usr/group Working Group on Network Interface:
  4395.     Steve Albert
  4396.     AT&T Information Systems
  4397.     190 River Road, Rm. A-114
  4398.     Summit, NJ  07901
  4399.     (201)522-6104
  4400.     attunix!ssa
  4401.  
  4402. /usr/group Working Group on Internationalization:
  4403.     Karen Barnes
  4404.     Hewlett-Packard Co.
  4405.     19447 Pruneridge Ave.
  4406.     M/S 47U2
  4407.     Cupertino, CA 95014
  4408.     (408) 447-6704
  4409.  
  4410. /usr/group Working Group on Graphics/Windows:
  4411.     Tom Greene
  4412.     Apollo Computer, Inc.
  4413.     330 Billerica Road
  4414.     Chelmsford, MA  01824
  4415.     (617)256-6600, ext. 7581
  4416.  
  4417. /usr/group Working Group on Realtime:
  4418.     Bill Corwin
  4419.     Intel Corp.
  4420.     5200 Elam Young Pkwy
  4421.     Hillsboro, OR 97123
  4422.     (503)681-2248
  4423.  
  4424. /usr/group Working Group on Database:
  4425.     Val Skalabrin
  4426.     Unify Corp.
  4427.     1111 Howe Ave.
  4428.     Sacramento, CA 95825
  4429.     (916)920-9092
  4430.  
  4431. /usr/group Working Group on Performance Measurements:
  4432.     Ram Chelluri            Dave Hinnant
  4433.     AT&T Computer Systems        SCI Systems, Inc.
  4434.     Room E15B            Ste 325, Pamlico Bldg
  4435.     4513 Western Ave.        Research Triangle Pk, NC 27709
  4436.     Lisle, IL 60532            (919)549-8334
  4437.     (312)810-6223
  4438.  
  4439. /usr/group Working Group on Security:
  4440.     Steve Sutton            Ms. Jeanne Baccash
  4441.     Consultant, Addamax        AT&T UNIX Systems Engineering
  4442.     1107 S. Orchard            190 River Road
  4443.     Urbana, IL  61801        Summit, NJ  07901
  4444.     217-344-0996            201-522-6028
  4445.                     attunix!jeanne
  4446.  
  4447. /usr/group Working Group on Super Computing:
  4448.     Karen Sheaffer            Robin O'Neill
  4449.     Sandia National Laboratory    Lawrence Livermore Laboratory
  4450.     P.O. Box 969            P.O. Box 5509, L560
  4451.     Livermore, CA  94550        Livermore, CA  94550
  4452.     415-422-3431            415-422-0973
  4453.                     oneill#r%mfe@lll-mfe.arpa Co-chair
  4454.  
  4455.  
  4456. The X3H3.6 display management committee has recently formed to develop
  4457. a model to support current and future window management systems, yet
  4458. is not based directly on any existing system.  The chair solicits
  4459. help and participation:
  4460.  
  4461.         Georges Grinstein
  4462.         wanginst!ulowell!grinstein
  4463.  
  4464.  
  4465. The Abstract of the 1003.1 Trial Use Standard adds:
  4466.  
  4467.     This interface is a complement to the C Programming Language
  4468.     in the C Information Bulletin prepared by Technical Committee X3J11
  4469.     of the Accredited Standards Committee X3, Information Processing
  4470.     Systems, further specifying an environment for portable application
  4471.     software.
  4472.  
  4473. X3J11 is sometimes known as the C Standards Committee.  Their liaison to
  4474. P1003 is
  4475.  
  4476.         Don Kretsch
  4477.         AT&T
  4478.         190 River Road
  4479.         Summit, NJ 07901
  4480.  
  4481. A contact for information regarding publications and working groups is
  4482.  
  4483.         Thomas Plum
  4484.         Vice Chair, X3J11 Committee
  4485.         Plum Hall Inc.
  4486.         1 Spruce Avenue
  4487.         Cardiff, New Jersey 08232
  4488.  
  4489. The current document may be ordered from
  4490.  
  4491.         Global Press
  4492.         2625 Hickory St.
  4493.         P.O. Box 2504
  4494.         Santa Anna, CA 92707-3783
  4495.         U.S.A.
  4496.         800-854-7179
  4497.         +1-714-540-9870 (from outside the U.S., ask for extension 245.)
  4498.         TELEX 692 373
  4499.  
  4500. Ask for the X3.159 draft standard.  The price is $65.
  4501.  
  4502.  
  4503. The /usr/group Standard is a principal ancestor of P1003.1, X/OPEN,
  4504. and X3J11.  It may be ordered for $15.00 from:
  4505.  
  4506.         /usr/group Standards Committee
  4507.         4655 Old Ironsides Drive, Suite 200
  4508.         Santa Clara, California 95054
  4509.         (408)986-8840
  4510.  
  4511.  
  4512. The System V Interface Definition (The Purple Book, or SVID).
  4513. This is the AT&T standard and is one of the most frequently-used
  4514. references of the IEEE 1003 committee.
  4515.  
  4516.         AT&T Customer Information Center
  4517.         Attn:  Customer Service Representative
  4518.         P.O. Box 19901
  4519.         Indianapolis, IN 46219
  4520.         U.S.A.
  4521.  
  4522.         800-432-6600 (Inside U.S.A.)
  4523.         800-255-1242 (Inside Canada)
  4524.         317-352-8557 (Outside U.S.A. and Canada)
  4525.  
  4526.     System V Interface Definition, Issue 2
  4527.     should be ordered by the following select codes:
  4528.  
  4529.     Select Code:    Volume:        Topics:
  4530.     320-011        Volume I    Base System
  4531.                     Kernel Extension
  4532.     320-012        Volume II    Basic Utilities Extension
  4533.                     Advanced Utilities Extension
  4534.                     Software Development Extension
  4535.                     Administered System Extension
  4536.                     Terminal Volume Interface Extension
  4537.     320-013        Volume III    Base System Addendum
  4538.                     Terminal Interface Extension
  4539.                     Network Services Extension
  4540.     307-131        I, II, III    (all three volumes)
  4541.  
  4542. The price is about 37 U.S. dollars for each volume or $84 for all three.
  4543. Major credit cards are accepted for telephone orders:  mail orders
  4544. should include a check or money order, payable to AT&T.
  4545.  
  4546.  
  4547. The X/OPEN PORTABILITY GUIDE (The Green Book)
  4548. is another reference frequently used by IEEE 1003.
  4549.  
  4550. The X/OPEN Group is "Ten of the world's major information system
  4551. suppliers" (currently Bull, DEC, Ericsson, Hewlett-Packard, ICL,
  4552. NIXDORF, Olivetti, Philips, Siemens, Unisys, and AT&T) who have
  4553. produced a document intended to promote the writing of portable
  4554. facilities.  They closely follow both SVID and POSIX, and cite
  4555. the /usr/group standard as contributing, but X/OPEN's books
  4556. cover a wider area than any of those.
  4557.  
  4558. The book is published by
  4559.  
  4560.         Elsevier Science Publishers B.V.
  4561.         Book Order Department
  4562.         P.O. Box 1991
  4563.         1000 BZ Amsterdam
  4564.         The Netherlands
  4565.  
  4566. and distributed in the U.S.A. and Canada by:
  4567.  
  4568.         Elsevier Science Publishing Company, Inc.
  4569.         52 Vanderbilt Avenue
  4570.         New York, NY 10017
  4571.         U.S.A.
  4572.  
  4573. There are currently five volumes:
  4574.     1) System V Specification Commands and Utilities
  4575.     2) System V Specification System Calls and Libraries
  4576.     3) System V Specification Supplementary Definitions
  4577.     4) Programming Languages
  4578.     5) Data Management
  4579.  
  4580. They take a large number of credit cards and other forms of payment.
  4581.  
  4582.  
  4583. Finally, 4.2BSD and 4.3BSD have influenced POSIX in a number of areas.
  4584. The best reference on them is the 4.3BSD manuals, published by USENIX.
  4585. An order form may be obtained from:
  4586.  
  4587.         Howard Press
  4588.         c/o USENIX Association
  4589.         P.O. Box 2299
  4590.         Berkeley, CA 94710
  4591.  
  4592.         415-528-8649
  4593.         {ucbvax,decvax}!usenix!office
  4594.  
  4595. 4.3BSD User's Manual Set (3 volumes)        $25.00
  4596.     User's Reference Manual
  4597.     User's Supplementary Documents
  4598.     Master Index
  4599.  
  4600. 4.3BSD Programmer's Manual Set (3 volumes)    $25.00
  4601.     Programmer's Reference Maual
  4602.     Programmer's Supplementary Documents, Volume 1
  4603.     Programmer's Supplementary Documents, Volume 2
  4604.  
  4605. 4.3BSD System Manager's Manual (1 volume)    $10.00
  4606.  
  4607. Unfortunately, there are some license restrictions.
  4608. Contact the USENIX office for details.
  4609.  
  4610. Volume-Number: Volume 11, Number 58
  4611.  
  4612. From jsq  Sun Jun 14 16:53:26 1987
  4613. Posted-Date: 14 Jun 87 21:53:15 GMT
  4614. Received-Date: Sun, 14 Jun 87 16:53:26 CDT
  4615. Received: by sally.utexas.edu (5.54/5.51)
  4616.     id AA23061; Sun, 14 Jun 87 16:53:26 CDT
  4617. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  4618. Newsgroups: comp.std.unix
  4619. Subject: Re: USENIX, standards BOF
  4620. Message-Id: <8257@ut-sally.UUCP>
  4621. References: <8210@ut-sally.UUCP>
  4622. Date: 14 Jun 87 21:53:15 GMT
  4623. Apparently-To: std-unix-archive
  4624.  
  4625. The standards BOF at the Phoenix USENIX last week (mentioned
  4626. in Volume 11 Number 52) had a much higher attendance than previous
  4627. standards BOFs.  There were about fifty people there, most with
  4628. relevant questions, and some with answers.  It is not clear
  4629. that everyone was pleased with everything I and others told
  4630. them, but I think some now have a better idea of what is going on.
  4631.  
  4632. The twenty copies of the Rationale that I made beforehand
  4633. disappeared quickly, as did the thirty I made afterward,
  4634. and the forty copies of the draft standard.
  4635.  
  4636. I do not know to what to attribute this new, higher level
  4637. of interest on the part of USENIX attendees, but it was there.
  4638.  
  4639. Comments (preferably technical) from attendees?
  4640.  
  4641. Volume-Number: Volume 11, Number 52
  4642.  
  4643.  
  4644. Volume-Number: Volume 11, Number 59
  4645.  
  4646. From jsq  Sun Jun 14 17:13:40 1987
  4647. Posted-Date: 14 Jun 87 22:13:32 GMT
  4648. Received-Date: Sun, 14 Jun 87 17:13:40 CDT
  4649. Received: by sally.utexas.edu (5.54/5.51)
  4650.     id AA23455; Sun, 14 Jun 87 17:13:40 CDT
  4651. From: Jim McGinness <jmcg@decvax.dec.com>
  4652. Newsgroups: comp.std.unix
  4653. Subject: POSIX Portability Workshop
  4654. Keywords: USENIX, POSIX, Portability
  4655. Message-Id: <8258@ut-sally.UUCP>
  4656. Sender: std-unix@ut-sally.UUCP
  4657. Reply-To: jmcg@decvax.dec.com (Jim McGinness)
  4658. Date: 14 Jun 87 22:13:32 GMT
  4659. Apparently-To: std-unix-archive
  4660.  
  4661. Newsgroups: comp.std.unix, comp.org.usenix
  4662. From: std-unix@sally.utexas.edu
  4663.  
  4664.             Preliminary Call for Papers
  4665.             POSIX Portability Workshop
  4666.  
  4667. This USENIX workshop will bring together system and application
  4668. implementors faced with the problems, ``challenges,'' and other
  4669. considerations that arise from attempting to make their products
  4670. compliant with IEEE Standard 1003.1.
  4671.  
  4672. The target dates are 15 and 16 October, 1987, in Berkeley, CA.
  4673. The first day will consist of presentations of brief position papers
  4674. describing experiences, dilemmas, and solutions.  On the second day we
  4675. plan to form smaller focus groups to brainstrom additional solutions,
  4676. dig deeper into specific areas, and attempt to forge common approaches
  4677. to some of the dilemmas.
  4678.  
  4679. Suggestions for topic areas for position papers include:
  4680.  
  4681. C Language Issues            Internationalization
  4682. Networked/Distributed Implementations    Pipes and FIFOs
  4683. Timer Resolution and Ranges        Signals
  4684. Job Control, Process Groups        Limits: Documentation and Inquiry
  4685. Conformance Verification (IEEE 1003.3)    Security Concerns
  4686. Implications for Commands (IEEE 1003.2)    What to do about errno?
  4687. Implications for User Interfaces    Terminal Interface
  4688.  
  4689. Position papers are needed by 15 August 1987.  Detailed instructions
  4690. will be published in a future issue of ;login:, the USENIX Association
  4691. Newsletter (and in other appropriate places, such as comp.std.unix)
  4692. along with final information on time and place.
  4693.  
  4694. For participation information, contact:
  4695.  
  4696.             Jim McGinness
  4697.             Digital Equipment Corporation
  4698.             Continental Blvd. MK02-1/H1O
  4699.             Merrimack, NH 03054
  4700.             U.S.A.
  4701.  
  4702.             +1-603-884-5703
  4703.             decvax!jmcg
  4704.             jmcg@decvax.dec.com
  4705.  
  4706. POSIX and IEEE are trademarks of the Institute of Electrical
  4707.     and Electronic Engineers, Inc.
  4708.  
  4709. Volume-Number: Volume 11, Number 60
  4710.  
  4711. From jsq  Sun Jun 14 22:09:52 1987
  4712. Posted-Date: 10 Jun 87 19:04:45 GMT
  4713. Received-Date: Sun, 14 Jun 87 22:09:52 CDT
  4714. Received: by sally.utexas.edu (5.54/5.51)
  4715.     id AA27981; Sun, 14 Jun 87 22:09:52 CDT
  4716. From: Dominic Dunlop <domo@sphinx.co.uk>
  4717. Newsgroups: comp.std.unix
  4718. Subject: <limits.h> - copy of item posted to comp.unix.wizards
  4719. Summary: POSIX is attempting to address this painful area
  4720. Keywords: NOFILES, S5R3, POSIX, 1003.1
  4721. Message-Id: <8261@ut-sally.UUCP>
  4722. References: <3635@spool.WISC.EDU> <292@olamb.UUCP>
  4723. Sender: std-unix@ut-sally.UUCP
  4724. Reply-To: domo@sphinx.co.uk (Dominic Dunlop)
  4725. Date: 10 Jun 87 19:04:45 GMT
  4726. Apparently-To: std-unix-archive
  4727.  
  4728. From: domo@sphinx.co.uk (Dominic Dunlop)
  4729.  
  4730. Agreed that finding out how many files you have to close in order to be
  4731. sure you've closed them all is a pain on most implementations of UN*X.
  4732. IEEE 1003.1 is attempting to address this and related issues (after they
  4733. were highlighted by IBM and others).
  4734.  
  4735. The current draft (#10) of 1003.1, which recently dropped
  4736. stone-like through my (physical) mailbox, incorporates something that I and
  4737. others cooked up at the April Toronto meeting.  The affected section is
  4738. 2.9, "Numerical Limits".  As the changes have yet to be reviewed by the
  4739. working group, they may well be thrown out or heavily modified later this
  4740. month.
  4741.  
  4742. Basically what the draft says is that things like OPEN_MAX, the maximum
  4743. number of files that a process can have open at any given time, are defined
  4744. in a header file, <limits.h>, as "bounded ranges".  OPEN_MAX defines at
  4745. compile time the "minimum maximum" number of files that a program can
  4746. expect to be able to have open when it runs on a particular
  4747. POSIX-conforming implementation (provided that the host system is not
  4748. overloaded, that is, in this case, that it hasn't run out of space in its
  4749. system open file or inode tables), while OPEN_MAX_CEIL defines the maximum
  4750. number of files that any instance of this implementation could ever allow
  4751. the program to have open.
  4752.  
  4753. What this means to the programmer is that applications may be written so
  4754. that they rely on being able to open OPEN_MAX files; so that they run
  4755. better if they succeed in opening more files than that (although there's no
  4756. point in trying if OPEN_MAX_CEIL are already open); and so that they can be
  4757. sure that everything is closed (when spawning children, for example) if they
  4758.  
  4759.     for (i = 0; i < OPEN_MAX_CEIL; (void) close(i++));
  4760.  
  4761. Thanks for the idea of the bounded range are due to Terence Dowling of Rolm,
  4762. who's not on the net.
  4763.  
  4764. There's much more of this sort of thing in the draft standard.  The
  4765. alternative to this compile-time approach is a run-time library function
  4766. which delivers either all possible information (in which case you get a
  4767. fixed-size structure, and lose binary application compatibility if in 
  4768. subsequent releases of a particular POSIX-conforming implementation the
  4769. amount of information returned increases); or requested items one at a time
  4770. in some sort of union.  If anybody would care to submit a proposal along
  4771. these lines to the working group, it is likely that it would be gladly
  4772. received.
  4773.  
  4774. Copy relevant correspondence to John S Quarterman, moderator for
  4775. comp.std.unix.  He can be reached at ut-sally!std-unix.
  4776. [ Or std-unix@sally.utexas.edu.  -mod ]
  4777.  
  4778. I am
  4779. Dominic Dunlop    Phone +44 628 75343
  4780. Sphinx Ltd.    UKnet domo@sphinx.co.uk
  4781.  
  4782. POSIX is a trademark of the IEEE
  4783.  
  4784. Volume-Number: Volume 11, Number 61
  4785.  
  4786. From jsq  Sun Jun 14 22:16:04 1987
  4787. Posted-Date: 14 Jun 87 20:09:29 GMT
  4788. Received-Date: Sun, 14 Jun 87 22:16:04 CDT
  4789. Received: by sally.utexas.edu (5.54/5.51)
  4790.     id AA28110; Sun, 14 Jun 87 22:16:04 CDT
  4791. From: Guy Harris <guy@sun.com>
  4792. Newsgroups: comp.std.unix
  4793. Subject: Re: tar vs. cpio
  4794. Message-Id: <8262@ut-sally.UUCP>
  4795. Sender: std-unix@ut-sally.UUCP
  4796. Reply-To: guy@sun.com (Guy Harris)
  4797. Date: 14 Jun 87 20:09:29 GMT
  4798. Apparently-To: std-unix-archive
  4799.  
  4800. From: guy@sun.com (Guy Harris)
  4801.  
  4802. > My memory is fuzzy now, but I recall cpio having been distributed on
  4803. > the V7 addendum tape, whose other contents were (I think) fsck, the
  4804. > line printer driver, and a c2 cured of certain overoptimism. ...
  4805. > [ Can anybody verify this?  -mod ]
  4806.  
  4807. No, but I think I can refute it with a reasonable degree of accuracy.
  4808. It's been a while since I've seen the V7 addendum tape, but I don't
  4809. remember "cpio" being on it.  (There were other things, like a
  4810. beefed-up F77, some fixes to "fgrep", and a newer version of "awk".
  4811. The versions that came with various 4BSD releases seemed to be the V7
  4812. addendum tape versions; "cpio" didn't come with any 4BSD release,
  4813. which suggests that "cpio" wasn't on the V7 addendum tape, although
  4814. it doesn't indicate it for sure.)
  4815.  
  4816. Volume-Number: Volume 11, Number 62
  4817.  
  4818. From jsq  Sun Jun 14 22:29:05 1987
  4819. Posted-Date: 11 Jun 87 19:08:56 GMT
  4820. Received-Date: Sun, 14 Jun 87 22:29:05 CDT
  4821. Received: by sally.utexas.edu (5.54/5.51)
  4822.     id AA28308; Sun, 14 Jun 87 22:29:05 CDT
  4823. From: Joseph S. D. Yao <jsdy@hadron.uucp>
  4824. Newsgroups: comp.std.unix
  4825. Subject: Re: tar vs. cpio
  4826. Summary: I don't think I said that.
  4827. Message-Id: <8263@ut-sally.UUCP>
  4828. References: <8188@ut-sally.UUCP>
  4829. Sender: std-unix@ut-sally.UUCP
  4830. Reply-To: hadron!jsdy@seismo.CSS.GOV (Joseph S. D. Yao)
  4831. Organization: Hadron, Inc., Fairfax, VA
  4832. Date: 11 Jun 87 19:08:56 GMT
  4833. Apparently-To: std-unix-archive
  4834.  
  4835. From: jsdy@hadron.uucp (Joseph S. D. Yao)
  4836.  
  4837. John,
  4838.  
  4839. Thanks for an excellent summary.  However, I don't think I ever
  4840. said that System III or System V didn't have tar.  I don't have
  4841. an archive to check, but that may have been when I posited that
  4842. V7 distribution tapes probably did not come in tar format, since
  4843. prior to that tar had not been distributed.  System V may have
  4844. had tar from the beginning.  I do not remember about System III.
  4845.  
  4846. Berkeley 4BSD tapes did come in tar format, I remember; but they
  4847. assumed that you had already received your V7/32V tapes, and were
  4848. in a different format from the V7/32V tapes.
  4849. [ You're evidently referring to some pretty old BSD tapes. -mod ]
  4850.  
  4851. Once tar had come out, versions were written which could read
  4852. tar distribution tapes under V6 and PWB 1.0.  (PWB was released
  4853. outside of AT&T, BTW.)
  4854.  
  4855.     Joe Yao        jsdy@hadron.COM (not yet domainised)
  4856.     hadron!jsdy@{seismo.CSS.GOV,dtix.ARPA,decuac.DEC.COM}
  4857. {arinc,att,avatar,cos,decuac,dtix,ecogong,kcwc}!hadron!jsdy
  4858.      {netex,netxcom,rlgvax,seismo,smsdpg,sundc}!hadron!jsdy
  4859.  
  4860. Volume-Number: Volume 11, Number 63
  4861.  
  4862. From jsq  Mon Jun 15 23:43:28 1987
  4863. Posted-Date: 15 Jun 87 08:50:23 GMT
  4864. Received-Date: Mon, 15 Jun 87 23:43:28 CDT
  4865. Received: by sally.utexas.edu (5.54/5.51)
  4866.     id AA19970; Mon, 15 Jun 87 23:43:28 CDT
  4867. From: (VLD/VMB <gwyn@BRL.ARPA>
  4868. Newsgroups: comp.std.unix
  4869. Subject: open file range
  4870. Message-Id: <8271@ut-sally.UUCP>
  4871. Sender: std-unix@ut-sally.UUCP
  4872. Reply-To: Doug Gwyn (VLD/VMB) <gwyn@BRL.ARPA>
  4873. Date: 15 Jun 87 08:50:23 GMT
  4874. Apparently-To: std-unix-archive
  4875.  
  4876. From: Doug Gwyn (VLD/VMB) <gwyn@BRL.ARPA>
  4877.  
  4878. Some implementations may not have any definite upper limit
  4879. (at least, nothing less than several thousand) for the number
  4880. of open files supported per process.  The minimum guaranteed
  4881. number of open files available is useful (for example for
  4882. merge sorting), but the maximum number may not be meaningful.
  4883.  
  4884. I submitted a proposal to X3J11 that fflush((FILE*)NULL) would
  4885. flush ALL output buffers, since there is no other good way to
  4886. accomplish that.  It seems that close(-1) might be a similar
  4887. solution for POSIX.  (Since nobody is supposed to be doing this
  4888. currently, it is available for assigning new semantics to.)
  4889.  
  4890. Volume-Number: Volume 11, Number 64
  4891.  
  4892. From jsq  Mon Jun 15 23:48:17 1987
  4893. Posted-Date: 15 Jun 87 16:24:13 GMT
  4894. Received-Date: Mon, 15 Jun 87 23:48:17 CDT
  4895. Received: by sally.utexas.edu (5.54/5.51)
  4896.     id AA20064; Mon, 15 Jun 87 23:48:17 CDT
  4897. From: Rick Adams <rick@seismo.CSS.GOV>
  4898. Newsgroups: comp.std.unix
  4899. Subject: Re: tar vs. cpio
  4900. Summary: cpio was definitely NOT on the v7 addendum tape
  4901. Message-Id: <8272@ut-sally.UUCP>
  4902. References: <8188@ut-sally.UUCP> <8248@ut-sally.UUCP>
  4903. Sender: std-unix@ut-sally.UUCP
  4904. Reply-To: rick@seismo.CSS.GOV (Rick Adams)
  4905. Organization: Center for Seismic Studies, Arlington, VA
  4906. Date: 15 Jun 87 16:24:13 GMT
  4907. Apparently-To: std-unix-archive
  4908.  
  4909. From: rick@seismo.CSS.GOV (Rick Adams)
  4910.  
  4911. This is the README file off of the V7 addendum tape. 
  4912. cpio is clearly not on the tape. Note that the addendum tape
  4913. is in TAR format! (That should say something...)
  4914.  
  4915. ---rick
  4916.  
  4917. --------------BEGIN README from V7 addendum---------------------
  4918. Addenda to UNIX 7th edition distribution tape, 12/2/80.
  4919.  
  4920. Format: tar(1), 800 bpi.
  4921.  
  4922. Contents:
  4923.     
  4924.     README: this descriptive file.
  4925.     
  4926.     lp.c: the missing line printer driver that
  4927.           belongs in /usr/sys/dev/lp.c.
  4928.           The program comes from PWB, and needs minor
  4929.           changes to work in version 7; see comment
  4930.           at head of program.
  4931.     
  4932.     lpr: a directory containing the lpr utility and
  4933.           its daemon lpd.
  4934.           See lpr/makefile for instructions on putting it
  4935.           together.
  4936.     
  4937.     lpd.8: the manual section for the line printer daemon.
  4938.  
  4939.     fgrep.c: new source for fgrep(1) corrects certain
  4940.           troubles with keys with common prefixes
  4941.     
  4942.     c2: directory containing C optimizer cured of
  4943.           certain instances of overoptimism.
  4944.           The existing C makefile works
  4945.  
  4946.     awk: directory with complete new awk processor,
  4947.           see README and makefile therein
  4948.  
  4949.     tmac.r: macros to simulate old "roff" in "nroff",
  4950.           to support -mr option mentioned in roff(1)
  4951.  
  4952.     f77: directory with complete new fortran compiler,
  4953.           contains makefiles.
  4954.           Further improvements to the I/O library have
  4955.           been made at UC Berkeley, and may be obtainable
  4956.           from them.
  4957.  
  4958.     malloc.c: new source for malloc(3) corrects rare bug
  4959.  
  4960.     dev: directory with more robust mag tape drivers for /usr/sys/dev
  4961.  
  4962.     fsck: directory with new, stringent file system checking
  4963.           program and manual section, far superior to old
  4964.           [ind]check.  It checks some data not maintained
  4965.           by v7, in particular superblock counts; resulting
  4966.           complaints are harmless
  4967.  
  4968.     
  4969. Other bug fixes:
  4970.  
  4971. /usr/sys/h/param.h: CMAPSIZ and SMAPSIZ
  4972.     should both be defined as (NPROC/2)
  4973.     otherwise trouble will occur with very large
  4974. /usr/sys/conf/low.s: replace br7+7. with br7+10.
  4975.     memories
  4976. /usr/src/cmd/sed/sed0.c: delete continue after
  4977.     case '\0' in compile() 
  4978. /usr/src/cmd/cu.c: args 1 and 2 of some ioctl calls
  4979.     may be interchanged
  4980.     a ~ may be lacking from references to ECHO or CRMOD
  4981.     in case (f == 1) of mode(f)
  4982.  
  4983. The following bugs exist, no fix is included.
  4984.       (1) adb does not report floating registers correctly
  4985.       (2) ldiv, lmod fail with largest negative dividend
  4986.           (these implement division of longs in C);
  4987.           the division (unsigned)32768/1 also fails
  4988.       (3) dump(1) maintains ddate incorrectly.
  4989.           This bug is relatively innocuous; it causes
  4990.           more dumping than necessary on some occasions.
  4991.       (4) join(1) treats null keys as end of file
  4992.       (5) sort -t includes the following tab in some field comparisons
  4993.       (6) hs(4) is irrevocably lost
  4994.       (7) exec writes arguments into swap space with buffered
  4995.           I/O, which may happen physically much later, after
  4996.           the space has been used for a core image.  The
  4997.           solution is to preallocate
  4998.           a portion of swap space to this single purpose.
  4999.       (8) break is turned into a DEL regardless
  5000.           of what the current interrupt character is
  5001.       (?) and others, see warranty
  5002.  
  5003.  
  5004. Volume-Number: Volume 11, Number 65
  5005.  
  5006. From jsq  Tue Jun 16 10:12:11 1987
  5007. Posted-Date: 15 Jun 87 19:52:11 GMT
  5008. Received-Date: Tue, 16 Jun 87 10:12:11 CDT
  5009. Received: by sally.utexas.edu (5.54/5.51)
  5010.     id AA28214; Tue, 16 Jun 87 10:12:11 CDT
  5011. From: Kenneth Almquist <ka%hropus.UUCP@sally.utexas.edu>
  5012. Newsgroups: comp.std.unix
  5013. Subject: Re: tar vs. cpio
  5014. Summary: Tar format makes correct handling of links impossible.
  5015. Message-Id: <8276@ut-sally.UUCP>
  5016. References: <8188@ut-sally.UUCP> <8208@ut-sally.UUCP> <8249@ut-sally.UUCP>
  5017. Sender: std-unix@ut-sally.UUCP
  5018. Reply-To: ka@hropus.UUCP (Kenneth Almquist)
  5019. Organization: Bell Labs, Holmdel, NJ
  5020. Date: 15 Jun 87 19:52:11 GMT
  5021. Apparently-To: std-unix-archive
  5022.  
  5023. From: ka@hropus.UUCP (Kenneth Almquist)
  5024.  
  5025. > [ We are discussing standardizing a data interchange/archive format
  5026. > in a standard that its authors explicitly wanted to be implementable
  5027. > on hosted, i.e., non-UNIX-based, systems.  The inclusion of inode
  5028. > numbers is a problem for such implementations, especially when it
  5029. > is not necessary, as demonstrated by the tar format.  -mod ]
  5030.  
  5031. Several people have suggested that tar's method of handling links is
  5032. better than cpio's.  After looking at the tar format, I wondered how
  5033. tar could possibly handle links correctly.   A quick experiment showed
  5034. that it doesn't.  Try the following:
  5035.  
  5036.     > file1
  5037.     ln file1 file2
  5038.     tar -cf archive file1 file2
  5039.     rm file1 file2
  5040.     tar -xf archive file2
  5041.  
  5042. The second tar command will fail because tar will simply try to create
  5043. a link from file1 to file2, but since I only requested that file2 be
  5044. extracted file1 does not exist.
  5045.  
  5046. I claim that this is a bug in the tar archive format rather than just
  5047. the tar program.  Consider what tar must do to function correctly.  Tar
  5048. could remember the location of file1 and lseek to it in this particular
  5049. example, but in general the input to tar is not a regular file and thus
  5050. may not be seekable.  The best bug fix that I could come up with is to
  5051. to make tar write the contents of all files that it does not extract
  5052. to a temporary file.  This is unsatisfactory because a user who tried
  5053. to extract a single file from a 32 megabyte tape would almost certainly
  5054. run out of disk space.
  5055.  
  5056. So it seems to me that tar cannot be made to handle links correctly
  5057. unless the tar archive format is changed.  The cpio format, on the other
  5058. hand, allows links to be handled correctly.  The fact that cpio includes
  5059. inode numbers is not all that major a problem for non-UNIX based systems.
  5060. Since the only thing the inode numbers are used for is resolving links,
  5061. a system which does not support (non-symbolic) links can leave garbage
  5062. in the inode field when writing tapes.  A system which does have links
  5063. but does not have inode numbers can use a sequence number in place of
  5064. the inode number.
  5065.  
  5066. I recognize that users will very rarely encounter this bug in tar, but
  5067. I still view it as a serious problem in a *standard*.  The question is
  5068. not whether this bug in tar desperately needs to be fixed (which is
  5069. doesn't), but whether it is reasonable to expect vendors selling cpio
  5070. to deliberately introduce a bug into cpio.  Unless someone can suggest
  5071. a good way to make cpio use the tar format and still work correctly,
  5072. vendors will have to do just that to be compatible with the new standard.
  5073.  
  5074.  
  5075. I wonder if there is still any chance of a new interchange format that
  5076. corrected the deficiencies of both cpio and tar being accepted as the
  5077. standard.  Assuming someone could be found to write a public domain
  5078. implementation of the new format, would that be sufficient to make it
  5079. a reasonable alternative to the existing implementations?
  5080.                 Kenneth Almquist
  5081.  
  5082. Volume-Number: Volume 11, Number 66
  5083.  
  5084. From jsq  Wed Jun 17 09:22:46 1987
  5085. Posted-Date: 17 Jun 87 14:22:34 GMT
  5086. Received-Date: Wed, 17 Jun 87 09:22:46 CDT
  5087. Received: by sally.utexas.edu (5.54/5.51)
  5088.     id AA19662; Wed, 17 Jun 87 09:22:46 CDT
  5089. From: std-unix%ut-sally.UUCP@sally.utexas.edu (Moderator, John Quarterman)
  5090. Newsgroups: comp.std.unix
  5091. Subject: tar vs. cpio
  5092. Message-Id: <8280@ut-sally.UUCP>
  5093. Reply-To: std-unix@sally.utexas.edu
  5094. Date: 17 Jun 87 14:22:34 GMT
  5095. Apparently-To: std-unix-archive
  5096.  
  5097. Yesterday was 16 June, which was the day I said I would collect
  5098. tar and cpio comments until.  Included below is the revised note
  5099. for P1003.1, incorporating those comments.  I will deliver it
  5100. to P1003.1 in Seattle Monday.
  5101.  
  5102.  
  5103.  
  5104.                                   tar vs. cpio      IEEE P1003.1 N.___
  5105.                                                           17 June 1987
  5106.  
  5107.                                John S. Quarterman
  5108.  
  5109.                     Institutional Representative from USENIX
  5110.                                    usenix!jsq
  5111.  
  5112.  
  5113.  
  5114.           Secretary, IEEE Standards Board
  5115.           Attention: P1003 Working Group
  5116.           345 East 47th St.
  5117.           New York, NY 10017
  5118.  
  5119.           In both the Trial Use Standard and the current Draft 10,
  5120.           POSIX sS10.1 describes a data interchange format based on the
  5121.           tar program.  That section has appeared in every draft of
  5122.           IEEE 1003.1 in some form and has always been based on tar
  5123.           format.  The P1003.1 Working Group has recently received two
  5124.           related proposals regarding that section: one to add cpio
  5125.           format (including old-style, non-ASCII (non c option)
  5126.           format); <N.048 Lorraine C. Kevra> <V11N14> <V11N25 Eric S.
  5127.           Raymond> the other to replace the existing tar-based format
  5128.           with cpio format.  <N.043 X/OPEN> <V11N13> Some
  5129.           clarifications were received to the former.  <N.064 Dominic
  5130.           Dunlop> <V11N15> It was also proposed verbally in the latest
  5131.           Working Group meeting to drop sS10.1 altogether and let
  5132.           P1003.2 handle the issue.  <V11N08> <V11N11> <V11N09 Guy
  5133.           Harris> <V11N12 Doug Gwyn>
  5134.  
  5135.           The present note is a response to those proposals.  Much of
  5136.           the detail in it is derived from articles posted in the
  5137.           USENET newsgroup comp.std.unix.  Those articles are
  5138.           referenced with this format: <V11N09 Guy Harris> which gives
  5139.           the volume (always 11) and number of the article, and the
  5140.           name of the submittor.  If no submittor name is given, the
  5141.           posting was by the moderator, John S. Quarterman.  Thanks to
  5142.           those who submitted articles.  However, the content of this
  5143.           note is solely the responsibility of the author.
  5144.  
  5145.           This note is addressed to P1003.1, and is concerned with
  5146.           data interchange formats.  Although user interface issues
  5147.           may be of interest to P1003.2, they are not addressed here.
  5148.  
  5149.           There are a number of problems with both cpio formats.
  5150.           First, those related to the non-ASCII format:
  5151.  
  5152.             1.  Numerous parameters, including inode numbers, mode
  5153.                 bits, and user and group IDs, are kept in two-byte
  5154.                 binary integers.  This has historically produced
  5155.                 serious byte-order problems when data is moved among
  5156.                 systems with different byte orders.  <V11N09 Guy
  5157.                 Harris>
  5158.  
  5159.  
  5160.  
  5161.  
  5162.  
  5163.  
  5164.  
  5165.  
  5166.           Page 2                  tar vs. cpio      IEEE P1003.1 N.___
  5167.  
  5168.  
  5169.  
  5170.             2.  The byte-swapping and word-swapping options to the
  5171.                 cpio program are inadequate patches; with an ASCII
  5172.                 format the problem would not be present.  The options
  5173.                 are not consistent across versions of the program: in
  5174.                 System III, data blocks and file names are byte
  5175.                 swapped; in System V, only data blocks are byte
  5176.                 swapped.  <V11N09 Guy Harris> <V11N47 Andrew
  5177.                 Tannenbaum>
  5178.  
  5179.             3.  The two-byte integer format limits the range of inode
  5180.                 numbers to 0..65535.  Many current file systems are
  5181.                 bigger than that.  <V11N37 Paul Eggert> <V11N39 Henry
  5182.                 Spencer>
  5183.  
  5184.           Non-ASCII cpio format is clearly not portable and should not
  5185.           even be considered for standardization.  <V11N12 Doug Gwyn>
  5186.  
  5187.           There are several problems that occur even with the ASCII
  5188.           cpio format:
  5189.  
  5190.             1.  Many implementations of cpio only look at the lower 16
  5191.                 (or even 15) bits of the inode number, even in ASCII
  5192.                 format.  <V11N39 Henry Spencer> This is because the
  5193.                 variable that is used to contain the value is declared
  5194.                 to be unsigned short, just as in binary format.  Thus,
  5195.                 even though ASCII cpio format only constrains this
  5196.                 number to the range 0..262143, the format is still
  5197.                 less than portable.  <V11N37 Paul Eggert>
  5198.  
  5199.             2.  The proposed cpio ASCII format as specified, <N.048
  5200.                 Lorraine C. Kevra> <V11N14> is not portable because
  5201.                 the proposal assumes that sizeof(int) == sizeof(long).
  5202.                 <N.064 Dominic Dunlop> <V11N15>
  5203.  
  5204.             3.  The file type is written in a numerical format, making
  5205.                 it UNIX specific rather than POSIX specific, since
  5206.                 POSIX (and tar) specifies symbolic, rather than
  5207.                 numerical, values for file types.  <V11N09 Guy Harris>
  5208.  
  5209.             4.  Hard links are not handled well, since cpio format
  5210.                 does not directly record that two files are linked.
  5211.                 If two files that are linked are written in cpio
  5212.                 format, two copies will be written.  The cpio program
  5213.                 detects duplicate files by matching pairs of (h_dev,
  5214.                 h_ino) and producing links, but that is done after the
  5215.                 fact.  <V11N09 Guy Harris> <V11N45 Guy Harris> <V11N54
  5216.                 Ian Donaldson> (There is a program, afio, that handles
  5217.                 cpio format more efficiently in this and other cases
  5218.                 than the licensed versions of the program.) <V11N21
  5219.                 Chuck Forsberg>
  5220.  
  5221.  
  5222.  
  5223.  
  5224.  
  5225.  
  5226.  
  5227.  
  5228.           Page 3                  tar vs. cpio      IEEE P1003.1 N.___
  5229.  
  5230.  
  5231.  
  5232.             5.  Symbolic links are not handled at all, and no type
  5233.                 value is reserved for them.  This makes cpio useless
  5234.                 on a large class of historical implementations (those
  5235.                 based on 4.2BSD or its file system) for one of the
  5236.                 main purposes of POSIX sS10.1: archiving files for
  5237.                 later retrieval and use on the same system.  Although
  5238.                 it is possible to extend cpio to handle symbolic
  5239.                 links, and at least one vendor has done this, <V11N45
  5240.                 Guy Harris> the format proposed to P1003.1 is the
  5241.                 format in the SVID, and does not handle symbolic
  5242.                 links.
  5243.  
  5244.             6.  The cpio format is less common than tar format: there
  5245.                 are few historical implementations from Version 7 on
  5246.                 that do not have tar; there are many that do not have
  5247.                 cpio.  <V11N09 Guy Harris> <V11N10 Charles Hedrick>
  5248.                 <V11N24 Jim Cottrell> It is true that cpio (non-ASCII
  5249.                 format) was invented before tar, <V11N22 Joseph S. D.
  5250.                 Yao> apparently in PWB System 1.0.  <V11N26 Joseph S.
  5251.                 D. Yao> The cpio program was first available outside
  5252.                 AT&T with PWB/UNIX 1.0, <V11N45 Guy Harris> <V11N63
  5253.                 Joseph S. D. Yao> and later with System III.  However,
  5254.                 in the interim, Version 7, which did not include cpio
  5255.                 <V11N53 Bill Jones> <V11N62 Guy Harris> but did
  5256.                 include tar, became the most influential system.
  5257.                 There was a V7 addendum tape, but it also did not
  5258.                 include cpio (according to its README file); <V11N65
  5259.                 Rick Adams> the addendum tape was in tar format.
  5260.                 Also, it appears that the cpio format of PWB was not
  5261.                 the same as that of System III.  <V11N39 Henry
  5262.                 Spencer> And System III and all releases of System V
  5263.                 include tar.  <V11N26 Joseph S. D. Yao> <V11N63 Joseph
  5264.                 S. D. Yao> <V11N45 Guy Harris> <V11N47 Andrew
  5265.                 Tannenbaum>
  5266.  
  5267.             7.  It is very late in the process to propose that P1003.1
  5268.                 adopt cpio format now, especially considering that it
  5269.                 was originally proposed to and rejected by the
  5270.                 /usr/group committee before P1003.1 was even formed.
  5271.                 <V11N39 Henry Spencer>
  5272.  
  5273.           Advantages of cpio format include:
  5274.  
  5275.             1.  Both X/OPEN <N.043 X/OPEN> <V11N13> and the SVID
  5276.                 <N.048 Lorraine C. Kevra> <V11N14> use it, although
  5277.                 evidently defined somewhat differently.  <N.064
  5278.                 Dominic Dunlop> <V11N15>
  5279.  
  5280.             2.  Archives made in cpio format are often smaller than
  5281.                 ones in tar format.  <V11N44 Mark Horton> But this is
  5282.                 only because of the headers, and thus the effect
  5283.  
  5284.  
  5285.  
  5286.  
  5287.  
  5288.  
  5289.  
  5290.           Page 4                  tar vs. cpio      IEEE P1003.1 N.___
  5291.  
  5292.  
  5293.  
  5294.                 diminishes with larger files.
  5295.  
  5296.             3.  On a local (non-networked) system, cpio is more
  5297.                 efficient at copying directory trees than tar.
  5298.                 <V11N46 Steve Blasingame> However, this is really an
  5299.                 implementation issue.
  5300.  
  5301.           There are several advantages to the current tar-based format
  5302.           as specified in sS10.1:
  5303.  
  5304.             1.  There are no byte- or word-swapping issues caused by
  5305.                 the format, since all the header values are ASCII byte
  5306.                 streams.  <V11N17 John Gilmore>
  5307.  
  5308.             2.  There are no inode numbers recorded, and file types
  5309.                 are kept in symbolic form, so the format is less
  5310.                 implementation-specific than cpio format.  <V11N17
  5311.                 John Gilmore>
  5312.  
  5313.             3.  Historical tar format is the most widely used, as
  5314.                 discussed in 6. above, despite apparent assertions to
  5315.                 the contrary.  <N.043 X/OPEN> <V11N13>
  5316.  
  5317.             4.  The format specified in sS10.1 is upward-compatible
  5318.                 with tar format.  Old tar archives can be extracted by
  5319.                 a program that implements sS10.1.  Archives using some
  5320.                 of the extensions of sS10.1 can be extracted with old
  5321.                 (Version 7) tar programs, although symbolic links will
  5322.                 not be extracted and contiguous files will not be
  5323.                 handled properly (cpio does not handle these
  5324.                 capabilities at all).  Files with very long names will
  5325.                 not be handled properly (cpio does no better at this).
  5326.                 All tar implementations are compatible to this extent.
  5327.                 <V11N17 John Gilmore>
  5328.  
  5329.             5.  The /usr/group working group and P1003.1 have already
  5330.                 done the work <P.061> <M.019 5.1.121 Pg.13> <RFC.003
  5331.                 #121> <P.038> <P.006> required to add optional
  5332.                 extensions (such as symbolic links, long file names,
  5333.                 <V11N49 Jerry Schwarz> <V11N50 Michael MacDonald> and
  5334.                 contiguous files) that are needed on many historical
  5335.                 implementations and that cpio format lacks.
  5336.  
  5337.             6.  The format is extensible for future facilities.
  5338.                 <V11N39 Henry Spencer>
  5339.  
  5340.             7.  There is a public domain implementation of the format
  5341.                 of sS10.1.  That implementation provided feedback which
  5342.                 led to improvements in the current specification, and
  5343.                 has been in use for years in transferring data with
  5344.                 licensed tar implementations.  <V11N17 John Gilmore>
  5345.  
  5346.  
  5347.  
  5348.  
  5349.  
  5350.  
  5351.  
  5352.           Page 5                  tar vs. cpio      IEEE P1003.1 N.___
  5353.  
  5354.  
  5355.  
  5356.             8.  Many people prefer the user interface of the cpio
  5357.                 program to that of the tar program, because the former
  5358.                 can accept a list of pathnames to archive on standard
  5359.                 input while the latter takes them as arguments,
  5360.                 limiting the length of the list.  <V11N34 Andrew
  5361.                 Tannenbaum> However, the above-mentioned public domain
  5362.                 implementation of tar accepts pathnames on standard
  5363.                 input, <V11N17 John Gilmore> <V11N19 Jim Cottrell> and
  5364.                 at least one vendor sells a version of tar that can do
  5365.                 this.  <V11N48 Michael Gersten> Diffs to standard tar
  5366.                 to add an option to accept pathnames on standard input
  5367.                 when creating an archive have also been posted to
  5368.                 USENET.  <V11N36 John Gilmore> The user interface is,
  5369.                 in any case, irrelevant to P1003.1.  <V11N39 Henry
  5370.                 Spencer> <V11N40 Rahul Dhesi>
  5371.  
  5372.           Disadvantages of tar format:
  5373.  
  5374.             1.  If an attempt is made to extract only the second of a
  5375.                 pair of hard linked files the tar program will attempt
  5376.                 to link the second file to the nonexistent first file,
  5377.                 and nothing will be extracted.  Although a
  5378.                 sufficiently clever implementation could avoid this,
  5379.                 the problem can be considered to be in the archive
  5380.                 format.  <V11N66 Kenneth Almquist>
  5381.  
  5382.           There are some problems that neither tar nor cpio handles
  5383.           well.
  5384.  
  5385.             1.  File names still longer than the length of PATH_MAX
  5386.                 (at least 255) <V11N50 Michael MacDonald> that the
  5387.                 POSIX format allows (and than the 128 that cpio
  5388.                 permits or than the 100 that historical tar allows)
  5389.                 would be preferable, although the POSIX limit is
  5390.                 useful for most cases.  <V11N54 Ian Donaldson>
  5391.  
  5392.             2.  An option to prevent crossing mount points would be
  5393.                 useful for backups.  <V11N19 Jim Cottrell> <V11N22
  5394.                 Joseph S. D. Yao> However, this appears to be more of
  5395.                 an implementation issue than a format issue, <V11N28
  5396.                 Dave Brower> <V11N32 Joseph S. D. Yao> especially
  5397.                 considering that there are options to find in 4.2BSD,
  5398.                 <V11N24 Jim Cottrell> SunOS 3.2, <V11N36 John Gilmore>
  5399.                 and System V Release 3.0 <V11N35 Mike Akre> that take
  5400.                 care of this.
  5401.  
  5402.             3.  The default block size in many tar implementations is
  5403.                 too large for some tape controllers to read <V11N27
  5404.                 Rob Lake> (the 3B20 has this problem).  This is not a
  5405.                 problem with the interchange format, however.
  5406.  
  5407.  
  5408.  
  5409.  
  5410.  
  5411.  
  5412.  
  5413.  
  5414.           Page 6                  tar vs. cpio      IEEE P1003.1 N.___
  5415.  
  5416.  
  5417.  
  5418.           There is nothing that the proposed cpio can handle that the
  5419.           tar-based format already in POSIX sS10.1 cannot handle; in
  5420.           fact, the former is less capable.  If cpio format were
  5421.           augmented to handle missing capabilities, it would be
  5422.           subject to the same objections now aimed at the format given
  5423.           in sS10.1: that it was not identical with an existing format.
  5424.  
  5425.           There is no advantage in replacing the current tar-based
  5426.           format of sS10.1 with cpio format.  There is also no
  5427.           advantage in adding cpio format, because two standards are
  5428.           not as good as a single standard.
  5429.  
  5430.           Some have recommended removing sS10.1 from POSIX altogether,
  5431.           <V11N12 Doug Gwyn> perhaps with a recommendation for P1003.2
  5432.           to pick up the idea.  <V11N09 Guy Harris> While I believe
  5433.           that that would be preferable to adding cpio format, whether
  5434.           or not tar format remains, I recommend leaving sS10.1 as it
  5435.           is, because
  5436.  
  5437.              o+ The inclusion of an archive/interchange file format is
  5438.                in agreement with the purpose of POSIX to promote
  5439.                portability of application programs across interface
  5440.                implementations.  Some format will be used.  It is to
  5441.                the advantage of the users of the standard for there to
  5442.                be a standard format.
  5443.  
  5444.              o+ The de facto standard is tar format.  The current sS10.1
  5445.                standardizes that, and provides upward-compatible
  5446.                extensions in areas that were previously lacking.
  5447.  
  5448.           The Archive/Interchange File Format should be left as it is.
  5449.  
  5450.                                                   Thank you,
  5451.  
  5452.  
  5453.  
  5454.                                                   John S. Quarterman
  5455.  
  5456.  
  5457. Volume-Number: Volume 11, Number 67
  5458.  
  5459. From jsq  Wed Jun 17 09:35:48 1987
  5460. Posted-Date: 16 Jun 87 19:53:13 GMT
  5461. Received-Date: Wed, 17 Jun 87 09:35:48 CDT
  5462. Received: by sally.utexas.edu (5.54/5.51)
  5463.     id AA19862; Wed, 17 Jun 87 09:35:48 CDT
  5464. From: John R. Levine <johnl@ima.ISC.COM>
  5465. Newsgroups: comp.std.unix
  5466. Subject: Re: UNIX Facilities for Interpreters
  5467. Summary: file mapping is a reasonable idea, do it right.
  5468. Message-Id: <8281@ut-sally.UUCP>
  5469. References: <8250@ut-sally.UUCP>
  5470. Sender: std-unix@ut-sally.UUCP
  5471. Reply-To: ima!johnl@harvard.harvard.edu (John R. Levine)
  5472. Organization: Javelin Software Corporation
  5473. Date: 16 Jun 87 19:53:13 GMT
  5474. Apparently-To: std-unix-archive
  5475.  
  5476. From: johnl@ima.ISC.COM (John R. Levine)
  5477.  
  5478. In article <8250@ut-sally.UUCP> boba@iscuva.ISCS.COM (Bob Alexander) writes:
  5479. >[interpretive languages would work better if they could page their data
  5480. >memory like compiled languages do, so how about a vread() call that maps
  5481. >instead of reading?]
  5482.  
  5483. When we were designing AIX, the Sys V port for the RT PC, the same question
  5484. of file mapping came up, this time in the context of doing data base work.
  5485. The original proposal was for something like the vread() call, but we
  5486. eventually decided on, essentially:
  5487.  
  5488.     pointer = filemap(fd);
  5489.  
  5490. where fd is an open file descriptor.  It maps the entire file into the
  5491. address space, somewhere, and gives you a pointer to it.  It fails if there
  5492. isn't enough address space.  This had the advantage over the vread() approach
  5493. that it generalizes better for file writing -- if the file is mapped
  5494. read/write, anything you write to the segment goes into the file, adding
  5495. new blocks into the file if need be.  If you don't want the file's size to be a
  5496. multiple of a page, use ftruncate() to set its length.
  5497.  
  5498. Notice that vread() can easily be simulated by this scheme, but not vice
  5499. versa.  I agree that this scheme fails dismally if you don't actually have
  5500. paged memory, but I'd rather have this as the underlying call and vread() as
  5501. a library routine that maps on systems where it can and reads on systems
  5502. where it can't.
  5503.  
  5504. John Levine, ima!johnl or Levine@YALE.somethingorother
  5505. ---
  5506. John R. Levine, Javelin Software Corp., Cambridge MA +1 617 494 1400
  5507. { ihnp4 | decvax | cbosgd | harvard | yale }!ima!johnl, Levine@YALE.something
  5508. U.S. out of New Mexico!
  5509.  
  5510. Volume-Number: Volume 11, Number 68
  5511.  
  5512. From jsq  Fri Jun 19 10:21:17 1987
  5513. Posted-Date: 17 Jun 87 20:30:39 GMT
  5514. Received-Date: Fri, 19 Jun 87 10:21:17 CDT
  5515. Received: by sally.utexas.edu (5.54/5.51)
  5516.     id AA09127; Fri, 19 Jun 87 10:21:17 CDT
  5517. From: Henry Spencer <henry%utzoo.UUCP@sally.utexas.edu>
  5518. Newsgroups: comp.std.unix
  5519. Subject: Re: tar vs. cpio
  5520. Message-Id: <8296@ut-sally.UUCP>
  5521. References: <8188@ut-sally.UUCP> <8208@ut-sally.UUCP>, <8251@ut-sally.UUCP>
  5522. Sender: std-unix@ut-sally.UUCP
  5523. Reply-To: henry@utzoo.UUCP (Henry Spencer)
  5524. Date: 17 Jun 87 20:30:39 GMT
  5525. Apparently-To: std-unix-archive
  5526.  
  5527. From: henry@utzoo.UUCP (Henry Spencer)
  5528.  
  5529. > >        1)  Data is not block oriented. This slows down processing...
  5530. > I miss this one. It may slow things under MVS, but there's no reason
  5531. > why reading less physical data should slow things down. Quite the
  5532. > opposite.
  5533.  
  5534. The problem being alluded to is that the data is not block-aligned.  This
  5535. is a bit of a performance pain when the disks are block-aligned, although
  5536. tar's block alignment isn't going to help a lot if the disk blocks are bigger
  5537. than tar's (which they normally are, nowadays).
  5538.  
  5539. > >        2)  There is no room left in the header. No customization
  5540. > >            possible (without also sending the customized program).
  5541. > This is a major advantage. Save us from "custom standard' format. The
  5542. > custom stuff belongs in the *file*, not the format (in my opinion).
  5543.  
  5544. The point here is that you can customize tar to some degree *without*
  5545. making it incompatible with the standard ones.  (We did, for example.)
  5546. This is not true of cpio, since there's no spare space in the header.
  5547.  
  5548.                 Henry Spencer @ U of Toronto Zoology
  5549.                 {allegra,ihnp4,decvax,pyramid}!utzoo!henry
  5550.  
  5551. Volume-Number: Volume 11, Number 69
  5552.  
  5553. From jsq  Fri Jun 19 10:26:33 1987
  5554. Posted-Date: 17 Jun 87 20:30:43 GMT
  5555. Received-Date: Fri, 19 Jun 87 10:26:33 CDT
  5556. Received: by sally.utexas.edu (5.54/5.51)
  5557.     id AA09283; Fri, 19 Jun 87 10:26:33 CDT
  5558. From: Henry Spencer <henry%utzoo.UUCP@sally.utexas.edu>
  5559. Newsgroups: comp.std.unix
  5560. Subject: Re: <limits.h> - copy of item posted to comp.unix.wizards
  5561. Message-Id: <8297@ut-sally.UUCP>
  5562. References: <3635@spool.WISC.EDU> <292@olamb.UUCP>, <8261@ut-sally.UUCP>
  5563. Sender: std-unix@ut-sally.UUCP
  5564. Reply-To: henry@utzoo.UUCP (Henry Spencer)
  5565. Date: 17 Jun 87 20:30:43 GMT
  5566. Apparently-To: std-unix-archive
  5567.  
  5568. From: henry@utzoo.UUCP (Henry Spencer)
  5569.  
  5570. > Agreed that finding out how many files you have to close in order to be
  5571. > sure you've closed them all is a pain on most implementations of UN*X.
  5572. > IEEE 1003.1 is attempting to address this...
  5573.  
  5574. Actually, one way to solve this *particular* problem without the nastiness
  5575. of the general case would be to have close() yield EBADF (as it does now)
  5576. for a legal-but-not-open descriptor number and EDOM for a descriptor number
  5577. beyond the implementation's limit.  (1003 doesn't currently include EDOM in
  5578. its error-number list, since in existing implementations it's not returned
  5579. by the kernel, but adding it shouldn't hurt anything.)
  5580.  
  5581. Another alternative would be to vary the code based on whether there is a
  5582. higher-numbered descriptor still open or not.  It's no problem for the kernel
  5583. to keep track of the highest open descriptor, so that the decision can be
  5584. made quickly even on a system that allows lots of descriptors.
  5585.  
  5586.                 Henry Spencer @ U of Toronto Zoology
  5587.                 {allegra,ihnp4,decvax,pyramid}!utzoo!henry
  5588.  
  5589. Volume-Number: Volume 11, Number 70
  5590.  
  5591. From jsq  Fri Jun 19 10:34:08 1987
  5592. Posted-Date: 18 Jun 87 06:21:11 GMT
  5593. Received-Date: Fri, 19 Jun 87 10:34:08 CDT
  5594. Received: by sally.utexas.edu (5.54/5.51)
  5595.     id AA09487; Fri, 19 Jun 87 10:34:08 CDT
  5596. From: Ian Donaldson <rcodi@yabbie.oz.au>
  5597. Newsgroups: comp.std.unix
  5598. Subject: Re: tar vs. cpio
  5599. Message-Id: <8298@ut-sally.UUCP>
  5600. References: <8188@ut-sally.UUCP> <8208@ut-sally.UUCP> <8249@ut-sally.UUCP>
  5601. Sender: std-unix@ut-sally.UUCP
  5602. Reply-To: rcodi@yabbie.oz.au (Ian Donaldson)
  5603. Organization: RMIT Comm & Elec Eng, Melbourne, Australia.
  5604. Date: 18 Jun 87 06:21:11 GMT
  5605. Apparently-To: std-unix-archive
  5606.  
  5607. From: rcodi@yabbie.oz.au (Ian Donaldson)
  5608.  
  5609. In article <8249@ut-sally.UUCP>, std-unix@ut-sally.UUCP (Moderator, John Quarterman) writes:
  5610. > [ We are discussing standardizing a data interchange/archive format 
  5611. > in a standard that its authors explicitly wanted to be implementable
  5612. > on hosted, i.e., non-UNIX-based, systems.  The inclusion of inode
  5613. > numbers is a problem for such implementations, especially when it
  5614. > is not necessary, as demonstrated by the tar format.  -mod ]
  5615.  
  5616. How much of a problem?  Surely the numerical value of these numbers are 
  5617. unimportant, but their relationship to other files in the same
  5618. archive is important.  They are just magic cookies specifying whether
  5619. file A is the same as file B.  Any computer can generate such
  5620. magic cookies.    
  5621.  
  5622. For so-called implimentations of "UNIX" (as opposed to UN*X)
  5623. that don't have linked file capabilities (gasp!) this is still not a problem,
  5624. as archives that they generate won't have linked files, and archives
  5625. that they read will simply ignore this information.  
  5626.  
  5627. Same goes for tar.
  5628.  
  5629. Ian D.
  5630.  
  5631. Volume-Number: Volume 11, Number 71
  5632.  
  5633. From jsq  Fri Jun 19 10:39:04 1987
  5634. Posted-Date: 19 Jun 87 03:15:09 GMT
  5635. Received-Date: Fri, 19 Jun 87 10:39:04 CDT
  5636. Received: by sally.utexas.edu (5.54/5.51)
  5637.     id AA09587; Fri, 19 Jun 87 10:39:04 CDT
  5638. From: Michael Gersten <cc1@cs.ucla.edu>
  5639. Newsgroups: comp.std.unix
  5640. Subject: Re: UNIX Facilities for Interpreters
  5641. Message-Id: <8299@ut-sally.UUCP>
  5642. References: <8250@ut-sally.UUCP>
  5643. Sender: std-unix@ut-sally.UUCP
  5644. Reply-To: cc1@cs.ucla.edu (Michael Gersten)
  5645. Organization: Ucla Computer Club (disclaimer)
  5646. Date: 19 Jun 87 03:15:09 GMT
  5647. Apparently-To: std-unix-archive
  5648.  
  5649. From: cc1@cs.ucla.edu (Michael Gersten)
  5650.  
  5651. vread() is a nice idea, but fairly (very) limited. In particular, it requires
  5652. that the p-code being interpreted be stored on the disk in semi-compiled
  5653. form, and used as pure.
  5654.  
  5655. May I remind you that INTERACTIVE interpreters (which is the whole point
  5656. of interpreters) do not do this; most BASIC's tokenize the text as they
  5657. read it in, so it is not pure; any decent interactive system will have
  5658. dificulty utilizing this because they do not p-compile first.
  5659.  
  5660.             Michael Gersten
  5661.  
  5662. Volume-Number: Volume 11, Number 72
  5663.  
  5664. From jsq  Fri Jun 19 10:44:26 1987
  5665. Posted-Date: 19 Jun 87 01:09:02 GMT
  5666. Received-Date: Fri, 19 Jun 87 10:44:26 CDT
  5667. Received: by sally.utexas.edu (5.54/5.51)
  5668.     id AA09712; Fri, 19 Jun 87 10:44:26 CDT
  5669. From: Skip Montanaro <montnaro@sprite.uucp>
  5670. Newsgroups: comp.std.unix
  5671. Subject: Replacement for signals in POSIX?
  5672. Summary: Is there any such beast?
  5673. Message-Id: <8300@ut-sally.UUCP>
  5674. Sender: std-unix@ut-sally.UUCP
  5675. Reply-To: montnaro@sprite.uucp (Skip Montanaro)
  5676. Organization: General Electric CRD, Schenectady, NY
  5677. Date: 19 Jun 87 01:09:02 GMT
  5678. Apparently-To: std-unix-archive
  5679.  
  5680. From: montnaro@sprite.uucp (Skip Montanaro)
  5681.  
  5682. Perhaps this has been discussed before, but I've only recently begun
  5683. reading this group.
  5684.  
  5685. At the recent USENIX conference in Phoenix the issue of signal
  5686. handling came up in relation to the MACH kernel. It seems that signals
  5687. and threads (or lightweight processes, if you will) don't fit together
  5688. very well. If you think about it for a bit, it's hard to decide which
  5689. thread should catch a signal: the active thread? the one that set the
  5690. signal? some designated signal catcher? The MACH types have hacked
  5691. something together. (I think they decided the active thread would
  5692. catch it, but don't quote me.)
  5693.  
  5694. My question is, has the POSIX group discussed any alternatives to the
  5695. signal facility?
  5696.  
  5697. Mail me your replies. I'll summarize if there's any interest.
  5698.  
  5699.          Skip|  ARPA:      montanaro@ge-crd.arpa
  5700.     Montanaro|  UUCP:      montanaro@desdemona.steinmetz.ge.com
  5701. (518)387-7312|  GE DECnet: advax::"montanaro@desdemona.steinmetz.ge.com"
  5702.  
  5703. Volume-Number: Volume 11, Number 73
  5704.  
  5705. From jsq  Fri Jun 19 10:49:51 1987
  5706. Posted-Date: 18 Jun 87 16:12:39 GMT
  5707. Received-Date: Fri, 19 Jun 87 10:49:51 CDT
  5708. Received: by sally.utexas.edu (5.54/5.51)
  5709.     id AA09852; Fri, 19 Jun 87 10:49:51 CDT
  5710. From: Simon Brown <simon@its63b.ed.ac.uk>
  5711. Newsgroups: comp.std.unix
  5712. Subject: Re: open file range
  5713. Message-Id: <8301@ut-sally.UUCP>
  5714. References: <8271@ut-sally.UUCP>
  5715. Sender: std-unix@ut-sally.UUCP
  5716. Reply-To: simon@its63b.ed.ac.uk (Simon Brown)
  5717. Organization: Computer Science Department, Edinburgh University
  5718. Date: 18 Jun 87 16:12:39 GMT
  5719. Apparently-To: std-unix-archive
  5720.  
  5721. From: simon@its63b.ed.ac.uk (Simon Brown)
  5722.  
  5723. In article <8271@ut-sally.UUCP> Doug Gwyn (VLD/VMB) <gwyn@BRL.ARPA> writes:
  5724. >From: Doug Gwyn (VLD/VMB) <gwyn@BRL.ARPA>
  5725. >
  5726. >I submitted a proposal to X3J11 that fflush((FILE*)NULL) would
  5727. >flush ALL output buffers, since there is no other good way to
  5728. >accomplish that.  It seems that close(-1) might be a similar
  5729. >solution for POSIX.  (Since nobody is supposed to be doing this
  5730. >currently, it is available for assigning new semantics to.)
  5731. >
  5732.  
  5733. Arghhh, no! Don't do that! Ok, it might seem a truly wonderful idea, but
  5734. it would mean that things like
  5735.     fd = open(some-random-filename,something);
  5736.     do-something-bizarre-with-fd;
  5737.     close(fd);
  5738. will do a "close(-1)" if the open happened to fail for some reason or other,
  5739. which is harmless at the moment (just returns -1, errno=EBADF), but would be
  5740. a bit tragic with this new semantics!
  5741. Yes, I know this isn't a problem if everyone always checks the return-value
  5742. from open(), creat(), etc..., but lots of programs aren't that pessimistic!
  5743.  
  5744. -- 
  5745. ----------------------------------
  5746. | Simon Brown                  | UUCP:  seismo!mcvax!ukc!{its63b,cstvax}!simon
  5747. | Department of Computer Science | JANET: simon@uk.ac.ed.{its63b,cstvax}
  5748. | University of Edinburgh,       | ARPA:  simon%{its63b,cstvax}.ed.ac.uk ...
  5749. | Scotland, UK.             |                @cs.ucl.ac.uk
  5750. ----------------------------------     "Life's like that, you know"
  5751.  
  5752. Volume-Number: Volume 11, Number 74
  5753.  
  5754. From jsq  Mon Jun 29 13:26:14 1987
  5755. Posted-Date: 20 Jun 87 19:45:02 GMT
  5756. Received-Date: Mon, 29 Jun 87 13:26:14 CDT
  5757. Received: by sally.utexas.edu (5.54/5.51)
  5758.     id AA11163; Mon, 29 Jun 87 13:26:14 CDT
  5759. From: Guy Harris <guy@Sun.COM>
  5760. Newsgroups: comp.std.unix
  5761. Subject: Re: open file range
  5762. Message-Id: <8357@ut-sally.UUCP>
  5763. Sender: std-unix@ut-sally.UUCP
  5764. Reply-To: guy@Sun.COM (Guy Harris)
  5765. Date: 20 Jun 87 19:45:02 GMT
  5766. Apparently-To: std-unix-archive
  5767.  
  5768. From: guy@Sun.COM (Guy Harris)
  5769.  
  5770. > ...it would mean that things like
  5771. >     fd = open(some-random-filename,something);
  5772. >     do-something-bizarre-with-fd;
  5773. >     close(fd);
  5774. > will do a "close(-1)" if the open happened to fail for some reason or other,
  5775. > which is harmless at the moment (just returns -1, errno=EBADF), but would be
  5776. > a bit tragic with this new semantics!
  5777. > Yes, I know this isn't a problem if everyone always checks the return-value
  5778. > from open(), creat(), etc..., but lots of programs aren't that pessimistic!
  5779.  
  5780. Programs that are not that pessimistic are broken.  I see no reason
  5781. to reject this proposal out of hand merely because it would expose
  5782. bugs in programs such as these; indeed, the fact that it exposes
  5783. these bugs might be an excellent reason to do it - it is very
  5784. aggravating to deal with programs that exhibit this sort of unwarranted
  5785. optimism, as they do not give very good error indications when this
  5786. optimism is unwarranted (if they bother giving one at all!).
  5787.  
  5788.  
  5789. Volume-Number: Volume 11, Number 75
  5790.  
  5791. From jsq  Mon Jun 29 13:34:17 1987
  5792. Posted-Date: 29 Jun 87 18:34:03 GMT
  5793. Received-Date: Mon, 29 Jun 87 13:34:17 CDT
  5794. Received: by sally.utexas.edu (5.54/5.51)
  5795.     id AA11371; Mon, 29 Jun 87 13:34:17 CDT
  5796. From: (Michael <michael%stb.UUCP@sally.utexas.edu>
  5797. Newsgroups: comp.std.unix
  5798. Subject: Re: tar vs. cpio
  5799. Message-Id: <8358@ut-sally.UUCP>
  5800. References: <8188@ut-sally.UUCP> <8208@ut-sally.UUCP> <8249@ut-sally.UUCP> <8276@ut-sally.UUCP>
  5801. Sender: std-unix@ut-sally.UUCP
  5802. Reply-To: michael@stb.UUCP (Michael)
  5803. Organization: STB BBS, La, Ca, USA, 90402, (213) 459-7231
  5804. Date: 29 Jun 87 18:34:03 GMT
  5805. Apparently-To: std-unix-archive
  5806.  
  5807. From: michael@stb.UUCP (Michael)
  5808.  
  5809. Actually, Tar CAN handle links properly, with the present file format.
  5810.  
  5811. There are two types of input to tar (generally): Regular files, which can
  5812. be seek'd to the proper place, and special files which cannot be seek'd.
  5813. They can, however, be close(); open() 'd, which does a rewind on any device
  5814. that I'm familiar with.
  5815. Presto, you've just seeked to the beginning, now you can skip as much as you
  5816. need to get to the file. 
  5817.  
  5818. The only thing this won't work with is pipes; the only thing I can think
  5819. of using pipes with tar are copying directories (in which case selective
  5820. retrieval isn't needed) and compressed archives (you're out of luck).
  5821. -- 
  5822. : Michael Gersten        seismo!scgvaxd!stb!michael
  5823. : Ground floor, comming up -- 1-3-7
  5824.  
  5825. Volume-Number: Volume 11, Number 76
  5826.  
  5827. From jsq  Mon Jun 29 13:44:23 1987
  5828. Posted-Date: 21 Jun 87 21:41:40 GMT
  5829. Received-Date: Mon, 29 Jun 87 13:44:23 CDT
  5830. Received: by sally.utexas.edu (5.54/5.51)
  5831.     id AA11623; Mon, 29 Jun 87 13:44:23 CDT
  5832. From: Cameron Simpson <cameron@elecvax.oz>
  5833. Newsgroups: comp.std.unix
  5834. Subject: Re: tar vs. cpio
  5835. Message-Id: <8359@ut-sally.UUCP>
  5836. Sender: std-unix@ut-sally.UUCP
  5837. Reply-To: cameron@elecvax.oz (Cameron Simpson)
  5838. Date: 21 Jun 87 21:41:40 GMT
  5839. Apparently-To: std-unix-archive
  5840.  
  5841. From: cameron@elecvax.oz (Cameron Simpson)
  5842.  
  5843. >From: ka@hropus.UUCP (Kenneth Almquist)
  5844. >Subject: Re: tar vs. cpio
  5845. >Message-ID: <8276@ut-sally.UUCP>
  5846. >
  5847. >[ example of failure of tar's format ]
  5848. >
  5849. >So it seems to me that tar cannot be made to handle links correctly
  5850. >unless the tar archive format is changed.  The cpio format, on the other
  5851. >hand, allows links to be handled correctly.  The fact that cpio includes
  5852. >inode numbers is not all that major a problem for non-UNIX based systems.
  5853. >Since the only thing the inode numbers are used for is resolving links,
  5854. >a system which does not support (non-symbolic) links can leave garbage
  5855. >in the inode field when writing tapes.  A system which does have links
  5856. >but does not have inode numbers can use a sequence number in place of
  5857. >the inode number.
  5858.  
  5859. Please, monotonic garbage! Imagine extracting such a tape on a system
  5860. which *does* support (non-symbolic) links. I can easily envisage an
  5861. implementation which simply did not initialise the garbage, and wrote
  5862. said garbage the same for each file. On extraction you'd end up with a
  5863. single file with LOTS of links!-)
  5864.     - Cameron Simpson
  5865.  
  5866. ACSnet:    cameron@elecvax.eecs.unsw.oz    JANET: elecvax.eecs.unsw.oz!cameron@ukc
  5867. CSNET:    cameron@elecvax.oz        BITNET:    cameron%elecvax.oz@CSNET-RELAY
  5868. ARPA:    cameron%elecvax.eecs.unsw.oz@seismo.css.gov
  5869. UUCP:    ...!seismo!munnari!elecvax.eecs.unsw.oz!cameron
  5870.      or    munnari!elecvax.eecs.unsw.oz!cameron@seismo.css.gov
  5871.  
  5872.  
  5873. Volume-Number: Volume 11, Number 77
  5874.  
  5875. From jsq  Mon Jun 29 13:50:30 1987
  5876. Posted-Date: 23 Jun 87 18:32:18 GMT
  5877. Received-Date: Mon, 29 Jun 87 13:50:30 CDT
  5878. Received: by sally.utexas.edu (5.54/5.51)
  5879.     id AA11717; Mon, 29 Jun 87 13:50:30 CDT
  5880. From: Marc W. Mengel <mwm@cuuxb.att.com>
  5881. Newsgroups: comp.std.unix
  5882. Subject: Re: tar vs. cpio
  5883. Message-Id: <8360@ut-sally.UUCP>
  5884. References: <8188@ut-sally.UUCP> <8208@ut-sally.UUCP> <8249@ut-sally.UUCP> <8276@ut-sally.UUCP>
  5885. Sender: std-unix@ut-sally.UUCP
  5886. Reply-To: moss!cuuxb!mwm@RUTGERS.EDU (Marc W. Mengel)
  5887. Organization: AT&T-DSD, Software Support, Lisle IL
  5888. Date: 23 Jun 87 18:32:18 GMT
  5889. Apparently-To: std-unix-archive
  5890.  
  5891. From: mwm@cuuxb.att.com (Marc W. Mengel)
  5892.  
  5893. In article <8276@ut-sally.UUCP> ka@hropus.UUCP (Kenneth Almquist) writes:
  5894. :Several people have suggested that tar's method of handling links is
  5895. :better than cpio's.  After looking at the tar format, I wondered how
  5896. :tar could possibly handle links correctly.   A quick experiment showed
  5897. :that it doesn't.  Try the following:
  5898. :
  5899. :    > file1
  5900. :    ln file1 file2
  5901. :    tar -cf archive file1 file2
  5902. :    rm file1 file2
  5903. :    tar -xf archive file2
  5904. :
  5905. :The second tar command will fail because tar will simply try to create
  5906. :a link from file1 to file2, but since I only requested that file2 be
  5907. :extracted file1 does not exist.
  5908. :
  5909. :I claim that this is a bug in the tar archive format rather than just
  5910. :the tar program.  Consider what tar must do to function correctly.  Tar
  5911. :could remember the location of file1 and lseek to it in this particular
  5912. :example, but in general the input to tar is not a regular file and thus
  5913. :may not be seekable.  
  5914. :                Kenneth Almquist
  5915.  
  5916. Actually this is easily solved using the current format, you need merely
  5917. ensure that when a file has multiple links, that the file's data is put
  5918. on the archive only the last time that it is referenced.  This guarantees
  5919. that the location of file1 in your example is always further along the
  5920. archive than file2, and therefore no "rewinding" is ever needed to find 
  5921. the file after discovering that a link to it has been requested.  This 
  5922. does require the program to make two traversals over the directory tree 
  5923. ( 1 to determine where the last reference to each file in the subtree 
  5924. occurs, 1 to actually write out the files), but the format itself is *not*
  5925. inherently broken.
  5926.  
  5927. -- 
  5928.  Marc Mengel
  5929.  ...!{moss|lll-crg|mtune|ihnp4}!cuuxb!mwm
  5930.  
  5931. Volume-Number: Volume 11, Number 78
  5932.  
  5933. From jsq  Mon Jun 29 13:58:39 1987
  5934. Posted-Date: 24 Jun 87 00:56:16 GMT
  5935. Received-Date: Mon, 29 Jun 87 13:58:39 CDT
  5936. Received: by sally.utexas.edu (5.54/5.51)
  5937.     id AA11891; Mon, 29 Jun 87 13:58:39 CDT
  5938. From: Henry Spencer <henry%utzoo.UUCP@sally.utexas.edu>
  5939. Newsgroups: comp.std.unix
  5940. Subject: Re: tar vs. cpio
  5941. Summary: Cpio format makes correct handling of links impossible, too.
  5942. Message-Id: <8362@ut-sally.UUCP>
  5943. References: <8188@ut-sally.UUCP> <8208@ut-sally.UUCP> <8249@ut-sally.UUCP>, <8276@ut-sally.UUCP>
  5944. Sender: std-unix@ut-sally.UUCP
  5945. Reply-To: henry@utzoo.UUCP (Henry Spencer)
  5946. Date: 24 Jun 87 00:56:16 GMT
  5947. Apparently-To: std-unix-archive
  5948.  
  5949. From: henry@utzoo.UUCP (Henry Spencer)
  5950.  
  5951. As a counterpoint to Kenneth Almquist's example of tar fouling up links,
  5952. try the following:
  5953.  
  5954.     echo hi >one
  5955.     ln one two
  5956.     ls one two | cpio -o >/tmp/foo
  5957.     rm one two
  5958.     cpio -i one </tmp/foo
  5959.     cpio -i two </tmp/foo
  5960.  
  5961. Now we have cpio creating two files where there was supposed to be only one
  5962. with two links.  Note that tar would get this one right!  (Although you would
  5963. have to be careful to get the order right, admittedly a wart.)
  5964.  
  5965. The moral of the story is that it is very hard to handle links properly in
  5966. a format like tar or cpio, and *neither* of the existing formats is bullet-
  5967. proof in the presence of links.  This is not a valid argument for or against
  5968. either format; they merely screw up in different ways.  One can argue about
  5969. the relative probabilities of the different screwup types causing trouble,
  5970. but I think the point is made.
  5971.  
  5972.                 Henry Spencer @ U of Toronto Zoology
  5973.                 {allegra,ihnp4,decvax,pyramid}!utzoo!henry
  5974.  
  5975. Volume-Number: Volume 11, Number 79
  5976.  
  5977. From jsq  Mon Jun 29 14:06:49 1987
  5978. Posted-Date: 24 Jun 87 00:56:19 GMT
  5979. Received-Date: Mon, 29 Jun 87 14:06:49 CDT
  5980. Received: by sally.utexas.edu (5.54/5.51)
  5981.     id AA12145; Mon, 29 Jun 87 14:06:49 CDT
  5982. From: Henry Spencer <henry%utzoo.UUCP@sally.utexas.edu>
  5983. Newsgroups: comp.std.unix
  5984. Subject: Re: tar vs. cpio
  5985. Message-Id: <8363@ut-sally.UUCP>
  5986. References: <8188@ut-sally.UUCP> <8208@ut-sally.UUCP> <8249@ut-sally.UUCP>, <8276@ut-sally.UUCP>
  5987. Sender: std-unix@ut-sally.UUCP
  5988. Reply-To: henry@utzoo.UUCP (Henry Spencer)
  5989. Date: 24 Jun 87 00:56:19 GMT
  5990. Apparently-To: std-unix-archive
  5991.  
  5992. From: henry@utzoo.UUCP (Henry Spencer)
  5993.  
  5994. > ... A system which does have links
  5995. > but does not have inode numbers can use a sequence number in place of
  5996. > the inode number.
  5997.  
  5998. Suppose it wants to use a sequence number that is bigger than 16/18 (16
  5999. for binary cpio format, 18 for ASCII cpio format) bits?  For that matter,
  6000. what if *inode* numbers are bigger than that?  This argument would be a
  6001. whole lot stronger if the cpio formats (note plural) left more room for
  6002. this particular magic cookie.
  6003.  
  6004. > I wonder if there is still any chance of a new interchange format that
  6005. > corrected the deficiencies of both cpio and tar being accepted as the
  6006. > standard...
  6007.  
  6008. Not unless there were truly overwhelming technical reasons for picking it.
  6009. Even the cpio formats, scummy though they are, are readily readable without
  6010. new software at a great many existing sites.  The same is true of tar on an
  6011. even larger scale.  A new format would start from zero... not an attractive
  6012. proposition.  I would also observe that we don't *want* the sort of format
  6013. that a standards committee would invent -- have you studied, say, X.400
  6014. lately?  Better to pick the best of existing practice and standardize that,
  6015. possibly with minor changes.  That is what standards committees are really
  6016. supposed to do.
  6017.  
  6018.                 Henry Spencer @ U of Toronto Zoology
  6019.                 {allegra,ihnp4,decvax,pyramid}!utzoo!henry
  6020.  
  6021. Volume-Number: Volume 11, Number 80
  6022.  
  6023. From jsq  Mon Jun 29 14:14:16 1987
  6024. Posted-Date: 24 Jun 87 22:50:26 GMT
  6025. Received-Date: Mon, 29 Jun 87 14:14:16 CDT
  6026. Received: by sally.utexas.edu (5.54/5.51)
  6027.     id AA12355; Mon, 29 Jun 87 14:14:16 CDT
  6028. From: Andrew Klossner <andrew@lemming.gwd.tek.com>
  6029. Newsgroups: comp.std.unix
  6030. Subject: Re: Replacement for signals in POSIX?
  6031. Message-Id: <8364@ut-sally.UUCP>
  6032. References: <8300@ut-sally.UUCP>
  6033. Sender: std-unix@ut-sally.UUCP
  6034. Reply-To: andrew@lemming.gwd.tek.com (Andrew Klossner)
  6035. Organization: Tektronix, Wilsonville, Oregon
  6036. Date: 24 Jun 87 22:50:26 GMT
  6037. Apparently-To: std-unix-archive
  6038.  
  6039. From: andrew@lemming.gwd.tek.com (Andrew Klossner)
  6040.  
  6041.     "My question is, has the POSIX group discussed any alternatives
  6042.     to the signal facility?"
  6043.  
  6044. The answer is no.  The charter of a standards group is to codify
  6045. existing practice, not to invent something new.  All too often this
  6046. charter is violated, to the detriment of the community.
  6047.  
  6048. [ Unfortunately, it's not always easy to stay on one side of the line.
  6049. The signal facilities in POSIX at the moment are not quite like those
  6050. in any existing system, i.e., they are to some extent an invention.
  6051. This was necessary in order to produce something that was implementable
  6052. in the context of the various existing systems.  -mod ]
  6053.  
  6054.   -=- Andrew Klossner   (decvax!tektronix!tekecs!andrew)       [UUCP]
  6055.                         (andrew%tekecs.tek.com@relay.cs.net)   [ARPA]
  6056.  
  6057. Volume-Number: Volume 11, Number 81
  6058.  
  6059. From root  Tue Jun 30 22:49:54 1987
  6060. Received: by uunet.UU.NET (5.54/1.14) 
  6061.     id AA05749; Tue, 30 Jun 87 22:49:54 EDT
  6062. From: Jim McGinness <jmcg@decvax.dec.com>
  6063. Newsgroups: comp.std.unix
  6064. Subject: POSIX Portability Workshop
  6065. Keywords: POSIX, USENIX, Portability
  6066. Message-Id: <8380@ut-sally.UUCP>
  6067. Sender: ut-sally!std-unix
  6068. Reply-To: jmcg@decvax.dec.com (Jim McGinness)
  6069. Date: 1 Jul 87 01:10:34 GMT
  6070. Apparently-To: std-unix-archive
  6071.  
  6072.  
  6073.                          Call for Papers
  6074.                    POSIX Portability Workshop
  6075.                     Berkeley Marina Marriott
  6076.                        October 15-16, 1987
  6077.  
  6078. This USENIX workshop will bring together system  and  application
  6079. implementors  faced  with  the  problems, "challenges," and other
  6080. considerations that arise from attempting to make their  products
  6081. compliant  with  IEEE Std 1003.1.  The first day of the  workshop
  6082. will consist of presentations of brief position papers describing
  6083. experiences,  dilemmas,  and  solutions.  On the second day it is
  6084. planned to form smaller focus  groups  to  brainstorm  additional
  6085. solutions,  dig  deeper into specific areas, and attempt to forge
  6086. common approaches to some of the dilemmas.  Suggestions for topic
  6087. areas and position papers include:
  6088.  
  6089. C Language Issues               Internationalization
  6090. Networked/Distributed Implementations   Pipes and FIFOs
  6091. Timer resolution, ranges        Signals
  6092. Conformance verification        Security concerns
  6093. Job control, process groups     Limits: documentation and inquiry
  6094. Implications for user interfaces Implications for commands
  6095.  
  6096. Position papers must be submitted by August 15, 1987 to:
  6097.  
  6098.                           Jim McGinness
  6099.                   Digital Equipment Corporation
  6100.                 Continental Boulevard MK02-1/HIO
  6101.                        Merrimack, NH 03054
  6102.                          (603) 884-5703
  6103.                            decvax!jmcg
  6104.                        jmcg@decvax.DEC.COM
  6105.  
  6106. For registration or hotel information, contact:
  6107. Judith F. DesHarnais
  6108. USENIX Conference Coordinator
  6109. PO Box 385
  6110. Sunset Beach, CA 90742
  6111. (213) 592-3243
  6112. usenix!judy
  6113.  
  6114. Volume-Number: Volume 11, Number 82
  6115.  
  6116. From jsq  Thu Jul  2 00:01:15 1987
  6117. Received: by uunet.UU.NET (5.54/1.14) 
  6118.     id AA05723; Thu, 2 Jul 87 00:01:15 EDT
  6119. From: Andrew Klossner <andrew@lemming.gwd.tek.com>
  6120. Newsgroups: comp.std.unix
  6121. Subject: Killing programs that close(-1)
  6122. Message-Id: <526@uunet.UU.NET>
  6123. References: <8357@ut-sally.UUCP>
  6124. Sender: std-unix@uunet.UU.NET
  6125. Reply-To: andrew@lemming.gwd.tek.com (Andrew Klossner)
  6126. Organization: Tektronix, Wilsonville, Oregon
  6127. Date: 30 Jun 87 14:58:36 GMT
  6128. Apparently-To: std-unix-archive
  6129.  
  6130. From: andrew@lemming.gwd.tek.com (Andrew Klossner)
  6131.  
  6132. [With regard to programs that inadvertantly do close(-1):]
  6133.  
  6134.     "Programs that are not that pessimistic are broken.  I see no
  6135.     reason to reject this proposal out of hand merely because it
  6136.     would expose bugs in programs such as these ..."
  6137.  
  6138. One of the major goals of a standardization effort is to "do no harm":
  6139. not to invalidate facilities which are commonly available and upon
  6140. which many programs may depend (even if such dependence is
  6141. inadvertant).  The requested facility, to close all open files, could
  6142. just as easily be implemented with a new function, e.g., "closeall()".
  6143. There is no reason to go out of our way to overload an existing
  6144. function, one whose semantics have been fixed for over a decade.
  6145.  
  6146. A much more extreme example of this philosophy appears when Unix
  6147. vendors go out of their way to place zeros at location 0, so that
  6148. programs developed on VAXes which "expect" to find 0 when dereferencing
  6149. a 0 pointer will work.  No, I'm not suggesting that POSIX or X3J11
  6150. mandate this, but vendors such as my employer do this for marketability
  6151. reasons.  Imagine that a potential customer has one of my workstations
  6152. and one of yours; on yours their VAX application compiles and runs just
  6153. fine, while on mine it crashes with "bus error".  No amount of my
  6154. explaining that their program shouldn't dereference a null pointer is
  6155. going to get me the sale unless my machine stands out in other ways.
  6156.  
  6157.   -=- Andrew Klossner   (decvax!tektronix!tekecs!andrew)       [UUCP]
  6158.                         (andrew%tekecs.tek.com@relay.cs.net)   [ARPA]
  6159.  
  6160. Volume-Number: Volume 11, Number 83
  6161.  
  6162. From root  Thu Jul  2 21:25:20 1987
  6163. Received: by uunet.UU.NET (5.54/1.14) 
  6164.     id AA04028; Thu, 2 Jul 87 21:25:20 EDT
  6165. From: Doug Gwyn  <gwyn@brl-smoke.arpa>
  6166. Newsgroups: comp.std.unix
  6167. Subject: Re: UNIX Facilities for Interpreters
  6168. Message-Id: <8393@ut-sally.UUCP>
  6169. References: <8250@ut-sally.UUCP> <8281@ut-sally.UUCP>
  6170. Sender: ut-sally!std-unix
  6171. Reply-To: gwyn@brl.arpa (Doug Gwyn)
  6172. Organization: Ballistic Research Lab (BRL), APG, MD.
  6173. Date: 19 Jun 87 01:26:25 GMT
  6174. Apparently-To: std-unix-archive
  6175.  
  6176. From: gwyn@brl-smoke.arpa (Doug Gwyn )
  6177.  
  6178. In article <8281@ut-sally.UUCP> ima!johnl@harvard.harvard.edu (John R. Levine) writes:
  6179. >    pointer = filemap(fd);
  6180.  
  6181. Hey, I really like this.  I can even see how to implement it on a mickey-mouse
  6182. (non-paged) architecture, and how to fake the facility (always return NULL).
  6183. This is a whole lot better than vread() and kin.
  6184.  
  6185. Volume-Number: Volume 11, Number 84
  6186.  
  6187. From root  Thu Jul  2 21:32:27 1987
  6188. Received: by uunet.UU.NET (5.54/1.14) 
  6189.     id AA04054; Thu, 2 Jul 87 21:32:27 EDT
  6190. From: Chuck Howell <howell%community-chest.mitre.org@gateway.mitre.org>
  6191. Newsgroups: comp.std.unix
  6192. Subject: Widely used tools on various hosts
  6193. Message-Id: <8394@ut-sally.UUCP>
  6194. Sender: ut-sally!std-unix
  6195. Reply-To: howell%community-chest.mitre.org@gateway.mitre.org
  6196. Date: 1 Jul 87 15:38:49 GMT
  6197. Apparently-To: std-unix-archive
  6198.  
  6199. From: howell%community-chest.mitre.org@gateway.mitre.org (Chuck Howell)
  6200. To: info-unix@brl.arpa, info-ada@ada20.isi.edu, amethyst-users@simtel20.arpa,
  6201.         editor-people@score.stanford.edu, info-amiga@red.rutgers.edu,
  6202.         info-apple@brl.arpa, info-dec-micro@score.stanford.arpa,
  6203.         info-ibmpc@usc-isib.arpa, info-vax@sri-kl.arpa,
  6204.         opsys%ucf1vm.bitnet@wiscvm.wisc.edu, soft-eng@xx.lcs.mit.edu,
  6205.         std-unix@sally.utexas.edu, unix-emacs@bbncc5.arpa
  6206.  
  6207. I am interested in information on widely used tools that are
  6208. available on a variety of hosts.  For example, EMACS-based editors
  6209. are available for a wide range of UNIX hosts, for micros running
  6210. MS/DOS, and I believe for VAX VMS.  Scribe is also available for
  6211. several different operating systems.  What other machines/OSes does
  6212. Scribe or EMACS run on?  What are other examples of tools that run on
  6213. various operating systems?  I imagine there are a number of examples
  6214. from the microcomputer world (e.g. Lotus on a variety of OSes).
  6215. I'm interested in a wide definition of "tools"; for example, I
  6216. would consider the availability of TCP/IP on UNIX and VMS, or the
  6217. availability of NFS on UNIX and PCs, to be good examples.
  6218.  
  6219. Please send to me; I'm not on all of the lists I've mailed to.
  6220. I'll summarize all responses received by 10 July and redistribute 
  6221. to all mailing lists.
  6222.  
  6223. Thanks,
  6224.  
  6225. Chuck Howell
  6226. ARPA: howell@mwultrix.arpa or
  6227.     howell%community-chest.mitre.org@gateway.mitre.org
  6228.  
  6229. Volume-Number: Volume 11, Number 85
  6230.  
  6231. From root  Fri Jul  3 22:13:55 1987
  6232. Received: by uunet.UU.NET (5.54/1.14) 
  6233.     id AA13578; Fri, 3 Jul 87 22:13:55 EDT
  6234. From: David Zink <bunker!zink@seismo.CSS.GOV>
  6235. Newsgroups: comp.std.unix
  6236. Subject: Re: tar vs. cpio
  6237. Message-Id: <8409@ut-sally.UUCP>
  6238. References: <8188@ut-sally.UUCP> <8208@ut-sally.UUCP> <8249@ut-sally.UUCP> <8276@ut-sally.UUCP> <8362@ut-sally.UUCP>
  6239. Sender: ut-sally!std-unix
  6240. Reply-To: harvard!husc6!bunker!zink@seismo.CSS.GOV (David Zink)
  6241. Organization: Bunker Ramo an Olivetti Company, Shelton CT
  6242. Date: 3 Jul 87 21:00:04 GMT
  6243. Apparently-To: std-unix-archive
  6244.  
  6245. From: harvard!husc6!bunker!zink@seismo.CSS.GOV (David Zink)
  6246.  
  6247. In article <8362@ut-sally.UUCP> henry@utzoo.UUCP (Henry Spencer) writes:
  6248. )From: henry@utzoo.UUCP (Henry Spencer)
  6249. )
  6250. )As a counterpoint to Kenneth Almquist's example of tar fouling up links,
  6251. )try the following:
  6252. )
  6253. )    echo hi >one
  6254. )    ln one two
  6255. )    ls one two | cpio -o >/tmp/foo
  6256. )    rm one two
  6257. )    cpio -i one </tmp/foo
  6258. )    cpio -i two </tmp/foo
  6259. )
  6260. )Now we have cpio creating two files where there was supposed to be only one
  6261. )with two links.  Note that tar would get this one right!  (Although you would
  6262. )have to be careful to get the order right, admittedly a wart.)
  6263.  
  6264. Actually This should always create TWO FILES! Unless you want to go to
  6265. the effort of proving that one has not been modified when two is removed.
  6266. We're seeing two separate invocations of cpio with no knowledge of each
  6267. other -- How could it be correct to link them ??
  6268. :g/^>/s//;-)/
  6269.  
  6270. [ Um, haven't we about beat this subsubject to death?  - mod ]
  6271.  
  6272. Volume-Number: Volume 11, Number 86
  6273.  
  6274. From root  Fri Jul  3 22:16:41 1987
  6275. Received: by uunet.UU.NET (5.54/1.14) 
  6276.     id AA13732; Fri, 3 Jul 87 22:16:41 EDT
  6277. From: Dominic Dunlop <domo@seismo.UUCP@sphinx.co.uk>
  6278. Newsgroups: comp.std.unix
  6279. Subject: Re: a new? topic - dynamic loading
  6280. Message-Id: <8410@ut-sally.UUCP>
  6281. References: <166@sas.UUCP>
  6282. Sender: ut-sally!std-unix
  6283. Reply-To: domo@seismo.UUCP@sphinx.co.uk (Dominic Dunlop)
  6284. Organization: Sphinx Ltd., Maidenhead, England
  6285. Date: 1 Jul 87 19:28:46 GMT
  6286. Apparently-To: std-unix-archive
  6287.  
  6288. From: mcvax!sphinx.co.uk!domo@seismo.UUCP (Dominic Dunlop)
  6289.  
  6290. Nice to see SAS on the net -- although your sales people play coy about if
  6291. and when a UNIX implementation might see the light of day  (no, I'm not
  6292. asking you to comment...)
  6293.  
  6294. In article <166@sas.UUCP> you write:
  6295. >Is there any effort in the standards efforts to provide kernel (or CRT lib.)
  6296. >support for this [dynamic loading/execution from data space]?
  6297.  
  6298. No.  To my knowledge it hasn't come up at all on POSIX (although I didn't
  6299. attend last week's meeting in Seattle).  Not least of the problems is that
  6300.  
  6301.  1.  The classic BSD implemenataion depends on a highly machine-dependent
  6302.      aspect of VAX memory management.
  6303.  
  6304.  2.  Quite a few people (and I'd probably number myself among them)
  6305.      consider this aspect of VAX memory management to be brain-damaged, or
  6306.      at least to be something which could be done better by throwing a few
  6307.      more gates at the problem (gates weren't so cheap or fast in 1978).
  6308.  
  6309.  3.  Later memory management implementations may well specifically
  6310.      exclude ``doing things the VAX way'' because it is judged to be
  6311.      unclean and/or unsafe.  Certainly, many 68x00 implementations don't
  6312.      allow execution out of data space, and don't provide a kernel call
  6313.      which (in effect) allows programs to move the boundary between text
  6314.      and data.
  6315.  
  6316. Consequently, any attempt to introduce the topic to POSIX would be
  6317. controversial, and POSIX does not need controversy if a standard is to be
  6318. ratified on schedule!
  6319.  
  6320. To put it another way, this is a political issue...  However, if you were
  6321. to make a more or less formal proposal by mailing John Quarterman,
  6322. moderator of comp.std.unix (std-unix@ut-sally) you could flag a valid
  6323. technical issue as open, and might even get a formal reply from the working
  6324. group.
  6325.  
  6326. If you want to rope in somebody with heavy-duty experience of this issue,
  6327. Catalytix Corp. of Cambridge MA (phone 617 429 2160 -- I don't have a net
  6328. address) have had to fight it in bringing up their Safe-C interpreter in
  6329. a variety of UN*X and other environments.  (Safe-C is worth checking out
  6330. if you're a developer, anyway.)
  6331.  
  6332. The usual disclaimer: I don't speak for IEEE working group 1003.1 -- almost
  6333. nobody can (in fact, the IEEE carries professional liability insurance
  6334. just in case anybody wants to brief their lawyer to argue about it).  These
  6335. opinions are strictly my own.
  6336.  
  6337. [ The quickest way to make a proposal to IEEE P1003.1 (the POSIX committee)
  6338. is to mail a paper copy to
  6339.  
  6340.     Secretary, IEEE Standards Board
  6341.     Attention: P1003 Working Group
  6342.     345 East 47th St.
  6343.     New York, NY 10017
  6344.  
  6345. Formal notes to the committee have to go there, anyway, or be carried to
  6346. a Working Group meeting.  Feel free to submit a copy to comp.std.unix
  6347. if you want to.
  6348.  
  6349. As decided at the Seattle meeting (22-26 June 1987),
  6350. all proposed changes to the P1003.1 draft standard must be
  6351. in the form of balloting objections, i.e., actual proposed
  6352. wording for the standard with attached rationale is required.
  6353.  
  6354. You can still send in general comments, though.  Also, your note
  6355. might get redirected to another subcommittee which is more
  6356. directly addressing related issues.  Offhand, I don't know
  6357. which one that might be: perhaps one of the /usr/group
  6358. Technical Committees.
  6359.  
  6360. I play several roles related to POSIX, and they frequently get confused:
  6361. a) Moderator of comp.std.unix.
  6362. b) Institutional Representative from USENIX to IEEE P1003.
  6363. c) Member of the USENIX Board of Directors.
  6364. d) Private contractor for the P1003.1 Rationale, funded by /usr/group.
  6365.  
  6366. a) is largely a result of b), and c) is useful in doing b).
  6367. d) is completely unrelated to the other three, and is finished.
  6368.  
  6369. I can and sometimes do submit notes to P1003 as the USENIX
  6370. Institutional Representative (e.g., the tar vs. cpio note).
  6371. It's one of my functions in that role to gather information
  6372. from the USENIX membership and the public and also to distribute
  6373. information about POSIX and other standards.  So, I could submit
  6374. a note for you.  It will just get there faster if you do it yourself....
  6375.  
  6376. Dominic's disclaimer about speaking for IEEE or P1003 also
  6377. applies to me, of course.
  6378.  
  6379. -mod ]
  6380.  
  6381. Dominic Dunlop, Sphinx Ltd.    UKnet:    domo@sphinx.co.uk
  6382.  
  6383. Volume-Number: Volume 11, Number 87
  6384.  
  6385. From usenet  Wed Jul  8 11:48:38 1987
  6386. Received: by uunet.UU.NET (5.54/1.14) 
  6387.     id AA00504; Wed, 8 Jul 87 11:48:38 EDT
  6388. From: Jim McGinness <jmcg@decvax.dec.com>
  6389. Newsgroups: comp.std.unix
  6390. Subject: POSIX Portability Workshop
  6391. Keywords: POSIX, USENIX, Portability
  6392. Message-Id: <8439@ut-sally.UUCP>
  6393. Sender: ut-sally!std-unix
  6394. Reply-To: jmcg@decvax.dec.com (Jim McGinness)
  6395. Date: 1 Jul 87 01:10:34 GMT
  6396. Apparently-To: std-unix-archive
  6397.  
  6398. From: jmcg@decvax.dec.com (Jim McGinness)
  6399.  
  6400. [ The dates were wrong, due to an error on my part.  -mod ]
  6401.  
  6402.                          Call for Papers
  6403.                    POSIX Portability Workshop
  6404.                     Berkeley Marina Marriott
  6405.                        October 22-23, 1987
  6406.  
  6407. This USENIX workshop will bring together system  and  application
  6408. implementors  faced  with  the  problems, "challenges," and other
  6409. considerations that arise from attempting to make their  products
  6410. compliant with IEEE Standard 1003.  The first day of the workshop
  6411. will consist of presentations of brief position papers describing
  6412. experiences,  dilemmas,  and  solutions.  On the second day it is
  6413. planned to form smaller focus  groups  to  brainstorm  additional
  6414. solutions,  dig  deeper into specific areas, and attempt to forge
  6415. common approaches to some of the dilemmas.  Suggestions for topic
  6416. areas and position papers include:
  6417.  
  6418. C Language Issues                       Internationalization
  6419. Networked/Distributed Implementations   Pipes and FIFOs
  6420. Timer resolution, ranges                Signals
  6421. Conformance verification                Security concerns
  6422. Job control, process groups             Limits: documentation and inquiry
  6423. Implications for user interfaces        Implications for commands
  6424.  
  6425. Position papers must be submitted by August 15, 1987 to:
  6426.  
  6427.                           Jim McGinness
  6428.                   Digital Equipment Corporation
  6429.                 Continental Boulevard MK02-1/HIO
  6430.                        Merrimack, NH 03054
  6431.                          (603) 884-5703
  6432.                            decvax!jmcg
  6433.                        jmcg@decvax.DEC.COM
  6434.  
  6435. For registration or hotel information, contact:
  6436.  
  6437. Judith F. DesHarnais
  6438. USENIX Conference Coordinator
  6439. PO Box 385
  6440. Sunset Beach, CA 90742
  6441. (213) 592-3243
  6442. usenix!judy
  6443.  
  6444. Volume-Number: Volume 11, Number 88
  6445.  
  6446. From usenet  Wed Jul  8 11:52:19 1987
  6447. Received: by uunet.UU.NET (5.54/1.14) 
  6448.     id AA00526; Wed, 8 Jul 87 11:52:19 EDT
  6449. From: Kenneth Almquist <gatech!opus!ka>
  6450. Newsgroups: comp.std.unix
  6451. Subject: Re: tar vs. cpio
  6452. Message-Id: <8440@ut-sally.UUCP>
  6453. Sender: ut-sally!std-unix
  6454. Reply-To: gatech!opus!ka (Kenneth Almquist)
  6455. Date: 5 Jul 87 00:49:11 GMT
  6456. Apparently-To: std-unix-archive
  6457.  
  6458. From: ka@gatech.UUCP@opus.uucp (Kenneth Almquist)
  6459.  
  6460. OK, here is a simple, backward compatible fix to the tar format.  When
  6461. tar encounters a file name which is a link to a file that it previously
  6462. dumped, it should first write out a header for the file indicating that
  6463. it is a link to a previously dumped file.  It should then write out
  6464. another header for the file, this time without linkflag set, and follow
  6465. this header with the contents of the file.  This way, if the first link
  6466. to a file is not dumped, its contents will be available later when
  6467. subsequent links are dumped.
  6468.  
  6469. This is backward compatible because an old version of tar would make the
  6470. link when it read the first header, and then dump the contents of the
  6471. file when it read the second header.  Dumping the contents of the file
  6472. does no harm because is will not modify the contents of the file.  Of
  6473. course, new implementations of tar might want to recognize this situation
  6474. and avoid dumping the contents of the file, but only for reasons of
  6475. efficiency.
  6476.  
  6477. I noted Marc Mengel's suggestion that tar write out the contents of a file
  6478. when the last link to a file is encountered, rather than the first.  This
  6479. would be nice, but I don't see how it could be done in a way that is
  6480. backward compatible with the current tar format.  I also read Michael
  6481. Gersten's article suggesting that tar could rewind raw magnetic tapes by
  6482. closing them and openning them again.  This proposal doesn't deal with
  6483. the question of how cpio could be made to use the tar format, since cpio
  6484. reads from its standard input, which it has no way of closing and openning
  6485. again, and it also ignores the case where tar is reading from a pipe
  6486. because the tape drive is not on the same machine that tar is running on.
  6487. So I feel that the above change to the tar format is necessary.
  6488.  
  6489. The remaining problem with the tar format is the limit on the file name
  6490. size.  If memory serves, cpio originally limited file names to 127 char-
  6491. acters, and this was recognized as inadequate and increased to 255 char-
  6492. acters.  The current maximum file name in tar is 99 characters.
  6493.  
  6494. However, the maximum file name supported by tar can be increased while
  6495. still allowing files whose names are not more than 99 characters long to
  6496. be read by existing implementations.  I will suggest one possibility here.
  6497. Increase the size of the linkname field to 200 characters.  Since this
  6498. field is at the end of the header structure, this will not alter the
  6499. location of any of the other fields.  Place a 100 character name exten-
  6500. tion field after the linkname field.  If the file name field does not
  6501. contain a nul terminator, the remainder of the file name is assumed to
  6502. be in the file name extention field.  This scheme allows file names of
  6503. up to 199 characters to represented, which comes close to the 255
  6504. character limit of the current cpio implimentation.  It leaves 55 bytes
  6505. of the header free for future expansion.
  6506.  
  6507. These changes to the tar format would make it possible to write a program
  6508. which used the tar format, but otherwise behaved exactly like cpio except
  6509. for a slight decrease in the maximum file name length.
  6510.  
  6511. I still don't like it, mind you.  I receive a lot more programs over the
  6512. net than I do via tape, and here tar fails miserably because it has nul
  6513. characters in the header which news and mail programs cannot handle.  It
  6514. is hard to get excited over a standard that fails to handle the most
  6515. common case (or more accurately, what is the most common case for me).
  6516. But I agree with Henry Spencer's statement that the role of standards
  6517. committees should be to standardize existing practice, with at most minor
  6518. changes.  So we should either forget about developing a standard now, or
  6519. standardize on the most widely available format (which is tar) after fixing
  6520. the major problems with it.  I could go for either approach.
  6521.                 Kenneth Almquist
  6522.  
  6523. P.S.  A lot of nonsense has appeared in this group about the supposed
  6524.       deficiencies of cpio, which I won't rebut since I don't support
  6525.       using the cpio format as a standard.  Just please take it all with
  6526.       a grain of salt.
  6527.  
  6528. [ I'd rather have details than innuendo, thanks.  -mod ]
  6529.  
  6530. Volume-Number: Volume 11, Number 89
  6531.  
  6532. From jsq  Wed Jul 15 00:19:37 1987
  6533. Received: by uunet.UU.NET (5.54/1.14) 
  6534.     id AA10594; Wed, 15 Jul 87 00:19:37 EDT
  6535. From: Marc W. Mengel <cuuxb!mmengel>
  6536. Newsgroups: comp.std.unix
  6537. Subject: Re: tar vs. cpio
  6538. Message-Id: <637@uunet.UU.NET>
  6539. References: <8440@ut-sally.UUCP>
  6540. Sender: std-unix@uunet.UU.NET
  6541. Reply-To: cuuxb!mmengel (Marc W. Mengel)
  6542. Organization: AT&T-DSD, System Engineering for Resellers, Lisle IL
  6543. Date: 13 Jul 87 18:30:17 GMT
  6544. Apparently-To: std-unix-archive
  6545.  
  6546. From: mmengel@cuuxb.uucp (Marc W. Mengel)
  6547.  
  6548. In article <8440@ut-sally.UUCP>;
  6549. >I noted Marc Mengel's suggestion that tar write out the contents of a file
  6550. >when the last link to a file is encountered, rather than the first.  This
  6551. >would be nice, but I don't see how it could be done in a way that is
  6552. >backward compatible with the current tar format.  
  6553.  
  6554.  
  6555. Maybe I was too brief in my attempt at describing it... What you do
  6556. is make two recursive descents of the directory tree.  
  6557.  
  6558. In the first recursive descent, you generate a table that looks like
  6559.  
  6560.     file id #    last place seen in recursive descent
  6561.     123        foo/bar/baz
  6562.     333        foo/baz/bleem
  6563. ...
  6564.  
  6565. Each time you encounter a file in the recursive descent you either add it
  6566. to the list, if its file id # isn't there, or replace its pathname in 
  6567. the second half of the table.
  6568.  
  6569. In the second recursive descent, you look up each file you see in the table,
  6570. (by file id #) and if its path-from-the-table matches the current path,
  6571. you write out the file on the archive, otherwise you mark the current 
  6572. path as a link to path-from-the-table in the archive.
  6573.  
  6574. Since our two recursive descents of the file tree should be identical, we
  6575. should always have only the last reference to a given file with data, and
  6576. all earlier references to that file listed as links to the one later on
  6577. the archive.
  6578.  
  6579. (Of course we only need to put files in the table that have multiple
  6580. links...)
  6581.  
  6582. So I am asking that a notation be put in the tar archive format for a
  6583. link to another file in the archive, along with the requirement that 
  6584. link-to-file-"foo" nodes in the archive must always precede file-"foo"
  6585. nodes.
  6586.  
  6587.  
  6588. [ If you want to make a proposal to the P1003.1 Working Group,
  6589. you need to supply actual wording for the standard.  -mod ]
  6590.  
  6591. -- 
  6592.  Marc Mengel
  6593.  attmail!mmengel
  6594.     or
  6595.  ...!{moss|lll-crg|mtune|ihnp4}!cuuxb!mmmengel
  6596.  
  6597.  
  6598. Volume-Number: Volume 11, Number 90
  6599.  
  6600. From jsq  Wed Jul 15 00:43:51 1987
  6601. Received: by uunet.UU.NET (5.54/1.14) 
  6602.     id AA10744; Wed, 15 Jul 87 00:43:51 EDT
  6603. From: std-unix@uunet.UU.NET (Moderator, John Quarterman)
  6604. Newsgroups: comp.std.unix
  6605. Subject: Re: tar vs. cpio
  6606. Message-Id: <638@uunet.UU.NET>
  6607. Organisation:  USENIX Association
  6608. Date: 15 Jul 87 04:43:41 GMT
  6609. Apparently-To: std-unix-archive
  6610.  
  6611. From: usenix!jsq (John S. Quarterman)
  6612.  
  6613. A belated report about the Seattle P1003 meeting,
  6614. regarding section 10.
  6615.  
  6616. No one proposes non-ASCII cpio format any more.
  6617.  
  6618. A revised cpio proposal was received.  It is in
  6619. appropriate format for P1003.1, but is still straight
  6620. System V cpio.
  6621.  
  6622. The proposer of that proposal has agreed to supply
  6623. an updated proposal, including optional extensions
  6624. for symbolic links, contiguous files, and a general
  6625. method of extension.  This is analogous to what is
  6626. already in Draft 10 about the ustar format.
  6627.  
  6628. P1003.1 Draft 11 will include the updated cpio proposal
  6629. in addition to the already-present ustar format.
  6630.  
  6631. Some notes have been moved from Section 10 into the Rationale.
  6632.  
  6633. The introductory matter in 10.1 about the user of permission
  6634. information on extraction of archives has been reworded, mostly
  6635. to avoid the word "utility" (this is 1003.1, i.e., the programming
  6636. language interface standard, that we are discussing.)
  6637.  
  6638. A note is expected from X/OPEN to address the issues raised in my
  6639. previous note (IEEE 1003.1 N.100, "tar vs. cpio"), and to include
  6640. some comments about the motivation for the cpio proposals.
  6641.  
  6642. The cpio proponents have been invited to post that note and
  6643. the new cpio proposal in this newsgroup.
  6644.  
  6645. N.100 will appear in the next issue of ;login:, the Newsletter
  6646. of the USENIX Association.  The cpio proponents have been 
  6647. invited to submit equivalent material.  There is a possibility
  6648. that similar articles may appear in the EUUG newsletter.
  6649.  
  6650.  
  6651. An actual decision on what format(s) will be in the IEEE 1003.1
  6652. Full Use Standard is expected at the September meeting in
  6653. Nashua, New Hampshire.  Though, of course, there is still the
  6654. possibility that it will be determined in actual balloting.
  6655.  
  6656. [ Note that I am posting this report as the USENIX Institutional
  6657. Representative to IEEE P1003, not as the moderator.  Replies
  6658. and related submissions are solicited.  -mod ]
  6659.  
  6660. Volume-Number: Volume 11, Number 91
  6661.  
  6662. From jsq  Sat Jul 18 13:15:40 1987
  6663. Received: by uunet.UU.NET (5.54/1.14) 
  6664.     id AA13718; Sat, 18 Jul 87 13:15:40 EDT
  6665. From: std-unix@uunet.UU.NET (Moderator, John Quarterman)
  6666. Newsgroups: comp.std.unix
  6667. Subject: End of Volume 11
  6668. Message-Id: <666@uunet.UU.NET>
  6669. Reply-To: std-unix@uunet.UU.NET
  6670. Date: 18 Jul 87 17:15:32 GMT
  6671. Apparently-To: std-unix-archive
  6672.  
  6673. This is the last article in Volume 11 of comp.std.unix.
  6674. Volume 12 will start immediately.
  6675.  
  6676. Volume-Number: Volume 11, Number 92
  6677.  
  6678.