CHANNASANDRA, BANGALORE - 61
UNIX SYSTEM PROGRAMMING
NOTES FOR 6TH SEMESTER INFORMATION SCIENCE SUBJECT CODE: 06CS62 PREPARED BY
RAJKUMAR
Assistant Professor Department of Information Science
DIVYA K
1RN09IS016 6th Semester Information Science and Engineering 1rn09is016@gmail.com
Text Books: 1 Terrence Chan: Unix System Programming Using C++, Prentice Hall India, 1999. 2 W. Richard Stevens, Stephen A. Rago: Advanced Programming in the UNIX Environment, 2nd Edition, Pearson Education / PHI, 2005
Notes have been circulated on self risk nobody can be held responsible if anything is wrong or is improper information or insufficient information provided in it.
Contents: UNIT 1, UNIT 2, UNIT 3, UNIT 4, UNIT 5, UNIT 6, UNIT 7
RNSIT
UNIX SYSTEM PROGRAMMING NOTES
UNIT 1 INTRODUCTION
UNIX AND ANSI STANDARDS
UNIX is a computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs, including Ken Thompson, Dennis Ritchie, Douglas McElroy and Joe Ossanna. Today UNIX systems are split into various branches, developed over time by AT&T as well as various commercial vendors and non-profit organizations.
The ANSI C Standard
In 1989, American National Standard Institute (ANSI) proposed C programming language standard X3.159-1989 to standardise the language constructs and libraries. This is termed as ANSI C standard. This attempt to unify the implementation of the C language supported on all computer system. The major differences between ANSI C and K&R C [Kernighan and Ritchie] are as follows: Function prototyping Support of the const and volatile data type qualifiers. Support wide characters and internationalization. Permit function pointers to be used without dereferencing. Function prototyping ANSI C adopts C++ function prototype technique where function definition and declaration include function names, arguments’ data types, and return value data types. This enables ANSI C