#this is the insertion of Device Driver in the kernel RCS file: cleanup.c,v Working file: cleanup.c head: 1.3 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 3; selected revisions: 3 description: give the defination for the … Continue reading
Big and Little Endian Basic Memory Concepts In order to understand the concept of big and little endian, you need to understand memory. Fortunately, we only need a very high level abstraction for memory. You don’t need to know all … Continue reading
When talking about toolchains, one must distinguish three different machines : the build machine, on which the toolchain is built the host machine, on which the toolchain is executed the target machine, for which the toolchain generates code From these three … Continue reading
What is Shared Memory? In the discussion of the fork() system call, we mentioned that a parent and its children have separate address spaces. While this would provide a more secured way of executing parent and children processes (because they … Continue reading
When you develop a desktop or server application, almost always the development platform (the machine that runs your compiler) and the target platform (the machine that runs your application) are the same. By “platform” I mean the combination of CPU … Continue reading
C Reference function rand() generate a random number This function of stdlib will generate a random number. Usage of rand(): int rand (void); Parameters: The function rand() returns a pseudo-random integral number. This number will be in the range 0 … Continue reading
Faced with the limitations of the shell command expr and other shell constructs, let’s set out to explore the powerful command bc, which stands for bench calculator. This is not just a command or tool, but a complete language in … Continue reading
this is the simple and conceptual programme on structure, which is used to hold the structure variable in the array of structure. we can also implement the array if structure as show below: #include<stdio.h> struct abc { int a; int … Continue reading
#include<stdio.h> union abc { char a; int b; int c; }z; int main() { printf(“size of union %d\n”,sizeof(union abc));//the size of the union is the maximum size of the data type. z.a=4; printf(“the value for a is %d\n”,z.a); z.b=5; printf(“***********************after … Continue reading
#include<stdio.h> 2 3 4 struct 5 { 6 char a; 7 int b; 8 int c; 9 }d;//as d is the variable of the structure and this is the structure without its name that’s why we can’t make the further … Continue reading
#include<stdio.h> #include<fcntl.h> #include<unistd.h> int main(int argc,char *argv[]) { FILE *fd1, *fd2; char ch;int i; fd1=fopen(argv[1],”r”);//the read file is to be read from command line arguments.(as this is the high level programming because in this we are using the fopen instead … Continue reading
RCS file: server.c,v Working file: server.c head: branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 0 description: this is the server getiing the message from the requesting client and deliver the message to the procedural client. … Continue reading
RCS file: server.c,v Working file: server.c head: 1.7 branch: locks: strict root: 1.7 access list: symbolic names: keyword substitution: kv total revisions: 7; selected revisions: 7 description: making the server which receive the message from the client and transfer this … Continue reading
RCS file: 1.c,v Working file: 1.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: make the fifo do the write operation on fifo. —————————- revision 1.1 locked … Continue reading
RCS file: server.c,v Working file: server.c head: 1.1 branch: locks: strict ankit: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: make the pipe for the client 1 make the fork in the child … Continue reading