RCS file: atoi.c,v 3 Working file: atoi.c 4 head: 1.3 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 3; selected revisions: 3 11 description: 12 this program tells the use … Continue reading
A typical memory representation of C program consists of following sections. 1. Text segment 2. Initialized data segment 3. Uninitialized data segment 4. Stack 5. Heap A typical memory layout of a running process 1. Text Segment: A text segment … Continue reading
this script uses two arguments given while using the command (script name) which it uses to replace $1 (first argument) $2 (second argument).
The kernel file, in Ubuntu, is stored in your /boot folder and is called vmlinuz-version. The name vmlinuz comes from the unix world where they used to call their kernels simply “unix” back in the 60?s so Linux started calling … Continue reading
Complicated declarations in C Most of the times declarations are simple to read, but it is hard to read some declarations which involve pointer to functions. For example, consider the following declaration from “signal.h”. void (*bsd_signal(int, void (*)(int)))(int); Let us … Continue reading
The following are the 6 high level stages of a typical Linux boot process. 1. BIOS BIOS stands for Basic Input/Output System Performs some system integrity checks Searches, loads, and executes the boot loader program. It looks for boot loader … Continue reading
RCS file: header.h,v Working file: header.h head: 1.10 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 10; selected revisions: 10 description: created a header file including all predefined header files. learnt that header file “string.h” is … Continue reading