First  |  Prev |  Next  |  Last
Pages: 223 224 225 226 227 228 229 230 231 232 233 234
how to use ioctl to check out memory usage
Hi all, I tried to output memory usage information while the process is executing at a particular time. I found out some people in this group suggesting calling the ioctl. I followed it and wrote a test example: #include <unistd.h> #include <stdlib.h> #include <iostream.h> #include <fcntl.h> #include <sys/p... 31 Jan 2006 09:45
how to write a library ( .a or .so file ) in Unix using C? Urgent!!!
Hi all, This is REALLY urgent. I need some pointers/ links/suggestions on how to develop a library using C. The library needs to be made generic afterwards by using C++. Any ideas? The target is to develop a library to implement a DNS Query, so I guess it should be a file in .a or .so format. Any help will be great... 1 Feb 2006 07:45
TCP takes a long time to send packet
Hi, I am working on a TCP socket and I am facing this very weird problem. Here is some psudo code /*** client ***/ // assume everything setup fine, and socket connects // sendBuf = constant string of length 53 bytes. for(int i = 0; i<100; i++){ send(sock, sendBuf, sendBufLength, 0); } sendBuf = "end of code";... 15 Jan 2006 21:01
HELP! Problem getting interposer/LD_PRELOAD working
Hi, I am trying to build a "library interposer" working on Solaris. The original problem that I'm trying to solve is that I have a shared library (a ".SO" file), for which I don't have the source, that is missing an function. Functions in this shared lib get called by another program, and that program (the "s... 12 Jan 2006 19:47
CLOSE_WAIT state on sockets during high volume
Hi, I have a client/server application running and communicating using IP sockets. During high volume traffic many of the client sockets are stuck in a CLOSE_WAIT state (as determined by lsof). Eventually I reach my max open file limit and this causes all sorts of other problems forcing me to restart the appli... 6 Jan 2006 17:43
How to flush write() on stdout ?
when write() operates on STDOUT_FILENO, it seems that it always buffer output data even i call the fsync() on the descriptor. how do i get flush it? thanks. - woody ... 5 Jan 2006 09:53
AWK - regular expression
Hi, I want to extract some data from following file.xml can anyone suggest how can I do using AWK ---------------------------------------------------------------------------­------------------------------------------------------------ name="CVE-2005-0001" seq="2005-0001" discovered="2005-01-12" publi... 30 Dec 2005 22:54
Recording read hits on a file
Given a specific file, is there any way to record the number of times the file is copied, viewed, moved, executed, etc? If that is too complex, is there any way to see if the file was touched at all, other than the initial creation? The main driver behind these questions is that we have a large infrastructure o... 30 Dec 2005 14:38
Finding mac address on solaris 10
I'd like to find the mac address of my machine running solaris 10 (currently on x86). Is there a way to do this programatically? Thanks in advance. -- John ... 16 Jan 2006 05:43
Flushing Sockets in C?
I have a problem. My C program writes data to a socket and the output if buffered (and thus not sent immediately to client). What I need is a way to flush the socket so that the data in the buffer gets sent immediately. I have spend that last 3 hours reading newsgroups and such and am on the verge of giving up... 4 Jan 2006 08:49
First  |  Prev |  Next  |  Last
Pages: 223 224 225 226 227 228 229 230 231 232 233 234