C and UNIX Programming: S Comprehensive Guide Incorporating the ANSI and POSIX Standards

C and UNIX Programming: S Comprehensive Guide Incorporating the ANSI and POSIX Standards

by N. S. Kutti



Product Details

ISBN-13: 9781929175406
Publisher: Cote Literary Group, The
Publication date: 04/28/2002
Pages: 661
Product dimensions: 7.26(w) x 9.36(h) x 1.85(d)

Table of Contents

Chapter 1Introduction1
1.2General Features of C-Language2
1.3Supporting Processing Environment16
1.4C-Program Model18
Chapter 2Starting with C-Programming25
2.2Language Conventions26
2.3Statements in C programs32
2.4Conventions Used in Preparing C-source Texts34
2.5Learn To Declare Main Function34
2.6Include Header Files35
2.7Commenting in C-Programs36
2.8First C-Program Using the printf Function37
2.9Declaring the Data Objects43
2.10Input/Output Conventions48
2.11C-Program Using Stream I/O Functions49
2.12Diagnostic Aid (Use of assert Macro)51
2.13C-Virtual Machine for Statement Execution53
Chapter 3Meaning of Variables and Expressions59
3.2Meaning of Variable63
3.3Temporal Aspects of Variables65
3.4Meaning of Declarations67
3.5Types of Variables in ANSI-C67
3.6The const Variables70
3.7Significance of Volatile Qualifier71
3.8Meaning and Evaluation of Expressions73
3.9Types of Operators78
3.10Types of Expressions80
Chapter 4Meaning and Definition of C-Functions97
4.2Function Definition98
4.3Meaning of a Function99
4.4Compiler's View on Function Definition103
4.5Function Interface Conventions108
4.6Meaning of Call by Value or by Reference109
Chapter 5Storage Classes, Scope and Initialization of Variables117
5.2The Meaning of Scope of a Variable118
5.3What Is a Storage Class?120
5.4Storage Classes120
5.5Storage Environment Around a Function126
5.6Initializing Variables130
5.8Dynamic Storage Type132
Chapter 6Statements in C135
6.2Simple Expression Statements138
6.3Control Statements141
6.4.Compound or Block Statements149
6.5Miscellaneous Statements151
Chapter 7The Macro Preprocessor155
7.2Description of Macro Commands156
7.3The define Macro157
7.4Include Macro166
7.5Conditional Macros170
7.6Macros for Debugging171
7.7Miscellaneous Macros173
7.8Predefined Macro Names174
7.9The # and ## Preprocessor Operators175
Chapter 8Integer and Real Variables179
8.2Integer Types180
8.3Real Type190
8.4Integer and Real Arrays193
8.5Declaration of a Buffer (Byte Array)198
Chapter 9Operations on Integer and Real Variables201
9.2Increment and Decrement Operations202
9.3Arithmetic Operations204
9.4Bitwise Logical Operations on Integers204
9.5Assignment Operation208
9.6Input and Output Operations209
9.7The sizeof Operation221
9.8The Cast Operation223
9.9Scientific Operations on Real Types223
Chapter 10Character and String Variables227
10.2Character Value and Character Set228
10.3Character Variable229
10.4String Values232
10.5String Variables233
Chapter 11Operations on Character Variables241
11.2Expressions and Assignment Operations242
11.3Character I/O245
11.4Character Testing and Manipulation250
Chapter 12Pointers and Array References259
12.2Pointer Variable260
12.3Address Constants260
12.4Declaring Pointers263
12.5Operations on Pointers269
12.6Pointer Mechanism for Dynamic Data Structures276
Chapter 13Advanced Concepts of C-Functions279
13.2Declaring Pointers to Functions279
13.4Functions with Variable Number of Arguments286
Chapter 14Operations on String Variables291
14.2The Header File, string.h292
14.3String Operations296
14.4Operations on Memory Regions (or Memory Buffers)314
14.5String Utility Function for Decoding System Errors317
14.6String Conversion Operations318
14.7String Composition and Decomposition321
Chapter 15Composite Data Structures and Unions325
15.2Structure Declaration in C328
15.3Pointer to a Structure334
15.4Accessing Elements of a Structure335
Chapter 16Storage Management and Dynamic Data Structure349
16.2Dynamic Storage Management350
16.3Meaning of Dynamic Data Structures353
16.4Dynamic Arrays354
16.5Linked Data Structures357
Chapter 17ANSI-C File System375
17.2Overview of ANSI-C File System377
17.3Concept of Stream I/O380
17.4Use of stdio.h in Stream I/O382
17.5The stdio Streams383
17.6Descriptions of Stream I/O Control Functions383
17.7Stream Functions for Character I/O395
17.8String and Line I/O Operations403
17.9Binary I/O in Streams405
17.10Formatted I/O412
Chapter 18Signal and Time Management423
18.2Signal Management423
18.3Time Management in Standard C430
Chapter 19Standard Unix-Kernal Interface441
19.2The Meaning of Operating System Kernel442
19.3Unix Kernel443
19.4Error Handling with System Calls448
19.5What Is Systems Programming?449
19.6C as a System Programming Language450
19.7Why Standard for Operating System Interface?450
19.8What Is POSIX Standard?452
19.9System Identification453
Chapter 20Project Management Using System Calls457
20.2Process Concept458
20.3Process Model in Unix458
20.4Description of Process Management System Calls472
20.5Signaling System Calls483
Chapter 21Unix File I/O515
21.2Concept of Direct (or Basic) I/O516
21.3How Is a File Maintained in Unix?517
21.4File Protection and File Creation Mask520
21.6System Calls for Regular Files530
21.7Inode-Related System Calls541
21.8FIFO (Named Pipe) File548
21.9Device Files551
21.10Configuration Information of File System553
21.11The sync System Call554
Chapter 22Program Call Interface559
22.2The execve Function560
22.3Derived exec** Functions561
22.4Argument Retrieval and Processing by a Called Program568
22.5Unix Command Programs572
22.6How shell Executes Command Programs572
22.7Environment Around a Command Process574
22.8Structure of a shell Command577
Chapter 23Programming with Threads591
23.2Meaning of Concurrent Programming592
23.3Concept of Thread592
23.4The pthread.h Header594
23.5Thread Creation and Termination594
23.6Synchronization Mechanisms for Thread Concurrency601
23.7Miscellaneous Functions610
Appendix AGlossary615
A.1Keywords in C615
A.2Types of Operators in C616
Appendix BCharacter Sets619
B.1ASCII Character Set619
B.2EBCDIC Character Set621
Appendix CANSI-C Standard Libraries and Their Header Files627
C.1Standard Headers627
C.2Definitions in the Standard Header Files627
Appendix DImplementation Limits in ANSI-C: Header Files635
D.1limits.h (LImits of integral types)635
D.2float.h (Limits of real values)636
Appendix EPOSIX Unix Interface: Standard Calls and Related Headers637
E.1POSIX. 1 Standard Headers637
E.2Definitions in the Standard Headers637
Appendix FBibliography649

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews