Hi guys!
Given a process ID (PID), how do I get the child processes whose parent process is PID? The intent is to programmatically kill a process and all its child processes. If a child process is itself a parent of another process, then the "second generation" child processes should...
Hi guys!
Given a process ID (PID), how do I get the child processes whose parent process is PID? The intent is to programmatically kill a process and all its child processes. If a child process is itself a parent of another process, then the "second generation" child processes should...
You may as well try GTK+/GNOME or KDE. GTK+ has bindings for most of the commonly used programming languages, even though it is C-based. It has also been ported to many platforms. KDE is Qt based and it is very good. So the choice is yours.
Hi there.
How do I resolve the following error from NMAKE?
NMAKE : fatal error U1073: don't know how to make '"..\..\..\..\..\program files\microsoft visual studio\vc98\include\basetsd.h"'
Hello, everyone. I'm trying to compile a C source generated by the proc command from an embedded SQL file. I'm using gcc 3.2 on Solaris 8 and binutils 2.11. My problem is that gcc fails to create an executable and gives the following sample output instead:
Entering state 0
Reading a token...
Would you, please, explain the following part:
Use semsys:seminfo_... and shmsys:shminfo_... for the semaphore and shared memory parameters respectively.
In addition, given that the program fails to allocate a memory block out of the shared memory, is there anything that I need to do as far...
I have an application that makes heavy use of IPCs for message passing between a producer and multiple consumers. The producer app picks data from the DB and puts them on a queue. The program creates a shared memory segment for each item placed on the message queue. The problem is that, given...
Hello everyone! I'm trying to make some changes to the IPCS settings on my machine, and I would do better with some help. I have the current settings on Solaris 8:
4294967295 max shared memory segment size (SHMMAX)
1 min shared memory segment size (SHMMIN)
32767 shared memory...
Any number precedded by 0 is interpreted as an octal value. `~' is C's one's complement operator.
As for outputting ints as binary write a small a small function. There is no way of doing it C.
Problem 1 : Format-argument mismatch
You're passing the wrong argument to printf(). You want to print the value of num not its address.
Problem 1 : Locality of declaration
All variable declarations in C are done at the beginning of the block. No locality of declaration as in C++.
Here is your...
I would like to be able to set a breakpoint in a function contained within a shared library. I am using GVD and GDB under Solaris. I have compiled the shared libraries with the -g option enabled.
The aim is to start an application which links to the shared library to debugged. Even if the...
There are 2 ways to pass a structure to a function, as exemplified by lordblood. However, I see lordblood has not taken care of function prototypes. The same can be said of your code where the declaration of func differ from its definition.
As for lordblood(and others), please note that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.