Search Results

Search: Posts Made By: Praveen_218
Forum: Programming 03-10-2014
9,439
Posted By Praveen_218
For small applications the same would work to an...
For small applications the same would work to an extent but when it requires to examine a piece of memory located at addresses under truly 64-bit address space (say, >32-bit addressable value) then...
15,071
Posted By Praveen_218
Ok. Yes seems to be memory leak case. But then...
Ok. Yes seems to be memory leak case.
But then what is the trigger or is it always expanding in every run?

If you know the trigger which is causing the issue, you would easily zero in on to the...
15,071
Posted By Praveen_218
How do you know the leak is happening? Does...
How do you know the leak is happening?
Does your process crashes everytime it's run after certain time or is there a trigger which results into a crash/abort for "ENOMEM" ??
Forum: Programming 04-19-2013
4,715
Posted By Praveen_218
You know what -There was a Perl script I had got...
You know what -There was a Perl script I had got from CPAN to generate SHA1 checksum of files in a directory, I modified to suite my needs, for the project I was working at, and the script was taking...
Forum: Programming 04-20-2013
2,288
Posted By Praveen_218
You can do: $ svn add foo.pl Then, ...
You can do:

$ svn add foo.pl


Then,


$ svn commit
Forum: Programming 04-19-2013
2,288
Posted By Praveen_218
It is not possible to check-out just a file (of...
It is not possible to check-out just a file (of course you can update/re-base with just a single file while inside a working checked-out sandbox).

At the best you can check out a sub-directory...
1,587
Posted By Praveen_218
This is what I want to convey. Simply using 'n'...
This is what I want to convey. Simply using 'n' and it behaves like 'n 1' as default. In your case it's 'n 7' as default. So just try explicitly as 'n 1' and see what happens. You may also try 'n -6'...
1,587
Posted By Praveen_218
Just compiled the code like this: $ gcc...
Just compiled the code like this:


$ gcc -g3 -Wall -Werror main.c -o M2
$ ll
total 20
-rwxr-xr-x 1 praveen_218 grp 14144 Apr 10 19:45 M2
-rw-r--r-- 1 praveen_218 grp 270 Apr 10 19:34...
Forum: UNIX and Linux Applications 03-12-2013
4,416
Posted By Praveen_218
You'll have to compile the source with debug...
You'll have to compile the source with debug symbols.
Once you download the tarball; un-tar the same and then do the following (inside the source directory which produces post un-tar -Run the...
6,388
Posted By Praveen_218
When you edit grub.conf to add another boot...
When you edit grub.conf to add another boot option, you will have to re-build the stage-2 GRUB loader; which is why is a necessary step.

The GRUB stage-1 is just a 512 bytes system boot loader...
4,452
Posted By Praveen_218
Your code Problems ...
Need to handle errors for values of the two variables 'player' and 'pc' for out of range values.

For eg. What if player == 0 and also pc == 0 .

Please dry run the below few lines from your own...
Forum: Programming 01-16-2012
3,198
Posted By Praveen_218
Could you please ensure that the kernel versions...
Could you please ensure that the kernel versions are compatible?

From the error messages it seems to be a compilation targeted for 64-bit system whereas you new host is 32-bit installation.
...
Forum: Programming 11-09-2011
1,478
Posted By Praveen_218
They are just variables (ofcourse the pthread lib...
They are just variables (ofcourse the pthread lib treat them specially) so where ever you declare/define them there they’d appear; the only thing is their scope and visibility to pthreads that should...
Forum: Programming 10-24-2011
2,499
Posted By Praveen_218
Although 100*sizeof(int) = 400 bytes (on a 32 bit...
Although 100*sizeof(int) = 400 bytes (on a 32 bit system) is not a big chunk of memory; If you do through malloc();



int *x = (int *) malloc(100 * sizeof(int));



Modern day OS memory...
Forum: Programming 05-06-2011
20,582
Posted By Praveen_218
How come???? The arrary is going to be on...
How come????

The arrary is going to be on the heap of the process memory only.
However, it's the pointer variable 'a' is going to be over the stack frame of the function using that as it's local....
Forum: Solaris 11-26-2010
1,289
Posted By Praveen_218
Its a administration tool on solaris 10. It lets...
Its a administration tool on solaris 10. It lets the system administrator manage the systems devices under /dev/* more effectively. Its one of the latest tool and is obsolating another similar tool...
5,462
Posted By Praveen_218
Just unlink the soft link, which you would be...
Just unlink the soft link, which you would be having for the X init, inside your default runlevel of /etc/init.d/rc5.d

This works pretty well but is considered a hard way of doing so.

Otherwise...
12,887
Posted By Praveen_218
This would work as it is, so long you have...
This would work as it is, so long you have additional spaces in your NTFS drive to accomodate ext3 drives data; assuming you have this, just try the sequence of commands only (ofcourse, its trickey...
Forum: Programming 10-15-2010
18,151
Posted By Praveen_218
When you install any signal handler, they are...
When you install any signal handler, they are just installed and not executed untill the signal is received by them.

Now from your code its clear that you are not creating any child inside the...
Forum: Programming 08-23-2010
5,460
Posted By Praveen_218
The code above is more of a working code , which...
The code above is more of a working code , which would be compiled with a little or almost no effort from yourside. Try it.

When compiled, it should be able to tell you (given a pointer to a...
Forum: Programming 08-20-2010
5,460
Posted By Praveen_218
I think that what you mentioned is a list having...
I think that what you mentioned is a list having a loop in it.

Out of curiosity , I decided to look at the standard definition of what exactly we mean by the term Circular list.

Below is what I...
Forum: Programming 06-21-2010
2,162
Posted By Praveen_218
The variable of the type pthread_mutex_t are...
The variable of the type pthread_mutex_t are treated like any other normal variable of the process. They even follow the same scop rules and life times as any other in built variable would if...
4,455
Posted By Praveen_218
The performance critical cpmpeting process ...
For example the bottom half implementation of any Linux driver code need to use the spinlock instead of mutex (or any seamaphores for that maters), otherwise contex switch in seamaphore based...
Forum: Programming 06-22-2010
3,877
Posted By Praveen_218
The direct answer to your question : int...
The direct answer to your question :


int main() {
unsigned short int v = 7; // First 13 MSB == 0; Last 3 LSB == 1 --> 0000000000000111
unsigned short int...
Forum: Programming 06-22-2010
1,593
Posted By Praveen_218
You'd also be interested in exploring cpp ; Its...
You'd also be interested in exploring cpp ; Its the C pre Processor , available on most UNIX systems. However, I have used it mostly on my Linux ststems only ;)

Just run the command:

$ cpp...
Showing results 1 to 25 of 25

 
All times are GMT -4. The time now is 06:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy