EmbLogic's Blog

Author Archives: ruchi.gupta

C++ : simple program in linux.

RCS file: ./simple.cpp,v Working file: ./simple.cpp head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: printing “My name is Ruchi”using string mystring —————————- revision 1.1 date: 2014/06/06 12:46:39; author: root; … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

Character driver – initialization and cleanup

RCS file: ./header.h,v Working file: ./header.h head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: include the header files for module_exit() and for module_init() also include the license —————————- revision … Continue reading

Posted in Character Driver | Leave a comment

PYTHON-simple program using format()

RCS file: ./hello.py,v Working file: ./hello.py head: 1.5 branch: locks: strict root: 1.5 access list: symbolic names: keyword substitution: kv total revisions: 5; selected revisions: 5 description: printing “Hello” in python successfully done…..:) —————————- revision 1.5 locked by: root; date: … Continue reading

Posted in Embedded Linux | Leave a comment

Use Of Class in C++

RCS file: ./class.cpp,v Working file: ./class.cpp head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1;    selected revisions: 1 description: Using Class in C++ from the main function I have created the object file to … Continue reading

Posted in Embedded Linux | Leave a comment

Simple program in c++

RCS file: ./simple.cpp,v Working file: ./simple.cpp head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: printing “My name is Ruchi”using string mystring —————————- revision 1.1 date: 2014/06/06 12:46:39; author: root; … Continue reading

Posted in Embedded Linux | Leave a comment

Threads-using strcpy and analysing the result

RCS file: ./thread.c,v Working file: ./thread.c head: 1.2 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 2; selected revisions: 2 description: creating multiple threads using pthread_create() joining the created multiple threads using pthread_join() printing the no … Continue reading

Posted in Project 04: FTP based Client Server using Threads and Sockets | Leave a comment

Thread Creation and Joining the threads created.

RCS file: ./thread.c,v Working file: ./thread.c head: 1.2 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 2;    selected revisions: 2 description: pthread_create is used to create the thread pthread_exit() is used in the thread created by … Continue reading

Posted in Project 04: FTP based Client Server using Threads and Sockets | Leave a comment

Data structures in C(assignment-1)

RCS file: ./1.c,v Working file: ./1.c head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1;    selected revisions: 1 description: printing “Hello Word” using printf —————————- revision 1.1 date: 2014/05/23 11:22:57;  author: root;  state: Exp; … Continue reading

Posted in Data Structures with C | Leave a comment

Factorial of a number is calculated

RCS file: ./fac.c,v Working file: ./fac.c head: 1.2 branch: locks: strict root: 1.2 access list: symbolic names: keyword substitution: kv total revisions: 2;    selected revisions: 2 description: user enter the number —————————- revision 1.2    locked by: root; date: 2014/05/23 15:15:32;  … Continue reading

Posted in Data Structures with C | Leave a comment

Difference Between printf() and scanf() in C

printf(): When printf() is used in a progam,that means whatever statement we want to print on the shell will be written inside the double codes i.e printf(“hello”). If we write printf(“Hello\n”) then \n means when Hello is printed on the … Continue reading

Posted in Data Structures with C | Leave a comment

FIFO-done with three clients

RCS file: req_client_1.c,v Working file: req_client_1.c head: 1.2 branch: locks: strict root: 1.2 access list: symbolic names: keyword substitution: kv total revisions: 2; selected revisions: 2 description: sending the data to the server on the request of server’s availability —————————- … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

Character_Driver

RCS file: header.h,v Working file: header.h head: 1.3 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 3;    selected revisions: 3 description: include header files that are needed in this program struct sculldev structure is included here … Continue reading

Posted in Character Driver | Leave a comment

FIFO

A FIFO is similar to a pipe. FIFO (First In First Out) is a one-way flow of data. FIFO’s have a name i.e. FIFO is a named pipe. This is the main difference between pipes and FIFOs. To create FIFO,we … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

Working of alarm using fork,sleep and pause.

RCS file: ./alarm.c,v Working file: ./alarm.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1;    selected revisions: 1 description: global value for alarm_fired is declared. setting the child process for 5 sec … Continue reading

Posted in Data Structures with C, Project 03: Client Server Communication using Linux and IPC | Leave a comment

process is set to default..causing termination of process.

RCS file: ./ignore_sigint.c,v Working file: ./ignore_sigint.c head: 1.2 branch: locks: strict root: 1.2 access list: symbolic names: keyword substitution: kv total revisions: 2;    selected revisions: 2 description: ignore the signal using SIG_DFL. —————————- revision 1.2    locked by: root; date: 2014/03/11 … Continue reading

Posted in Data Structures with C, Project 2: Multiple Data Compression and Encryption | Leave a comment