Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: DZH
  • Order by date
  1. DZH

    Hi guys! Given a process ID (PID

    Many thanks, AmarG. I was about to write that does exactly what ptree does. Now, I don't have to. Again, thanks.
  2. DZH

    Killing processes

    getppid() returns the parent process ID of the calling process, therefore it would not useful in extracting all the required PIDs.
  3. DZH

    Killing processes

    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...
  4. DZH

    Hi guys! Given a process ID (PID

    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...
  5. DZH

    Are there any GUI library for both Win & Linux

    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.
  6. DZH

    NMAKE error U1073

    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"'
  7. DZH

    gcc and proc on Solaris 8

    Ha! Silly me. I was using the "-dy" option. Got it. DZH.
  8. DZH

    gcc and proc on Solaris 8

    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...
  9. DZH

    IPC settings?

    Thanks, Annihilannic, I'll try to make the suggested modifications. I'm hopeful that they'll make a difference. Have a good day!
  10. DZH

    IPC settings?

    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...
  11. DZH

    IPC settings?

    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...
  12. DZH

    Memory dump

    Thanks, hiwaycool.
  13. DZH

    Memory dump

    How do I get a memory dump from a running program?
  14. DZH

    Shared Memory settings

    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...
  15. DZH

    to print 1101 instead of 13 (bits)

    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.
  16. DZH

    Strange integer behavior-- any geniuses available?

    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...
  17. DZH

    Debugging shared libraries?

    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...
  18. DZH

    Access struct members

    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...
  19. DZH

    need help converting c=fgetc to integer

    Declare c an del as integers. Then try this: del = c - 48; OR this: del = c & 0xf; to change the character c to an integer between 0 and 9.
  20. DZH

    need help converting c=fgetc to integer

    I don't get the question. May you please tell me what you really want. May be a direct and unambigous(sp) post would help.

Part and Inventory Search

Back
Top