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 derfloh 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?

    ...up to 1074 records and fails to allocate shared memory for the remainder. I'm running on SUN Solaris 5.8. Here are my current IPC settings: * * IPC Messages * 4194304000 max message size (MSGMAX) 4194304000 max bytes on queue (MSGMNB) 1000 message queue identifiers (MSGMNI)...
  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?

    ...C are done at the beginning of the block. No locality of declaration as in C++. Here is your code( with a little formatting for readability :-)) /* This Program Asks the user for a number, then determines that numbers divisors or if that number is prime */ #include <stdio.h> int...
  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

    ...int len ; int nWidth ; int nHeight; } B; typedef struct tagBIT { B bmiHeader; }BIT; void func( B *ppt_bi); void main( void ) { B bih; /* BITMAPINFO *bi;*/ /* DZH : undeclared! */ bih.len = 25; bih.nWidth = 35...
  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