|
Writing Linux Daemon Process In C |
|
Jan 17, 2012 - 1:39 AM - by Trinity
|
What is Dameon Process?
A Daemon process is a process which is not associated with any terminal and hence is supposed to run in background. Since, a daemon process involves background processing, it is recommended it should not include any user interaction. Therefore, it should be clear about its continuous processing not caring to wait for any input or to display any output. However, C programming does not define any such restrictions in its development as such. A daemon process developer should be well aware of its definition and ideal functionality before one starts the programming.
A well known example of a daemon process could be a mail server, which runs... [Read More]
|
|
0 Replies | 639 Views
|
C++ Style TypeCasts |
|
Jan 02, 2012 - 1:27 AM - by Trinity
|
In C-Style typecasting we discussed about type casting and why is it required and how it is used in C programming. C++ has more types of typecasting and an entirely different way to use them.
A point to be noted that C++ typecasting would be mostly described and used in context of classes, as an effect of C++ being object oriented.
Types of C++ TypeCasting
There are following four types of type casting in C++:
Static-cast
Static cast is generally said to be used for... [Read More]
|
|
0 Replies | 757 Views
|
Good Programming Practices - System Calls |
|
Dec 31, 2011 - 12:31 PM - by poornaMoksha
|
This article is the Part-II (Part-I here) of the series where in we are focusing on good coding practices. In the Part-I we discussed the importance of the assert macro/function for detecting and debugging bugs in program. In this part we will focus on good coding practices while dealing with system calls.
Note: As always, we will be discussing everything in the Linux environment.
Working with system calls
There are certain points that one should keep in mind while dealing with system calls. - One should have in and out knowledge of the
... [Read More]
|
|
0 Replies | 655 Views
|
Programming with Temporary files in Linux |
|
Dec 30, 2011 - 8:50 AM - by poornaMoksha
|
If you are a developer then you would definitely be aware of the concept of temporary files. Temporary files, as the name suggest is temporary in its persistence. Either a process creates a temporary file to hold data for certain time or to pass information to another process. An ideal process makes sure that the temporary files are deleted as soon as the process is done with them.
An example
Lets suppose a developer (who is unaware of the standard ways to create and use temporary file) is asked to develop a code that uses a temporary file to hold data for sometime and then is deleted. What would he/she come up with ?
Lets see a generic code : ... [Read More]
|
|
0 Replies | 509 Views
|
C/C++ assert Function |
|
Dec 30, 2011 - 8:43 AM - by poornaMoksha
|
I have been writing many articles on C/Linux explaining concepts, APIs and their usage etc. This time I thought to write on a fundamental concept that every newbie should be well aware of in order to become a good coder, ie 'Good coding practices'. I have 3-4 broader level points to make here. I'll try to cover one point in this article while the others in the subsequent parts. I am sure this article will come in handy for the beginners.
Defensive Coding
For newbies I must say that writing a code that runs correctly in normal conditions is not very easy, the logic needs to be sound. But writing a code that behaves gracefully in all the adverse or failure... [Read More]
|
|
0 Replies | 542 Views
|
» Article Archives |
| |
Title, Username, & Date |
Last Post |
Replies |
Views |
|
getrlimit() and setrlimit() to Control System Resources on Linux
Dec 29th, 2011 08:27 AM
|
|
2 |
424 |
|
Understanding File Accessibility and File Locks with access() and fcntl() functions
Dec 27th, 2011 10:34 PM
|
|
0 |
505 |
|
Developing Linux utility - Part III Displaying Detail File Info
Dec 27th, 2011 06:54 AM
|
|
0 |
466 |
|
Understanding Linux fstat() With Example
Dec 26th, 2011 10:19 PM
|
|
0 |
444 |
|
C-Style TypeCasts
Dec 25th, 2011 04:27 PM
|
|
0 |
582 |
|
Developing Linux Utility - Part II Arranging Output in Alphabetical Order
Dec 24th, 2011 06:15 PM
|
|
0 |
562 |
|
|
Developing Linux Utility like 'ls' in C
Dec 24th, 2011 12:08 PM
|
|
0 |
633 |
|
OpenGL Tutorials for Absolute Beginners
Dec 18th, 2011 07:25 PM
|
|
2 |
913 |
|
How to Reduce Coding Errors when Writing Code - Part 4
Dec 15th, 2011 05:19 PM
|
|
0 |
662 |
|
Faster Webapps with Memcached
Dec 14th, 2011 06:42 PM
|
|
0 |
661 |
|
AJAX jQuery Tutorial - An Introduction
Dec 12th, 2011 06:32 PM
|
|
0 |
809 |
|
Git VCS - Cloning & Workflow
Dec 7th, 2011 04:35 PM
|
|
0 |
785 |
|
Amazon Simple Queue Service
Dec 6th, 2011 02:51 PM
|
|
0 |
753 |
|
Digging C malloc() & free()
Dec 2nd, 2011 10:23 PM
|
|
0 |
1,010 |
|
How to Create Obfuscated Code In C
Dec 1st, 2011 08:13 AM
|
|
6 |
1,243 |
|
|
Virus in Linux - C Code That Changes it's Process Name and its Process ID at Run Time
Nov 30th, 2011 08:07 AM
|
|
0 |
970 |
|
Understanding Advance File Handling Functions in C
Nov 30th, 2011 06:57 AM
|
|
0 |
1,224 |
|
» Latest Forum Topics |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|