UNIX Version 7 Volume 2A
Total Page:16
File Type:pdf, Size:1020Kb
UNIXTM TIME-SHARING SYSTEM: UNIX PROGRAMMER'S MANUAL Seventh Edition, Volume 2A January, 1979 Bell Telephone Laboratories, Incorporated Murray Hill, New Jersey UNIX Programmer's Manual Volume 2 Ð Supplementary Documents Seventh Edition January 10, 1979 This volume contains documents which supplement the information contained in Volume 1 of The UNIX² Programmer's Manual. The documents here are grouped roughly into the areas of basics, editing, language tools, document preparation, and system maintenance. Further general information may be found in the Bell System Technical Journal special issue on UNIX, July-August, 1978. Many of the documents cited within this volume as Bell Laboratories internal memoranda or Com- puting Science Technical Reports (CSTR) are also contained here. These documents contain occasional localisms, typically references to other operating systems like GCOS and IBM. In all cases, such references may be safely ignored by UNIX users. General Works 1. 7th Edition UNIX Ð Summary. A concise summary of the facilities available on UNIX. 2. The UNIX Time-Sharing System. D. M. Ritchie and K. Thompson. The original UNIX paper, reprinted from CACM. Getting Started 3. UNIX for Beginners Ð Second Edition. B. W. Kernighan. An introduction to the most basic use of the system. 4. A Tutorial Introduction to the UNIX Text Editor. B. W. Kernighan. An easy way to get started with the editor. 5. Advanced Editing on UNIX. B. W. Kernighan. The next step. 6. An Introduction to the UNIX Shell. S. R. Bourne. An introduction to the capabilities of the command interpreter, the shell. 7. Learn Ð Computer Aided Instruction on UNIX. M. E. Lesk and B. W. Kernighan. Describes a computer-aided instruction program that walks new users through the basics of ®les, the editor, and document preparation software. Document Preparation 8. Typing Documents on the UNIX System. M. E. Lesk. Describes the basic use of the formatting tools. Also describes ``± ms'', a standardized package of formatting requests that can be used to lay out most documents (including those in this volume). __________________ ²UNIX is a Trademark of Bell Laboratories. - 2 - 9. A System for Typesetting Mathematics. B. W. Kernighan and L. L. Cherry. Describes EQN. an easy-to-learn language for doing high-quality mathematical typesetting, 10. TBL Ð A Program to Format Tables. M. E. Lesk. A program to permit easy speci®cation of tabular material for typesetting. Again, easy to learn and use. 11. Some Applications of Inverted Indexes on the UNIX System. M. E. Lesk. Describes, among other things, the program REFER which ®lls in bibliographic citations from a data base automatically. 12. NROFF/TROFF User's Manual. J. F. Ossanna. The basic formatting program. 13. A TROFF Tutorial. B. W. Kernighan. An introduction to TROFF for those who really want to know such things. Programming 14. The C Programming Language Ð Reference Manual. D. M. Ritchie. Of®cial statement of the syntax and semantics of C. Should be supplemented by The C Programming Language, B. W. Kernighan and D. M. Ritchie, Prentice-Hall, 1978, which contains a tutorial introduction and many examples. 15. Lint, A C Program Checker. S. C. Johnson. Checks C programs for syntax errors, type violations, portability problems, and a variety of probable errors. 16. Make Ð A Program for Maintaining Computer Programs. S. I. Feldman. Indispensable tool for making sure that large programs are properly compiled with minimal effort. 17. UNIX Programming. B. W. Kernighan and D. M. Ritchie. Describes the programming interface to the operating system and the standard I/O library. 18. A Tutorial Introduction to ADB. J. F. Maranzano and S. R. Bourne. How to use the ADB debugger. Supporting Tools and Languages 19. YACC: Yet Another Compiler-Compiler. S. C. Johnson. Converts a BNF speci®cation of a language and semantic actions written in C into a com- piler for the language. 20. LEX Ð A Lexical Analyzer Generator. M. E. Lesk and E. Schmidt. Creates a recognizer for a set of regular expressions; each regular expression can be fol- lowed by arbitrary C code which will be executed when the regular expression is found. 21. A Portable Fortran 77 Compiler. S. I. Feldman and P. J. Weinberger. The ®rst Fortran 77 compiler, and still one of the best. 22. Ratfor Ð A Preprocessor for a Rational Fortran. B. W. Kernighan. Converts a Fortran with C-like control structures and cosmetics into real, ugly Fortran. 23. The M4 Macro Processor. B. W. Kernighan and D. M. Ritchie. M4 is a macro processor useful as a front end for C, Ratfor, Cobol, and in its own right. 24. SED Ð A Non-interactive Text Editor. L. E. McMahon. A variant of the editor for processing large inputs. 25. AWK Ð A Pattern Scanning and Processing Language. A. V. Aho, B. W. Kernighan and P. J. Weinberger. Makes it easy to specify many data transformation and selection operations. - 3 - 26. DC Ð An Interactive Desk Calculator. R. H. Morris and L. L. Cherry. A super HP calculator, if you don't need ¯oating point. 27. BC Ð An Arbitrary Precision Desk-Calculator Language. L. L. Cherry and R. H. Morris. A front end for DC that provides in®x notation, control ¯ow, and built-in functions. 28. UNIX Assembler Reference Manual. D. M. Ritchie. The ultimate dead language. Implementation, Maintenance, and Miscellaneous 29. Setting Up UNIX Ð Seventh Edition. C. B. Haley and D. M. Ritchie. How to con®gure and get your system running. 30. Regenerating System Software. C. B. Haley and D. M. Ritchie. What do do when you have to change things. 31. UNIX Implementation. K. Thompson. How the system actually works inside. 32. The UNIX I/O System. D. M. Ritchie. How the I/O system really works. 33. A Tour Through the UNIX C Compiler. D. M. Ritchie. How the PDP-11 compiler works inside. 34. A Tour Through the Portable C Compiler. S. C. Johnson. How the portable C compiler works inside. 35. A Dial-Up Network of UNIX Systems. D. A. Nowitz and M. E. Lesk. Describes UUCP, a program for communicating ®les between UNIX systems. 36. UUCP Implementation Description. D. A. Nowitz. How UUCP works, and how to administer it. 37. On the Security of UNIX. D. M. Ritchie. Hints on how to break UNIX, and how to avoid doing so. 38. Password Security: A Case History. R. H. Morris and K. Thompson. How the bad guys used to be able to break the password algorithm, and why they can't now, at least not so easily. 7th Edition UNIX Ð Summary September 6, 1978 Bell Laboratories Murray Hill, New Jersey 07974 A. What's new: highlights of the 7th edition UNIX² System Aimed at larger systems. Devices are addressable to 231 bytes, ®les to 230 bytes. 128K memory (separate instruction and data space) is needed for some utilities. Portability. Code of the operating system and most utilities has been extensively revised to minimize its dependence on particular hardware. Fortran 77. F77 compiler for the new standard language is compatible with C at the object level. A Fortran structurer, STRUCT, converts old, ugly Fortran into RATFOR, a structured dialect usable with F77. Shell. Completely new SH program supports string variables, trap handling, structured programming, user pro®les, settable search path, multilevel ®le name generation, etc. Document preparation. TROFF phototypesetter utility is standard. NROFF (for terminals) is now highly compatible with TROFF. MS macro package provides canned commands for many common for- matting and layout situations. TBL provides an easy to learn language for preparing complicated tabular material. REFER ®lls in bibliographic citations from a data base. UNIX-to-UNIX ®le copy. UUCP performs spooled ®le transfers between any two machines. Data processing. SED stream editor does multiple editing functions in parallel on a data stream of inde®nite length. AWK report generator does free-®eld pattern selection and arithmetic operations. Program development. MAKE controls re-creation of complicated software, arranging for minimal recompilation. Debugging. ADB does postmortem and breakpoint debugging, handles separate instruction and data spaces, ¯oating point, etc. C language. The language now supports de®nable data types, generalized initialization, block structure, long integers, unions, explicit type conversions. The LINT veri®er does strong type checking and detec- tion of probable errors and portability problems even across separately compiled functions. Lexical analyzer generator. LEX converts speci®cation of regular expressions and semantic actions into a recognizing subroutine. Analogous to YACC. Graphics. Simple graph-drawing utility, graphic subroutines, and generalized plotting ®lters adapted to various devices are now standard. Standard input-output package. Highly ef®cient buffered stream I/O is integrated with formatted input and output. Other. The operating system and utilities have been enhanced and freed of restrictions in many other ways too numerous to relate. __________________ ² UNIX is a Trademark of Bell Laboratories. - 2 - B. Hardware The 7th edition UNIX operating system runs on a DEC PDP-11/45 or 11/70* with at least the fol- lowing equipment: 128K to 2M words of managed memory; parity not used. disk: RP03, RP04, RP06, RK05 (more than 1 RK05) or equivalent. console typewriter. clock: KW11-L or KW11-P. The following equipment is strongly recommended: communications controller such as DL11 or DH11. full duplex 96-character ASCII terminals. 9-track tape or extra disk for system backup. The system is normally distributed on 9-track tape. The minimum memory and disk space speci®ed is enough to run and maintain UNIX. More will be needed to keep all source on line, or to handle a large number of users, big data bases, diversi®ed complements of devices, or large programs.