home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man0 / intro < prev    next >
Encoding:
Text File  |  1975-07-17  |  6.9 KB  |  296 lines

  1. .lg
  2. .ll 6i
  3. .lt 6i
  4. .ps 10
  5. .vs 12p
  6. .de he
  7. .tl '-'''
  8. 'sp .5i
  9. 'ft R
  10. .CH
  11. 'ft
  12. 'ps
  13. 'sp .5i
  14. ..
  15. .de fo
  16. 'ft R
  17. 'ps 10
  18. 'sp .5i
  19. .CF
  20. 'ft
  21. 'ps
  22. 'bp
  23. ..
  24. .wh 0 he
  25. .wh -1i fo
  26. .de pg
  27. .sp .5
  28. ..
  29. .tr |
  30. .br
  31. .sp 3i
  32. .ps 18
  33. .ft B
  34. .ce
  35. UNIX PROGRAMMER'S MANUAL
  36. .ps 12
  37. .vs 14p
  38. .sp 2
  39. .ft I
  40. .ce
  41. Sixth Edition
  42. .sp 3
  43. .ce 3
  44. K. Thompson
  45. .sp .5
  46. D. M. Ritchie
  47. .sp 2
  48. .ce
  49. May, 1975
  50. .sp 2.5i
  51. .ps 10
  52. .vs 12p
  53. .ft R
  54. .bp
  55. .sp 3i
  56. .sp 3i
  57. .ll 4.7i
  58. .in 1.5i
  59. .ft R
  60. This manual was set
  61. by a Graphic Systems phototypesetter driven
  62. by the \fItroff\fR formatting program operating
  63. under the \s8UNIX\s10 system.
  64. The text of the manual was
  65. prepared using the \fIed\fR text editor.
  66. .br
  67. .ft R
  68. .ll 6i
  69. .in 0
  70. .bp 1
  71. .sp 3
  72. .ce 2
  73. PREFACE
  74. to the Sixth Edition
  75. .sp
  76. .de CF
  77. .ro
  78. .tl ''%''
  79. .ar
  80. ..
  81. .sp 2
  82. We are grateful
  83. to L. L. Cherry,
  84. R. C. Haight,
  85. S. C. Johnson,
  86. B. W. Kernighan,
  87. M. E. Lesk,
  88. and
  89. E. N. Pinson
  90. for their
  91. contributions
  92. to the system software,
  93. and to L. E. McMahon for software and for
  94. his contributions to this manual.
  95. We are particularly appreciative of the
  96. invaluable technical, editorial, and administrative
  97. efforts of
  98. J. F. Ossanna, M. D. McIlroy, and R. Morris.
  99. They all contributed greatly to the stock of
  100. \s8UNIX\s10 software and to this manual.
  101. Their inventiveness,
  102. thoughtful criticism,
  103. and ungrudging support
  104. increased immeasurably
  105. not only whatever success the \s8UNIX\s10 system enjoys,
  106. but also our own enjoyment in its creation.
  107. .bp
  108. .sp 2
  109. .ce
  110. INTRODUCTION TO THIS MANUAL
  111. .pg
  112. .pg
  113. This manual gives descriptions of the publicly available
  114. features of \s8UNIX\s10.
  115. It provides neither a general
  116. overview \- see ``The \s8UNIX\s10 Time-sharing System''
  117. (Comm. ACM \fB17\fR 7, July 1974, pp. 365-375)
  118. for that \-
  119. nor details of the implementation of the system, which
  120. remain to be disclosed.
  121. .pg
  122. Within the area it surveys, this manual attempts
  123. to be as complete and timely as possible.
  124. A conscious
  125. decision was made to describe each program
  126. in exactly the state it was in at the time
  127. its manual section
  128. was prepared.
  129. In particular, the
  130. desire to describe something as it should be, not as it is,
  131. was resisted.
  132. Inevitably, this means that
  133. many sections will soon be out of date.
  134. .pg
  135. This manual is divided into
  136. eight sections:
  137. .pg
  138. .nf
  139.     I.    Commands
  140.     II.    System calls
  141.     III.    Subroutines
  142.     IV.    Special files
  143.     V.    File formats and conventions
  144.     VI.    User-maintained programs
  145.     VII.    User-maintained subroutines
  146.     VIII.    Maintenance
  147. .pg
  148. .fi
  149. Commands are programs intended to be invoked directly by
  150. the user, in contradistinction to subroutines, which are
  151. intended to be called by the user's programs.
  152. Commands generally reside in directory
  153. .ft I
  154. /bin
  155. .ft R
  156. (for \fIbin\fR\|ary programs).
  157. Some programs also reside in
  158. .ft I
  159. /\|usr/\|bin,
  160. .ft R
  161. to save space in
  162. \fI/bin.\fR
  163. These directories are searched automatically by the command interpreter.
  164. .pg
  165. System calls are entries into the \s8UNIX\s10 supervisor.
  166. In assembly language, they are coded with the use
  167. of the opcode \fIsys\fR, a synonym for the
  168. \fItrap\fR instruction.
  169. In this edition,
  170. the C language interface routines to the system
  171. calls have been incorporated in section II.
  172. .pg
  173. A small assortment
  174. of subroutines is available;
  175. they are described in section III.
  176. The binary form of most of them is kept in
  177. the system library
  178. \fI/\|lib/\|liba.a.\fR
  179. The subroutines available from C and from Fortran are also included;
  180. they reside in
  181. \fI/\|lib/\|libc.a\fR
  182. and
  183. \fI/\|lib/\|libf.a\fR
  184. respectively.
  185. .pg
  186. The special files section IV discusses the characteristics of
  187. each system ``file'' which actually refers to an I/O device.
  188. The names in this
  189. section refer to the DEC device names for the
  190. hardware,
  191. instead of the names of
  192. the special files themselves.
  193. .pg
  194. The file formats and conventions section V documents the structure of particular
  195. kinds of files; for example, the form of the output of the loader and
  196. assembler is given.  Excluded are files used by only one command,
  197. for example the assembler's intermediate files.
  198. .pg
  199. User-maintained programs and subroutines (sections VI and VII) are not considered part
  200. of the \s8UNIX\s10 system, and the principal reason for
  201. listing them is to indicate their existence without
  202. necessarily giving a complete description.
  203. The authors of the individual programs should be consulted
  204. for more information.
  205. .pg
  206. Section VIII discusses commands which are not intended
  207. for use by the ordinary user,
  208. in some cases because they disclose information
  209. in which he is presumably not interested,
  210. and in others because they perform
  211. privileged functions.
  212. .pg
  213. .pg
  214. Each section consists of a number of independent
  215. entries of a page or so each.
  216. The name of the entry is in the upper corners of its pages,
  217. its preparation date in the upper middle.
  218. Entries within each section are
  219. alphabetized.
  220. The page numbers of each entry start at 1.
  221. (The earlier hope for frequent, partial
  222. updates of the manual is clearly in vain, but
  223. in any event it is not feasible to
  224. maintain consecutive page numbering in a document
  225. like this.)
  226. .pg
  227. All entries are based on a common format,
  228. not all of whose subsections will always appear.
  229. .pg
  230. .in .5i
  231. The \fIname\fR section repeats the entry name and gives
  232. a very short description of its purpose.
  233. .pg
  234. The \fIsynopsis\fR summarizes the use of the
  235. program being described.
  236. A few conventions are used, particularly in the
  237. Commands section:
  238. .pg
  239. .in 1i
  240. \fBBoldface\fR words are considered literals, and
  241. are typed just as they appear.
  242. .pg
  243. Square brackets ( [ ] ) around an argument
  244. indicate that the argument is optional.
  245. When an argument is given as ``name'', it always
  246. refers to a file name.
  247. .pg
  248. Ellipses ``.\|.\|.'' are used to show that the previous argument-prototype
  249. may be repeated.
  250. .pg
  251. A final convention is used by the commands themselves.
  252. An argument beginning with a minus sign ``_''
  253. is often taken to mean some sort of flag argument
  254. even if it appears in a position where a file name
  255. could appear.  Therefore, it is unwise to have files
  256. whose names begin with ``_''.
  257. .pg
  258. .in .5i
  259. The \fIdescription\fR section discusses in detail the subject at hand.
  260. .pg
  261. The \fIfiles\fR section gives the names of files which are
  262. built into the program.
  263. .pg
  264. A
  265. .ft I
  266. see also
  267. .ft R
  268. section gives pointers to related information.
  269. .pg
  270. A \fIdiagnostics\fR
  271. section discusses
  272. the diagnostic indications which may be produced.
  273. Messages which are intended to be self-explanatory
  274. are not listed.
  275. .pg
  276. The \fIbugs\fR section gives
  277. known bugs and sometimes deficiencies.
  278. Occasionally also the suggested fix is
  279. described.
  280. .pg
  281. .in 0
  282. At the beginning of this document is a table of contents,
  283. organized by section and alphabetically within each section.
  284. There is also a permuted index derived from the table of contents.
  285. Within each index entry, the title
  286. of the writeup to which
  287. it refers is followed by the appropriate section number in parentheses.
  288. This fact is important because there is considerable
  289. name duplication among the sections,
  290. arising principally from commands which
  291. exist only to exercise a particular system call.
  292. .pg
  293. .pg
  294. This manual was prepared using the \s8UNIX\s10 text
  295. editor \fIed\fR and the formatting program \fItroff\fR.
  296.